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

warning!C++ cin.eof() may case WA
Posted by eenh3431 6 Nov 2015 16:45
 use cin.eof() to judge the end of input and get WA 3;
 scanf get AC
 and while(cin >> a) may case Time Out
Re: warning!C++ cin.eof() may case WA
Posted by Atul Bansal 12 Nov 2015 21:09
why does cin.eof() produces WA 3 ?
Re: warning!C++ cin.eof() may case WA
Posted by Majin Boo 10 Jan 2016 22:50
You should use while(scanf("%lf", &a))