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 1438. Time Limit Exceeded

If you have WA#8
Posted by Izaron 22 May 2016 14:24
Change

while (getline(cin, s)) {
    //...
}

to

while (getline(cin, s)) {
    if (s == "")
        continue;
    //...
}


Test case:

           goto                      Main

 END:
     end

   MAIN:
     print 1
      if 1 == 2 goto end
      print 2
     if  1  ==    2    goto    end

Edited by author 22.05.2016 14:25