← All problemsSign in

Gladiator Fighting

CodeChefRating 1184Open on judge ↗

There are $N$ gladiators standing in a field. They will fight till only $1$ gladiator is left, and the other $N - 1$ gladiators have been defeated. Initially, everyone has a skill factor of $0$. But, every fight that a gladiator wins, his skill factor increases by $1$. There will be exactly $N - 1$ rounds. Each round, $2$ gladiators (not yet defeated), will come and fight; and one of will win,

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