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 1074. Very Short Problem

Help me WA#2
Posted by Cristian Vintur 8 Sep 2016 12:59
Can anyone give me a test? I have WA#2 and my solution passes all the tests from discussions.

At least tell me if i read correctly:

int n;
string num;
while (getline(cin, num))
{
    if (num.length() == 1 && num[0] == '#') break;
    (cin >> n).ignore();
}

Edited by author 08.09.2016 13:00