cf/mirror

Freedom of Choice

CF
1893C2000· candidate master3s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
7
3
3 5 6
10 11 12
3 3 1
1 1 3
12
4
2 4 4
12 13
1 5
1
7 1000 1006
1000 1001 1002 1003 1004 1005 1006
147 145 143 143 143 143 142
1
2 48 50
48 50
25 25
2
1 1 1
1
1
1 1 1
2
1
1
1 1 1
1
2
2
1 1 1
1
1
2 1 1
1 2
1 1
2
4 8 10
11 12 13 14
3 3 3 3
2 3 4
11 12
2 2
Output
1
139
0
1
1
0
0
1893C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)