← All problemsSign in

Chef of The Ancient

CodeChefRating 2946Open on judge ↗

Chef likes to play computer games very much. Recently he played a new game, Dota 2. Chef is thinking to start a new game called Cota (Chef of the ancient). There will be two teams in Cota, Radiant and Dire. There are 2*N players in Cota and the players are numbered by integers from 0 to 2*N – 1. Each team will have N players. One team will have all the players with even numbers (0, 2, …, 2*N -

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start