← All problemsSign in

The Three Topics

CodeChefRating 573Open on judge ↗

The Chef has reached the finals of the Annual Inter-school Declamation contest. For the finals, students were asked to prepare $10$ topics. However, Chef was only able to prepare three topics, numbered $A$, $B$ and $C$ — he is totally blank about the other topics. This means Chef can only win the contest if he gets the topics $A$, $B$ or $C$ to speak about. On the contest day, Chef gets topic $X

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