cf/mirror

Jellyfish and Game

CF
1874A1200· pupil1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
2 2 1
1 2
3 4
1 1 10000
1
2
4 5 11037
1 1 4 5
1 9 1 9 8
1 1 1
2
1
Output
6
1
19
2
1874A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)