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 |
关于输入数据问题!开始 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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator