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

1001
Posted by bini7yam 24 Dec 2025 11:34
how to know when there are no more inputs
Re: 1001
Posted by fahim- 24 Dec 2025 20:08
Just use a while loop like this:
 while( cin >> a )
and then push_back it in a vector and output the solution.