0
How hidden Test cases are solved?
After every unit of learning we get a problem to solve. After u solve the problem, the result tab shows ‘Test case x’. And some cases are locked and how we can see what’s the error ?
6 Respostas
+ 2
Raag
See output depends on inputs.
If inputs are 4 and 6 then output would be 10
If inputs are 5 and 6 then output would be 11
So how you write logic which can satisfy both above condition. It is simple.
Just do this:
x = int(input())
y = int(input())
print (x + y)
Now doesn't matter what are test cases. There is no strange thing.
+ 2
It would be better to read the instruction more carefully. The test cases are generated entirely depending on it, and the comments at the top-right would be helpful.
+ 2
This discussion forum is used to solve the hidden test cases.
I mean you can share your code with us to find the error.
+ 1
Raag
We cannot see hidden test cases. We need to write a logic which can satisfy all the cases.
0
Strange , how can find logic with out knowi g the problem/error
0
Raag see through these posts, it will help you understand
https://www.sololearn.com/discuss/2195878/?ref=app
https://www.sololearn.com/discuss/2211081/?ref=app
https://www.sololearn.com/discuss/2104185/?ref=app
https://www.sololearn.com/discuss/2313880/?ref=app
https://www.sololearn.com/discuss/2314301/?ref=app