Sebi and the equation 2
Sebi's father gives him a maths question every night after dinner which he has to solve before sleeping. Today's question is as follows. There are four integers A, B, C, N. Consider the following equation in two non-negative integer variables x and y x * y = (x | y) * (x & y) + A * x + B * y + C where | denotes bitwise OR and & denotes bitwise AND operation. Sebi's father asks him to consider
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