• 二分模板

    //整数二分 int L = 0, R= 1e9; int ans = -1; while(L <= R) { int mid = (L + R) >> 1; if(check(mid)) { ans = mid; ...

    2025-05-24