摘要:
1. 朴素做法(会超时) 点击查看代码 #include<iostream> using namespace std; const int N = 1010; int n, m; int v[N], w[N]; int f[N][N]; int main() { cin >> n >> m; for 阅读全文
posted @ 2022-05-16 14:28
wKingYu
阅读(37)
评论(0)
推荐(0)
摘要:
1. 朴素做法(二维数组) 点击查看代码 #include<iostream> using namespace std; const int N = 1010; int n, m; int v[N], w[N]; int f[N][N]; int main() { cin >> n >> m; fo 阅读全文
posted @ 2022-05-16 11:20
wKingYu
阅读(33)
评论(0)
推荐(0)
摘要:
点击查看代码 #include<iostream> #include<cstring> #include<unordered_set> using namespace std; const int N = 110; int n; int f[N]; int sg(int x) { if (f[x] 阅读全文
posted @ 2022-05-16 00:24
wKingYu
阅读(24)
评论(0)
推荐(0)

浙公网安备 33010602011771号