cf/mirror

Candies and Two Sisters

CF
1335A800· newbie1s256 MB⌨ stdin/stdout
#math

Examples

Sample 1of 1
Input
6
7
1
2
3
2000000000
763243547
Output
3
0
0
1
999999999
381621773
1335A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)