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 |
试了N次终于成功了总结:希望以后做这题的人注意 这里的i小于j是一个陷阱 输入的时候如果用while(EOF != scanf("%d %d",&i,&j))就会错误,必须用while(cin >> i >> j),这又是一个问题。 数据范围涉及到long long 输出的时候也有陷阱,必须按照i,j的顺序(哪怕i小于j) Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator