1 条题解

  • 0
    @ 2025-2-21 20:03:47

    Pascal :

    var n,i,j,m,k,x,y,z,s:longint;
    BEGIN
        read(n);
        
        for i:=2 to n do
        begin
            for j:=2 to 10000 do if i mod j=0 then begin inc(m,j);break; end;
        end;
        if m<>0 then write(m) else write('7');
    END.
    
    • 1

    信息

    ID
    1027
    时间
    1000ms
    内存
    128MiB
    难度
    (无)
    标签
    递交数
    0
    已通过
    0
    上传者