How hidden Test cases are solved? | Sololearn: Learn to code for FREE!
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
+ 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
+ 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
+ 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
+ 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
0
Strange , how can find logic with out knowi g the problem/error
3rd Jan 2022, 6:21 AM
Raag
3rd Jan 2022, 6:37 AM
NEZ
Hot today
PHP