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 kenya2008 at 2009-10-24 20:02:48 on Problem 1466
开始
scanf("%d",&s);
while(scanf("%1s",&ch) != EOF && ch != '(');
scanf("%d",&num);
while(scanf("%1s",&ch) != EOF && ch != ')');
这样输入一直WA!!!!!!
其实只要scanf("%d: (%d)",&s,&num); 就可以了。 



还有个问题,这道题有什么优化的地反么?我用二分匹配做出来的时间是3800+MS,前面的几百MS就可以A了,各位大牛发表下意见!

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