1 solutions

  • 0
    @ 2025-11-5 17:26:58

    Pascal :

    var
    a,b,c,d:longint;
    n:real;
    begin
    readln(a);
    for b:=1 to a do
    begin
    read(c);
    d:=d+c;
    end;
    n:=d/a;
    writeln(d);
    writeln(n:0:2);
    end.
    
    • 1

    Information

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