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

Re:Problem 1207

Posted by digiter at 2010-12-23 23:28:04
In Reply To:Problem 1207 Posted by:fforoudian at 2010-12-23 22:44:46
That problem has mutiple test cases. So you'd have to code like this:

while (cin >> a >> b) {
    ... // process each test case
}

the code above will keep going until reaching EOF (End Of File)

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