Optimal Subsequences (Easy Version)
1227D11600· expert3s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
310 20 1061 12 12 23 13 23 3
Output
201020102010
Sample 2of 2
Input
71 2 1 3 1 2 192 12 23 13 23 31 17 17 77 4
Output
232323113
58%
1227D1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)