← All problemsSign in

F R I E N D S

Input Shweta is a maths lover and she is beautiful. Sameer likes Shweta and wants to make her his friend. As a maths lover, Shweta applies a condition, she would accept Sameer's friendship only if he searches the treasure for her. A treasure map is given by Shweta to Sameer. Map has R(1Constraints : (-2*10^7 ≤ Pr ≤ 2*10^7) (-5*10^8 ≤ X ≤ Y ≤ 5*10^8) Input The first line of standard input co

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start