Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

可以这么写

Posted by Eov_Second at 2017-08-01 15:07:17 on Problem 3979
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator