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 1211. Collective Guarantee

Strange test (RTE 3)
Posted by Alex Danilyuk [SESC USU Dandelion] KTC 15 Feb 2014 19:08
This is the fragment of my program:
scanf("%d", &n);
for (int i = 0; i < n; i++)
{
    int p;
    scanf("%d", &p);
    p--;
    if (p >= n)
        throw;

If I remove throw, I'll have WA 3.

So children can say absolutely incorrect information?
Re: Strange test (RTE 3)
Posted by Erop [USU] 15 Feb 2014 19:48
No, all tests are correct.
There is some bug in your code, it is reason of WA/RT 3