cf/mirror

Subsequence Counting

CF
960C1700· expert1s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
10 5
Output
6
5 50 7 15 6 100
Sample 2of 2
Input
4 2
Output
4
10 100 1000 10000
960C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)