← All problemsSign in

Chef and Dice

Chef and his Crush are confused how to spend their time. So they decide to make decision by rolling two dice . Chef rolls one dice and his crush rolls another. Let A and B be the numbers which appears on dice rolled by Chef and his Crush respectively . - Sum of A and B is even and A is equal to B , both decide to do Coding. - Sum of A and B is odd , both decides to visit Garden. - Sum of A a

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