上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: 鸣谢https://blog.csdn.net/Baoli1008/article/details/4441936,基本都是抄的代码 阅读全文
posted @ 2019-10-17 13:35 hh13579 阅读(151) 评论(0) 推荐(0)
摘要: 题目链接:https://codeforces.com/contest/1244/problem/D 题意:给你一个树,让你把树上的每个节点染成三种颜色,使得任意三个互相相邻的节点颜色都不一样(意思是如果两个节点相邻,那么与这两个节点相邻的节点的颜色得和这两个节点都不一样)。这里给出每个节点染成三种 阅读全文
posted @ 2019-10-16 22:27 hh13579 阅读(179) 评论(0) 推荐(0)
摘要: #pragma GCC optimize(2) #include <bits/stdc++.h> #define ll long long using namespace std; const int N = 5e5+10; const int mod=20071027; const int sigma_size=26; int dp[N]; char str[N]; char s[105]; s 阅读全文
posted @ 2019-10-16 12:46 hh13579 阅读(142) 评论(0) 推荐(0)
摘要: 把以前的题补补,用悬线求面积第二大的子矩形。我们先求出最大子矩阵的面积,并记录其行三个方向上的悬线长度。然后排除这个矩形,记得还得特判少一行或者少一列的情况 阅读全文
posted @ 2019-10-14 23:32 hh13579 阅读(131) 评论(0) 推荐(0)
摘要: #pragma GCC optimize(2) #include <bits/stdc++.h> #define ll long long #define ls(i) i<<1 #define rs(i) i<<1|1 using namespace std; const int N = 200+10; char s[N]; int dp[N][N],a[N],n; int dfs(int i,i 阅读全文
posted @ 2019-10-14 18:09 hh13579 阅读(110) 评论(0) 推荐(0)
摘要: 用树状数组统计每个点i,左边与右边与多少个点小于a[i],然后用乘法原理和加法原理得出答案 阅读全文
posted @ 2019-10-14 16:54 hh13579 阅读(104) 评论(0) 推荐(0)
摘要: 链接 https://vjudge.net/problem/UVA-1395 代码 阅读全文
posted @ 2019-10-13 16:35 hh13579 阅读(209) 评论(0) 推荐(0)
摘要: 题目链接https://ac.nowcoder.com/acm/contest/1114/C 阅读全文
posted @ 2019-10-13 10:58 hh13579 阅读(145) 评论(0) 推荐(0)
摘要: 题目链接 https://www.acwing.com/problem/content/212/ 阅读全文
posted @ 2019-10-12 14:42 hh13579 阅读(213) 评论(0) 推荐(0)
摘要: https://ac.nowcoder.com/acm/contest/1114/B 这题时间卡的比较死,多了一个快速幂的logn就过不了这题。 阅读全文
posted @ 2019-10-12 00:56 hh13579 阅读(221) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页