cf/mirror

Roma and Changing Signs

CF
262B1200· pupil2s256 MB⌨ stdin/stdout
#greedy

Examples

Sample 1of 2
Input
3 2
-1 -1 1
Output
3
Sample 2of 2
Input
3 1
-1 -1 1
Output
1
262B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)