Biologist
311E2300· international master1.5s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
5 5 90 1 1 1 01 8 6 2 30 7 3 3 2 1 11 8 1 5 11 0 3 2 1 4 10 8 3 4 2 1 01 7 2 4 1 1
Output
2
Sample 2of 2
Input
5 5 81 0 1 1 16 5 4 2 80 6 3 2 3 4 00 8 3 3 2 4 00 0 3 3 4 1 10 10 3 4 3 1 10 4 3 3 4 1 1
Output
16
58%
311E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…