The War
CodeChefOpen on judge ↗
got in to war with Liarland. And the war was becoming dangerous day by day. To attack the Liarland armies there is a set of co-ordinates that Wonderland army have to follow. To choose which co – ordinate to visit next there is an algorithm specified by professor WonderMath in Wonderland. - You start at the point with the least X and greatest Y value, and end at the point with the greatest X.
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