cf/mirror

Penacony

CF
1996G2200· master3s512 MB⌨ stdin/stdout

Examples

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