+ 1
Why is my code failing at large number of test cases?
Here is my code : https://code.sololearn.com/cclpAc0qb4aS/?ref=app This is the solution of Hackerearth - Codemonk 'Monk being monitor' problem.
6 ответов
+ 7
Meghraj ,
if you really need help, you should:
▪︎post the complete task description here or the link to this exercise, containing also samples of input and output.
▪︎in some platforms you get a message or a hint about the reason why you are failing: syntax error, exceptions, when the execution is timed out or when memory consumption is too high. any hint will help.
thanks
+ 2
Meghraj ,
any comments or messages from the system why you have failed?
+ 1
Meghraj Please copy and paste the question here.
0
what is purpose of n = int(input())
it is not being used anywhere. try to remove it.
0
Lothar https://www.hackerearth.com/practice/codemonk/
This is the link to the exercise named 'Monk being Monitor'.
Would really appreciate some help :)
0
Lothar the code is accepted for the first test case but at large number of cases it shows 'wrong answer'.
The code is okay, there are no errors and works really good for lesser cases