Psychotic_D_BKL's blog

By Psychotic_D_BKL, history, 16 hours ago, In English

Dear Codeforces Backend Team,

In the CSES question set platform, we have the option to view the full test cases where our solution fails. However, this feature is not available on Codeforces, as the test cases are not visible.

It would be a great help if you could make these test cases visible.

Thank you for considering this suggestion.

Best regards,

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

»
16 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

havn't you used gpt

  • »
    »
    16 hours ago, # ^ |
      Vote: I like it +4 Vote: I do not like it

    how does that help in finding hidden test cases ?

    • »
      »
      »
      15 hours ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Sometimes when in test cases >4 where i get wrong answers then to check where can i change my code from this we can learn to optimise the code as well.

      else we are only getting that wrong answer on test case x,y...

      Because all the edgecases and actual logic of code is being checked in hidden test case 2..

»
15 hours ago, # |
Rev. 3   Vote: I like it +20 Vote: I do not like it

hi! not trying to shift the attention from this blog's agenda (i would also be pleased if test cases could be made public, if possible) but i'd recommend you to explore stress testing too, it's pretty cool and usually helps in successfully finding a counter-example, and that too fast and efficiently.

»
14 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

while I do not like edge cases myself, I rather prefer it not be shown, because it allows you to push towards a near-perfect solution with minimal cues.

»
13 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

Apart from stress testing, You may see on which test case it gives wrong answer and print the input, in most problems this will work.

»
8 hours ago, # |
  Vote: I like it +5 Vote: I do not like it

user name checks in

»
5 hours ago, # |
Rev. 3   Vote: I like it 0 Vote: I do not like it

I remember seeing somewhere that they're not visible to make it harder for people to steal problems from Codeforces (if someone wants to steal problems, they need to make tests themselves). You can explore stress testing though, it really is a very helpful tool. Oh yeah, I just saw the comment above me, and you can do that as well; add print(n, a) to your code, for the wrong test case.

  • »
    »
    5 hours ago, # ^ |
      Vote: I like it +1 Vote: I do not like it

    It's harder than it seems. print(n, a) must be at the exact wrong test case for it to work, else other previous test cases will fail because you have extra output. And sometime it doesn't show fully what you print, or in interactive problems only show the first word of what you print.

»
5 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

ive created stress testing script which i use to find failing testcases which can be used only in practice

ill see if i can find a way to host it

bascially what it does it, u need to submit 2 codes, a correct code and your failing code, and then it will run almost 100 small tests, and tell u which test had a different output from ur correct one

bascially what we do manually will be done by computer under 1 min

»
3 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

Can anyone elobaroate more on stress testing ? any thread or source to learn more ?