Pokemon Battles
There are $N$ Pokemon trainers numbered from $1$ to $N$. Each trainer has **one** Pokemon. All the trainers have arrived to participate in a contest. There are two battle arenas, one in ground and other in water. Each Pokemon may have different power in both the arenas. When two Pokemon fight in an arena, the Pokemon having higher power in that arena wins. It is guaranteed that all Pokemon hav
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