1 solutions

  • 0
    @ 2025-11-5 20:08:23

    Pascal :

    var     m,n,i,t:longint;
    begin
      read(m,n);
      t:=1;
      for i:=2 to n div 2 do
        if (m mod i =0)and(n mod i=0)and(i>t)then t:=i;
      writeln(t);
    end.
    
    • 1

    Information

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