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 1574. Mathematicians and brackets

To admins!
Posted by OpenGL 31 Jan 2009 22:50
On this problem testset is wrong! This program got TLE#1:

#include <cstdio>
void main()
{
    char c;
    while((c=getchar()!=EOF))
    {
        while(c!='('&&c!=')');
    }
}
Re: To admins!
Posted by Fyodor Menshikov 1 Feb 2009 00:24
I think that one end of line is not prohibited after brackets.
Re: To admins!
Posted by Sandro (USU) 1 Feb 2009 11:34
Yes, there should be end of line in the end of each test.