ABCD
**This is an interactive problem.** There are four hidden integers $A,B,C,D$ ($1 \le A,B,C,D \le 10^9$). Your goal is to find out if $A \cdot B$ is greater, equal to or smaller than $C \cdot D$. To do that, you are allowed to ask up to $Q$ queries. In each query: - You should choose integers $a, b, c, d$ between $-10^9$ and $10^9$ inclusive. - Let $X = a \cdot A + b \cdot B + c \cdot C + d \cdot
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