MATKA
CodeChefOpen on judge ↗
Its MATKA, the gaming event of QUARK. The final round is on and only 2 players are left. The game is as follows. There are $N$ targets in a row but a player can see only the leftmost and the rightmost target of the remaining targets. Players take turn one by one and shoot a visible target. Every target has some points associated with it. A player never misses a target. Once a target is shot it go
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