cf/mirror

Sum Graph

CF
1815B2000· candidate master3s256 MB⇄ interactive

Examples

Sample 1of 1
Input
2
6
 
1
 
1
 
1
 
1
 
1
 
2
 
-1
 
1
2
 
1
Output
+ 12
 
+ 2
 
+ 3
 
? 1 3
 
+ 5
 
? 1 5
 
? 4 5
 
! 1 4 2 5 3 6 1 2 3 4 5 6
 
 
! 1 2 2 1
1815B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…