1.关闭输入、输出同步流,或快读快写; 2.用C++98; 3.long long改int(注意1ll<<xx也要改成1<<xx); 4.二分改左边界(详见https://www.luogu.com.cn/discuss/997645); 5.函数用inline; 6.二分check函数不要传参。