随笔分类 -  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 阅读全文
posted @ 2025-09-17 08:38 Hazelxcf 阅读(5) 评论(0) 推荐(0)
摘要:链接 由题意知: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 = 阅读全文
posted @ 2020-08-11 08:39 Hazelxcf 阅读(221) 评论(0) 推荐(0)