legendjohn9999's blog

By legendjohn9999, history, 4 weeks ago, In English,

Hi all! Many times I have seen people saying that their solution fails at a particular test case. How they observe it? Is there a way to find out the test case at which your program fail?

 
 
 
 
  • Vote: I like it  
  • +3
  • Vote: I do not like it  

»
4 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

No one can exactly know onto which test case their solution is generating wrong answer on spoj. What most of us can point is generally which test file is making the code fail. It is because during execution on some of the problems the judge displays "Running on test (9)" etc.

  • »
    »
    4 weeks ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    I guess that despite some wrong answers on some tests, the judge run your program on all tests.

    • »
      »
      »
      4 weeks ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      No the system is similar to codeforces if your code generates a wrong answer on say test file 9 then it will not be further judged on test files 10,11,12 etc.

      • »
        »
        »
        »
        4 weeks ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        If it is so than we can simply follow the execution and find out the test from which the judge stop testing. However I don't think that it's working for all problems.