← All problemsSign in

Xor Game

Chef was reading about xor when he encountered a catchy question so he gives it to you. Solve it for him. You are given $3$ numbers $A$,$B$ and $C$. Let's define $Y$ as the Xor of these $3$ numbers i.e. $Y=A⊕B⊕C$. You have to find if $Y$ is catchy or not. $Y$ is catchy if it is divisible by $A$ or $B$ or $C$. ###Input: - First line will contain $T$, number of testcases. Then the testcases foll

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