zeta and Maeve
CodeChefOpen on judge ↗
zeta is in love with Maeve Wiley and since Valentines month is approaching zeta is thinking of buying two arrays for her. He prefers one of the arrays to be sorted. zeta is very fond of making strange terms, this time he came up with a term $Z = |A_i B_j - B_j A_k |$ Thanks to [Laila](https://www.codechef.com/teams/view/laila) and [mathmaniac](https://www.codechef.com/users/mathmaniac) Anukriti
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