1 2 3 4

05 2020 档案

摘要:“科林明伦杯”哈尔滨理工大学第十届程序设计竞赛(同步赛) 换根来一波 https://ac.nowcoder.com/acm/contest/5758/A #include<iostream> #include<algorithm> #include<cstring> using namespace 阅读全文
posted @ 2020-05-31 17:15 Lesning 阅读(199) 评论(0) 推荐(0)
摘要:https://codeforc.es/contest/1359/problem/D 参考了一位大佬 https://www.cnblogs.com/stelayuri/p/12986700.html 看完题解我是震惊的。 枚举最大值,如果前面区间sum小于0,就直接扔掉(sum = 0),因为留下 阅读全文
posted @ 2020-05-29 17:34 Lesning 阅读(155) 评论(0) 推荐(0)
摘要:https://ac.nowcoder.com/acm/contest/5600/J #include<iostream> using namespace std; typedef long long ll; const ll mod = 1e9+7; const int maxn = 2e5+11 阅读全文
posted @ 2020-05-20 18:19 Lesning 阅读(703) 评论(0) 推荐(0)
摘要:https://ac.nowcoder.com/acm/contest/5556/A 代码今天晚上补完 #include<iostream> #include<cstring> #include<algorithm> #include<queue> #include<vector> using na 阅读全文
posted @ 2020-05-08 18:38 Lesning 阅读(158) 评论(0) 推荐(0)
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6035一棵n个结点的树,每个结点都有颜色,定义两点之间的路径长度为路径上出现的不同颜色数目,求树上所有路径的长度和。 https://blog.csdn.net/Bahuia/article/detail 阅读全文
posted @ 2020-05-06 21:38 Lesning 阅读(127) 评论(0) 推荐(0)