cf/mirror

The Omnipotent Monster Killer

CF
1988D2000· candidate master3s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
3
1
1000000000000
5
47 15 32 29 23
1 2
1 3
2 4
2 5
7
8 10 2 3 5 7 4
1 2
1 4
3 2
5 3
6 2
7 5
Output
1000000000000
193
57
1988D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…