ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1135. Recruits

I suspect the test case #13 have some other characters, not only '>', '<' and CR/LF.
Posted by RoBa @ TJU 20 Sep 2006 14:30
att

Edited by author 20.09.2006 14:31
Re: I suspect the test case #13 have some other characters, not only '>', '<' and CR/LF.
Posted by Eugene Zavgorodny 23 Jul 2007 19:43
Yes you are right. When I am read (cin >> s), where s is string, I got WA13. When I am read by getchar, and bring in string '>' or '<', I got AC
Re: I suspect the test case #13 have some other characters, not only '>', '<' and CR/LF.
Posted by Sandro (USU) 23 Jul 2007 21:58
You can not use cin >> s because there are CR/LF characters in the input. For example such test is correct:

4
>>
<<

P.S. Test 13 is correct now.

Edited by author 23.07.2007 22:31