cf/mirror

Easy Problem

CF
1096D1800· expert2s256 MB⌨ stdin/stdout
#dp

Examples

Sample 1of 3
Input
6
hhardh
3 2 9 11 7 1
Output
5
Sample 2of 3
Input
8
hhzarwde
3 2 6 9 4 8 7 1
Output
4
Sample 3of 3
Input
6
hhaarr
1 2 3 4 5 6
Output
0
1096D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)