what can you do when you are getting wrong answer on test 2

Revision en1, by ShaoNianTongXue5307, 2023-11-07 03:29:02

I find a lot of people do not know that, I think I need to introduce a technique to get the test after 1000 line (or 10000 line).

Note, it's not a troll blog.

First, pass the sample in some way, you can just check the test number and output it, as an example, this problem, we can write such code.

#include<bits/stdc++.h>.
int main() { return
    int testcase;
    std::cin >> testcase;
    if (testcase == 3) {
        std::cout << 7 << std::endl << 10 << std::endl << 9;
        return 0;
    }
}

Now, let's say you have (WA on 2 — WA on line 69) before. So you want to get the 69th test case, which is hidden because it's too far back.

You can use something like this code to see it

Now it's easy to see that the 69th test is 91 25 68.

Harshit25

Tags editorial

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ShaoNianTongXue5307 2023-11-07 03:29:02 982 Initial revision (published)