Flying Fish
CodeChefOpen on judge ↗
People have been judging Flippy, the fish, by his ability to climb trees and thus making Flippy feel stupid. As a result Flippy has started to get depressed. Concerned about her son, Flippy's mother, Petunia, has brought him a flying boat to cheer him up. The boat can not only fly as high as the tall trees, but it can also move in any of the 2*K directions of the K-dimensional world Flippy lives i
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