#34451: 根本沒難度...


yp11151246@yphs.tp.edu.tw (911-44謝曜宇)


#include<iostream>
using namespace std;
int main(){
int a,b;
while(cin>>a>>b){
while(a!=0 && b!=0) (a>b) ? a=a%b : b=b%a;
cout << (a==0 ? b : a) << endl;
}
      return 0;
}
#34540: Re: 根本沒難度...


yp11151113@yphs.tp.edu.tw (910-31高子皓)


#include
using namespace std;
int main(){
int a,b;
while(cin>>a>>b){
while(a!=0 && b!=0) (a>b) ? a=a%b : b=b%a;
cout << (a==0 ? b : a) << endl;
}
      return 0;
}

太強了一看就懂

#34543: Re: 根本沒難度...


yp11151246@yphs.tp.edu.tw (911-44謝曜宇)


#include
using namespace std;
int main(){
int a,b;
while(cin>>a>>b){
while(a!=0 && b!=0) (a>b) ? a=a%b : b=b%a;
cout << (a==0 ? b : a) << endl;
}
      return 0;
}

太強了一看就懂

過獎了過獎了