cf/mirror

Game With Triangles: Season 2

CF
2074G2100· master4s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
6
3
1 2 3
4
2 1 3 4
6
2 1 2 1 1 1
6
1 2 1 3 1 5
9
9 9 8 2 4 4 3 5 3
9
9 9 3 2 4 4 8 5 3
Output
6
24
5
30
732
696
2074G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)