![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
codeforces
阿启呀
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #596 Div. 2 D. Power Products 唯一分解+哈希
Codeforces Round #596 Div. 2 D. Power Products 唯一分解+哈希 链接:Power Products 还是自己太菜,想了一天没有想到对分解之后的结果如何进行简单的处理,看了一眼大佬的代码,真是自叹不如。 题解:先对每个数进行唯一分解,对分解出来的数进行模kkk存储,然后哈希保存,用于查询。因为题目要求两个数的乘积是一个数的kkk次幂,所以对两个数唯一分...原创 2019-11-27 21:15:39 · 123 阅读 · 0 评论 -
Codeforces Round #600 (Div. 2) D. Harmonious Graph 并查集
Codeforces Round #600 (Div. 2) D. Harmonious Graph 并查集 链接:Harmonious Graph 题解:待补······ 代码: 待补······原创 2019-11-26 18:22:17 · 131 阅读 · 3 评论 -
Codeforces Round #602 (Div. 2) D: Optimal Subsequences 权值线段树
Codeforces Round #602 (Div. 2) D: Optimal Subsequences 权值线段树 链接:Optimal Subsequences 题解:题目要求sum最大且字典序最小。在输入数据的时候对每个数xxx标记一个下标ididid,用一个结构体数组ppp存储,按数值从大到小,下标从小到大排序,那么 代码: #include<bits/stdc++.h&g...原创 2019-11-25 22:23:05 · 131 阅读 · 0 评论 -
Codeforces #599 div2 C题
Codeforces #599 div2 C题 题目 链接 开局说好带室友上分,结果挂在C题上了。挂机一个半小时,最后都没读懂这道题,最后找大佬请教,大佬不愧是大佬,读题仔细。题中有一句 “ the colors of two tiles with numbers iii and jjj should be the same if ∣i−j∣>1|i−j|>1∣i−j∣>1 ...原创 2019-11-07 14:57:23 · 130 阅读 · 0 评论 -
Codeforces#533 C.Ayoub and Lost Array(组合数学&递推)
问题 Ayoub had an array a of integers of size n and this array had two interesting properties: All the integers in the array were between l and r (inclusive). The sum of all the elements was divisible ...原创 2019-11-13 21:26:04 · 233 阅读 · 0 评论