Subsequence Addition (Easy Version)
1807G11100· newbie2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
6111255 1 3 2 157 1 5 2 131 1 151 1 4 2 1
Output
YESNOYESNOYESYES
58%
1807G1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
6111255 1 3 2 157 1 5 2 131 1 151 1 4 2 1
YESNOYESNOYESYES