Spread of Ratism
Last year, a total of $10^{100}$ contests were held on CodeChef. This led to a spread of ratism in the CodeChef community. A *ratist* is a person who *bullies* **everyone** with a **strictly lower** rating than them. Initially, only one person is *ratist* in the community. A *non-ratist* becomes a *ratist* iff: - They were bullied by a *ratist* in the past, and; - Their rating becomes **strictl
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