Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
8266 季洁 求最大公约数(提高版) C++ Wrong Answer 0 0 MS 248 KB 198 2020-10-31 19:02:40

Tests(0/6):


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


Judgement Protocol: