1-2-3
863C1800· expert1s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
10 2 11 1 11 1 11 1 12 2 22 2 22 2 2
Output
1 9
Sample 2of 3
Input
8 1 12 2 13 3 13 1 31 1 12 1 11 2 3
Output
5 2
Sample 3of 3
Input
5 1 11 2 22 2 22 2 21 2 22 2 22 2 2
Output
0 0
58%
863C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…