cf/mirror

Non-Decreasing Dilemma

CF
1567E2200· master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
5 6
3 1 4 1 5
2 2 5
2 1 3
1 4 4
2 2 5
1 2 6
2 2 5
Output
6
4
10
7
1567E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)