Determine the Winner
There is a contest containing $2$ problems $A$ and $B$. $2$ strong participants $P$ and $Q$ participated in the contest and solved both the problems. $P$ made AC submissions on problems $A$ and $B$ at time instants $P_A$ and $P_B$ respectively while $Q$ made AC submissions on problems $A$ and $B$ at time instants $Q_A$ and $Q_B$. It is given that the time penalty is the minimum time instant at
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