cf/mirror

Elections in Saransk (easy version)

CF
2236F11700· expert4s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
4 1
2 3 1 4
2 1
2 4
6 1
3 9 1 6 4 5
7 1
1 2 3 67 13 8 8
Output
8
4
40
64
2236F1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)