← All problemsSign in

Dalgona Treat

CodeChefRating 2286Open on judge ↗

*"It doesn't matter how tough you are, you are not going to win on your own."* $N$ players advance to the 2nd round, the game is revealed to be *"HoneyComb"*. The players have to construct an array $A$. Each and every player is given *"Ppopgi"* (Dalgona candy), and the $i$th player has to carve a number $A_i$ in their *"Ppopgi"*. The players will qualify if the array $A$ satisfies the following

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