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 1001. Reverse Root

How can the program recognize when there aren´t more inputs ?
Posted by Albert 18 Jan 2020 00:38
I investigated on internet, but most of the answers were putting a type of character that breaks the cycle, but in the input example there´s no character and it´s not enough with a "while(cin >> n)" pls help
Re: How can the program recognize when there aren´t more inputs ?
Posted by ToadMonster 21 Jan 2020 15:18
Re: How can the program recognize when there aren´t more inputs ?
Posted by Q 26 Feb 2022 22:10
ToadMonster wrote 21 January 2020 15:18
if copypast test text, it read a blank string as EOF by some reason

Edited by author 26.02.2022 22:11