cf/mirror

Unfair Game

CF
1955F1800· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
1 1 1 0
1 0 1 2
2 2 2 0
3 3 2 0
0 9 9 9
Output
1
1
3
3
12
1955F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)