摘要:
叠砖块 差分 #include<bits/stdc++.h> using namespace std; const int N=1000010; int b[N];int a[N]; int n,k; int main(){ std::ios::sync_with_stdio(false);cin. 阅读全文
posted @ 2025-08-10 12:17
arin876
阅读(27)
评论(0)
推荐(0)
摘要:
补给 可以O(n^2)做,枚举豁免量 #include<bits/stdc++.h> #define int long long using namespace std; const int N=1010; struct Node{ int p,s; }node[N]; bool cmp(Node 阅读全文
posted @ 2025-08-10 11:56
arin876
阅读(11)
评论(0)
推荐(0)
摘要:
Matiji 每个都可以选或不选(丢给小号),直接dp #include<bits/stdc++.h> using namespace std; const int N=200010; int f[N][2]; int n,s; int p[N]; int main( ) { std::ios::s 阅读全文
posted @ 2025-08-10 11:22
arin876
阅读(112)
评论(0)
推荐(0)

浙公网安备 33010602011771号