cf/mirror

Luntik and Subsequences

CF
1582B900· newbie1s256 MB⌨ stdin/stdout

Examples

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