cf/mirror

Wonderful Lightbulbs

CF
2096D2000· candidate master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
1
2 3
3
-2 -1
-1 -2
-1 -3
7
7 26
6 27
6 28
7 27
8 26
8 27
7 28
11
70 9
69 8
69 0
73 5
70 -1
70 5
71 7
70 4
73 4
71 3
72 3
Output
2 3
-2 -2
7 27
72 7
2096D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)