cf/mirror

More Queries to Array...

CF
266E2500· grandmaster5s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
4 5
5 10 2 1
? 1 2 1
= 2 2 0
? 2 4 3
= 1 4 1
? 1 4 5
Output
25
43
1300
Sample 2of 2
Input
3 1
1000000000 1000000000 1000000000
? 1 3 0
Output
999999986
266E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)