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

试了N次终于成功了

Posted by HH_2007 at 2010-01-28 03:00:59 on Problem 1207
总结:希望以后做这题的人注意
这里的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:
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