cf/mirror

Multiple Lamps

CF
1909E2400· grandmaster3s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
4
4 0
5 2
4 1
5 1
15 9
7 8
8 9
9 10
10 9
11 1
12 2
13 3
14 4
15 5
5 4
1 2
2 3
3 4
4 5
Output
-1
4
3 5 1 2
3
8 9 10
1
5
1909E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)