cf/mirror

Coloring Game

CF
2112C1300· pupil2.5s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
6
3
1 2 3
4
1 1 2 4
5
7 7 7 7 7
5
1 1 2 2 4
6
2 3 3 4 5 5
5
1 1 1 1 3
Output
0
0
10
2
16
0
2112C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)