摘要: A:水题 #include <bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<LL, int> pii; const int N = 1e6 + 5; const int M = 2000 + 5; con 阅读全文
posted @ 2021-05-11 10:22 levill 阅读(68) 评论(0) 推荐(0) 编辑
摘要: A:没写。 B:没写。 C: m个块来考虑,假设当前为[1,m]位置都站满了。 现在我们要到[2,m + 1],如果a[1] > a[m + 1],跳过去之后a[m + 1]被站满。 如果a[1] < a[m + 1]那么跳过去没被站满,那么剩下的只能有[2,m]来填充。 那么综上所诉我们的答案就是 阅读全文
posted @ 2021-05-11 09:01 levill 阅读(202) 评论(0) 推荐(0) 编辑