Tony vs Thanos
CodeChefOpen on judge ↗
Thanos meets Tony Stark in the afterlife. Even after the battle, they keep arguing about whose actions were justified in the battle. To settle the debate once and for all, Thanos suggests playing a ‘fair and balanced’ game. The rules of the game are as follows. Each Thanos and Tony are given N numbers in the beginning. The game starts with Tony since he was the last person to use the infinity ga
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