请注意溢出问题,二分右边界至少是2e12,建议#define int long long
2e12
#define int long long
检查有没有对不充电的判定(二分左边界开到-1或特判)
如:
1 114514 1919810 10
0
找题解的常数优化