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 ?

3rd Jan 2022, 6:17 AM
Raag
Raag - avatar
6 Antworten
+ 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.
3rd Jan 2022, 6:50 AM
A͢J
A͢J - avatar
+ 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.
3rd Jan 2022, 6:55 AM
FanYu
FanYu - avatar
+ 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.
3rd Jan 2022, 9:49 AM
Simba
Simba - avatar
+ 1
Raag We cannot see hidden test cases. We need to write a logic which can satisfy all the cases.
3rd Jan 2022, 6:19 AM
A͢J
A͢J - avatar
0
Strange , how can find logic with out knowi g the problem/error
3rd Jan 2022, 6:21 AM
Raag
Raag - avatar