cf/mirror

Tubular Bells

CF
1562F2900· international gm5s512 MB⇄ interactive

Examples

Sample 1of 1
Input
3
5
8 10 7 6 9
5
24 25 28 27 26
7
1 2 3 4 5 6 7
Output
? 1 2
40
? 2 5
90
? 3 1
56
? 4 5
18
! 8 10 7 6 9
? 1 5
312
? 2 4
675
! 24 25 28 27 26
? 1 4
4
? 2 5
10
? 3 7
21
? 6 2
6
? 2 5
10
? 1 2
2
? 1 2
2
? 1 2
2
? 1 2
2
? 1 2
2
! 1 2 3 4 5 6 7
1562F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)