cf/mirror

Flatten or Concatenate

CF
2178E2000· candidate master3s512 MB⇄ interactive

Examples

Sample 1of 1
Input
4
11
 
9
 
4
 
12
 
1
 
1
 
8
 
4
 
4
 
4
 
4
 
8
Output
? 3 8
 
? 1 4
 
? 5 11
 
! 2
 
? 1 1
 
! 1
 
? 1 1
 
? 2 2
 
? 3 3
 
? 4 4
 
! 4
 
! 1073741824
2178E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)