cf/mirror

Magic Triples (Easy Version)

CF
1822G11700· expert4s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
7
5
1 7 7 2 7
3
6 2 18
9
1 2 3 4 5 6 7 8 9
4
1000 993 986 179
7
1 10 100 1000 10000 100000 1000000
8
1 1 2 2 4 4 8 8
9
1 1 1 2 2 2 4 4 4
Output
6
1
3
0
9
16
45
1822G1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)