Psychotic_D_BKL's blog

By Psychotic_D_BKL, history, 5 weeks 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
  • +18
  • Vote: I do not like it

»
5 weeks ago, # |
  Vote: I like it -24 Vote: I do not like it

havn't you used gpt

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

    how does that help in finding hidden test cases ?

    • »
      »
      »
      5 weeks ago, # ^ |
        Vote: I like it -16 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..

»
5 weeks ago, # |
Rev. 3   Vote: I like it +51 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.

»
5 weeks 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.

»
5 weeks 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.

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

user name checks in

»
5 weeks ago, # |
Rev. 3   Vote: I like it +1 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 weeks ago, # ^ |
      Vote: I like it +3 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 weeks 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

»
5 weeks ago, # |
  Vote: I like it -8 Vote: I do not like it

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

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

tests are actually visible, but only in problemset section. you can click on submission and scroll down, where you will find "show test details" hypertext.Though on rounds test are not visible, there is possibility to see them some time after end of the contest.

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

    Bruhmao, OP asked for the option to view FULL testcases.

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

    The tests aren't shown fully when they are really long

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

      Thats why i have requested to give some downloadable file as like in gfg or cses

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

Thanks for your support guys ,

i dont think anything is going to happen