cf/mirror

Job Interview

CF
1976C1600· expert2s256 MB⌨ stdin/stdout

Examples

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