cf/mirror

Increase Sequence

CF
466D2100· master1s256 MB⌨ stdin/stdout

Examples

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