Shreehari and Runtime error
CodeChefOpen on judge ↗
Shreehari has been trying hard to solve a problem. He has managed to pass some testcases but has received runtime error on others. He suspects that one of the parameters p in his program, is the reason for this error. For small values of inputs he is sure that the program will pass, however for large values it doesn't. His code is buggy and over 200 lines, so he has decided to find for which val
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start