Truth and Lie
CodeChefOpen on judge ↗
Alice, Bob and Chef are playing a game of truth and lie. Alice and Bob each speaks a statement and the Chef try to find if they are speaking the truth or they are lying. But Chef is only able to detect the lie when they both have lied together. Given two integers as input each represents the state(truth or lie) of the statement of Alice and Bob. - 0 represent False - 1 represent Truth ### Inp
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