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 |
可以这么写In Reply To:151B的代码是怎么写出来的呀~~ Posted by:zssee33 at 2012-08-17 20:44:38 a,b,c,d;main(o){for(;~scanf("%d/%d%c%d/%d",&a,&b,&o,&c,&d);printf(b>c?"%d/%d\n":"%d\n",a/c,b/c))for(a=a*d+(44-o)*b*c,b*=d,c=82;o%2&&--c;)a%c|b%c||++o;} Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator