Fast, Faster, Fastest
CodeChefOpen on judge ↗
Himanshu is participating in a contest. Now, to save time he tries to read the question as soon as possible. While reading the question he tries to find out keywords of the question to emphasise upon and skips reading the time-wasting story part. This technique has helped him several times and hopes it will be helpful for you too in the future. Also, he decides the difficulty level of the questio
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