Friends and Subsequences
689D2100· master2s512 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
61 2 3 2 1 46 7 1 2 3 2
Output
2
Sample 2of 2
Input
33 3 31 1 1
Output
0
58%
689D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
61 2 3 2 1 46 7 1 2 3 2
2
33 3 31 1 1
0