Codechef input is larger then constraints ??

code to check input provided by codechef for problem SEBIHWY

code for checking output

output from CODE, COMPILE & RUN window

output

constraints provided

1 ≤ T ≤ 10000

0 ≤ S ≤ 130

0 ≤ SG, FG ≤ 300

1 ≤ D ≤ 30

1 ≤ T ≤ 300

Firstly, we will need a link to problem to know which problem you are talking about. And another Q, how do you know what your code printed for the test case? I dont think codechef reveals that, does it?

1 Like

@vijju123 what he did is this,he executed his code in codechef IDE without giving any input and output is garbage values as expected.

@abhi2096 CODE,COMPILE and RUN window is to check whether your code is working for all values or not.

Thank you for your response i wrote the problem code above (SEBIHWY) and i just printed the input and checked in CODE, COMPILE & RUN window . i dont know if it is the correct way ??

problem link : https://www.codechef.com/problems/SEBIHWY

we can’t see testcases. You can use assert() to check whether the inputs are in range or not.

1 Like

Thank you ! i understood now

Oh god. And i was wondering what he was doing lol XD