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 |
您的程序是不是写错了,我的程序按您那么写是可以AC的......In Reply To:这样是可以AC的...... Posted by:TN at 2005-05-03 12:21:49 int main() { sign[1]='+';sign[2]='-';sign[3]='*';sign[4]='%'; while (1) { scanf("%d %d %d",&n,&k,&m); if (n==0 && m==0 && k==0) return 0; if (gcd(k,gcd(n,m))!=1) printf("0\n");else bfs(mod(n)); } } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator