cf/mirror

Elongated Matrix

CF
1102F2000· candidate master4s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
4 2
9 9
10 8
5 3
4 3
Output
5
Sample 2of 3
Input
2 4
1 2 3 4
10 3 7 3
Output
0
Sample 3of 3
Input
6 1
3
6
2
5
1
4
Output
3
1102F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…