警示后人 35pts
查看原帖
警示后人 35pts
546150
liuChF楼主2024/9/12 20:22

upper_bound 时找的应该是 sumt2\dfrac{sum_t}{2} 而不是 n2\dfrac{n}{2}

注意最后 check 时距离和最大值可达 5×10195\times10^{19},注意开 unsigned long long

2024/9/12 20:22
加载中...