2 solutions

  • -1
    @ 2022-3-2 23:21:06

    `

    #include<bits/stdc++.h>
    using namespace std;
    typedef long long ll;
    const int N=1e6+19;
    ll a[N];
    int main()
    {
    	ll a,b,ans;
    	while(cin>>a>>b)
    	{
    		ans=__gcd(a,b);
    		cout<<ans<<"\n";
    	}
    	
    	return 0;
    }
    

    Information

    ID
    286
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    3
    Tags
    # Submissions
    92
    Accepted
    47
    Uploaded By