cf/mirror

Beautiful Triple Pairs

CF
1974C1400· specialist4s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
8
5
3 2 2 2 3
5
1 2 1 2 1
8
1 2 3 2 2 3 4 2
4
2 1 1 1
8
2 1 1 2 1 1 1 1
7
2 1 1 1 1 1 1
6
2 1 1 1 1 1
5
2 1 1 1 1
Output
2
0
3
1
8
4
3
2
1974C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)