Set Queries
**This is an interactive problem.** After printing a query do not forget to output the end of the line and flush the output. You can read more about it [here](https://codeforces.com/blog/entry/63707). L was unhappy after losing a tennis match against Light. Being super competitive, he has been looking for ways to get back at him ever since. L knows that Light is weak in graph theory, so he deci
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