Common Subsequence
1382A800· newbie1s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
54 510 8 6 41 2 3 4 51 1331 1325 31000 2 2 2 33 1 55 51 2 3 4 51 2 3 4 5
Output
YES1 4YES1 3NOYES1 3YES1 2
58%
1382A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)