Subsequence Counting
960C1700· expert1s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
10 5
Output
65 50 7 15 6 100
Sample 2of 2
Input
4 2
Output
410 100 1000 10000
58%
960C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
10 5
65 50 7 15 6 100
4 2
410 100 1000 10000