Subsequence Problem
2169F2700· international gm4s512 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
4 5 31 1 2414 3
Output
2
Sample 2of 3
Input
3 5 21 152
Output
13
Sample 3of 3
Input
200000 12345678 73 2 5 1 3 4 542 13 3737 131 2 3 4 533 1 41 5 9 21 2 3 4 5
Output
152094503
58%
2169F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)