tozangezan's diary

勝手にソースコードをコピペして利用しないでください。

2013-09-21から1日間の記事一覧

Codeforces Round #201 (Div. 1)

不思議。A:GCD求めてほげるだけ。落ちた。 #include<stdio.h> #include<algorithm> using namespace std; int b[100]; int gcd(int a,int b){ while(b){ a%=b; int c=a; a=b; b=c; }return a; } int main(){ int a; scanf("%d",&a); for(int i=0;i</algorithm></stdio.h>