摘要:
点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=55; //状态定义,步数为k的情况下,小a的横坐标为i,小b的横坐标为j的情况下的最大幸运值之和 int a[N][N],f[2*N][N][N]; int m,n; i 阅读全文
摘要:
点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=2e4+10; int dp[N][2]; int n; int l[N],r[N]; int main() { ios::sync_with_stdio(0),cin.t 阅读全文
摘要:
点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=360; int scores[N]; int n,m; int g[5]; int dp[41][41][41][41]; int main() { ios::sync_ 阅读全文
摘要:
点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=1e4+10; vector<int> tasks[N]; int n,k; int dp[N]; int main() { ios::sync_with_stdio(0) 阅读全文
摘要:
点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=1e5+10; int n; int pos[N]; int q[N],len; int main() { ios::sync_with_stdio(0),cin.tie( 阅读全文
摘要:
点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=1e5+10; int a[N]; int q1[N]; int q2[N]; int main() { ios::sync_with_stdio(0),cin.tie(0 阅读全文
摘要:
点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=30; bool st[N][N]; long long f[N][N]; int n,m; int hx,hy; int dx[9]={0,-2,-1,1,2,2,1,- 阅读全文
摘要:
点击查看代码 #include<bit/stdc++.h> using namespace std; const int N = 15; int n, t[N], d[N], l[N]; bool st[N]; //状态定义 bool dfs(int u, int time) { //终止条件 if 阅读全文
摘要:
点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=2010; string a,b; int dp[N][N]; int main() { ios::sync_with_stdio(0),cin.tie(0); cin>> 阅读全文
摘要:
点击查看代码 #include<bits/stdc++.h> using namespace std; int n; int main() { ios::sync_with_stdio(0),cin.tie(0); cin>>n; int x; int ans=-2e9; int dp=-2e9; 阅读全文