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 1191. Catch the thief!

WHY WA 1???????
Posted by Todor Tsonkov 30 Jun 2006 18:07
I tried to submit many times my solution which I think is right but I got WA 1 many times. Then I submitted the following solution:

#include <iostream>
using namespce std;
int main()
{
    cout<<"YES";
    return 0;
}

and I still have WA1, why (as far as I know the first test is the same as the sample test where the right output is YES)
The first test is not a sample for this problem (-)
Posted by Vladimir Yakovlev (USU) 30 Jun 2006 20:17


Edited by author 30.06.2006 20:18
Re: The first test is not a sample for this problem (-)
Posted by Todor Tsonkov 1 Jul 2006 13:05
Yup, you are right, when I submitted the following solution:

#include <iostream>
using namespce std;
int main()
{
cout<<"NO";
return 0;
}

I got WA 2, so it seems the problem is in my code :)