← All problemsSign in

Dice Play

CodeChefRating 188Open on judge ↗

Chef is playing with two standard six-sided dice. After rolling both dice once, Chef observes the numbers appearing on them. You are given two integers $A$ and $B$ — the numbers shown on the first and second die, respectively. Your task is to determine whether both dice show the same number. If they are equal, output `YES`; otherwise, output `NO`. ### Input The first and only line of input con

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