Идёт турнир! | В настоящий момент идёт турнир. Некоторая информация и функции сервера недоступны до его окончания.
|
|
imesecan | 20.фев.2011 в 14:21:13 | |
0 | int x,y,rem=0;
cin>>x>>y; // After you read x and y you must make sure that // x is greater than y. Did you check for this ? :)
while (y!=0) { rem=x%y; y=x; // I think this has to be reverse x=y; y=rem; }
// When you quit from the loop y is already 0; Are you sure to show this 0? cout<<y;
|
|