Блог пользователя Psychotic_D_BKL

Автор Psychotic_D_BKL, история, 31 час назад, По-английски

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,

  • Проголосовать: нравится
  • +4
  • Проголосовать: не нравится

»
31 час назад, # |
  Проголосовать: нравится -22 Проголосовать: не нравится

havn't you used gpt

  • »
    »
    30 часов назад, # ^ |
      Проголосовать: нравится +11 Проголосовать: не нравится

    how does that help in finding hidden test cases ?

    • »
      »
      »
      30 часов назад, # ^ |
        Проголосовать: нравится -14 Проголосовать: не нравится

      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..

»
30 часов назад, # |
Rev. 3   Проголосовать: нравится +40 Проголосовать: не нравится

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.

»
29 часов назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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.

»
28 часов назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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.

»
22 часа назад, # |
  Проголосовать: нравится +5 Проголосовать: не нравится

user name checks in

»
20 часов назад, # |
Rev. 3   Проголосовать: нравится +1 Проголосовать: не нравится

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.

  • »
    »
    20 часов назад, # ^ |
      Проголосовать: нравится +3 Проголосовать: не нравится

    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.

»
20 часов назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

»
18 часов назад, # |
  Проголосовать: нравится -8 Проголосовать: не нравится

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

»
7 часов назад, # |
  Проголосовать: нравится +4 Проголосовать: не нравится

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.