1 solutions

  • 0
    @ 2025-11-5 15:57:20

    Pascal :

    var n,i,s:longint;
    begin
     readln(n);
     for i:=1 to n do
      if n mod i=0 then s:=s+i;
     writeln(s);
    end.
    
    • 1

    Information

    ID
    17371
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By