#include <iostream>using namespace std;int main(){ int a,b,t; for(cin>>a>>b;b!=0;a=t) { t=b; b=a%b;
} cout<<a<<endl;
return 0;}
測試AC 解題WA(line:2)
感謝大大幫忙!!!!