Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
9028 沈文佳 求最大公约数(提高版) C++ Accepted 100 0 MS 248 KB 163 2020-11-07 21:36:28

Tests(6/6):


#include<bits/stdc++.h> using namespace std; int main(){ long long a,b,y; cin>>a>>b; while(a%b!=0){ y=a%b; a=b; b=y; } cout<<b; return 0; }


Judgement Protocol: