cf/mirror

Mateusz and Escape Room

CF
1210G3500· legendary gm7s256 MB⌨ stdin/stdout
#dp

Examples

Sample 1of 3
Input
5
0 2 3
1 2 3
4 3 3
4 3 3
4 3 3
Output
4
Sample 2of 3
Input
3
0 1 2
3 0 3
1 0 0
Output
1
Sample 3of 3
Input
4
1 0 2
3 3 3
4 0 4
5 3 5
Output
0
1210G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)