cf/mirror

Idiot First Search and Queries

CF
2195G2300· international master4s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
3
1 1
0 0
1 0
5 5
2 3
0 0
4 5
0 0
0 0
3 6
3 8
3 11
4 7
5 8
7 7
2 3
4 5
0 0
6 7
0 0
0 0
0 0
1 9
2 18
3 11
3 12
3 13
5 7
7 17
Output
1
2 3 5 2 1
2 2 1 3 1 2 4
2195G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…