Shoe Fit
You have three shoes of the same size lying around. Each shoe is either a left shoe (represented using $0$) or a right shoe (represented using $1$). Given $A$, $B$, $C$, representing the information for each shoe, find out whether you can go out now, wearing one left shoe and one right shoe. ### Input - The first line contains an integer $T$, the number of test cases. Then the test cases follow.
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