摘要:
P2216 [HAOI2007] 理想的正方形 #include <bits/stdc++.h> using namespace std; const int maxn = 1e3 + 10; int a,b,n; int c[maxn][maxn]; deque <int> dq1,dq2; in 阅读全文
摘要:
P4147 玉蟾宫 #include <bits/stdc++.h> using namespace std; const int maxn = 1e3 + 10; int n,m; int a[maxn][maxn] = {{0,0}}; int l[maxn][maxn],r[maxn][max 阅读全文
摘要:
P1115 最大子段和 妙 #include <bits/stdc++.h> using namespace std; #define int long long const int maxn = 2e5 + 10; int n,a[maxn],dp[maxn]; int ans = -100010 阅读全文
摘要:
P2564 [SCOI2009] 生日礼物 #include <bits/stdc++.h> using namespace std; #define int long long const int maxn = 1e6 + 10; struct node{ int pos,cate; }; vec 阅读全文
摘要:
P1886 滑动窗口 /【模板】单调队列 做题思路: #include <bits/stdc++.h> using namespace std; #define int long long const int maxn = 1e6 + 10; int n,k,a[maxn]; deque<int> 阅读全文