Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
各位高手帮忙看看哪里错?我自己试过没问题的啊~~#include<stdio.h> int main() { int x,y,i=0,t; scanf("%d%d",&x,&y); if(x==0&&y==0) return 0; else { if(x<y) {t=x;x=y;y=t;} while(x<2*y) { x=x-y; t=x;x=y;y=t; i++; } if(i%2==0) printf("Stan wins\n"); else printf("Ollie wins\n"); } return 0; } 它说是wrong answer Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator