摘要:
while (l < r) { int mid = l + r >> 1; //(l+r)/2 if (check(mid)) r = mid; // check()判断mid是否满足性质 else l = mid + 1; } while (l < r) { int mid = l + r + 1 阅读全文
摘要:
//作业 public class Main { public static void main(String[] args) { int week = 5; switch (week) { case 1: System.out.println("星期一"); break; case 2: Syst 阅读全文
摘要:
双指针 https://www.luogu.com.cn/problem/list?tag=345 洛谷题目 1 A+B #include <bits/stdc++.h> #define ll long long using namespace std; const int N = 2e5 + 10 阅读全文