随笔分类 - ACM / 打表找规律
摘要: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
阅读全文
摘要:链接 由题意知:a[i][j] % a[i -1][j] == 0 && a[i][j] % a[i][j - 1] == 0根据这个条件可以dfs #include<bits/stdc++.h> using namespace std; #define For(i,a,b) for(int i =
阅读全文

浙公网安备 33010602011771号