cf/mirror

Halve or Subtract

CF
1799F2700· international gm1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
7
3 2 1 1
9 3 5
2 1 2 0
1000000000 1
5 3 1 1
2 8 3 19 3
6 9 4 2
1 2 3 4 5 6
3 10 3 3
1 2 3
5 1 0 0
999999999 999999999 999999999 999999999 999999999
5 5 4 3
5 9 10 7 4
Output
11
500000001
23
6
0
4999999995
6
1799F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)