摘要: 传送 1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<algorithm> 5 using namespace std; 6 int cnt=0,original_value[9000001]={0},a[ 阅读全文
posted @ 2021-01-29 15:46 latent_Lin 阅读(106) 评论(0) 推荐(0)
摘要: 指路例题 1 /* 2 5 10 3 59 46 14 87 41 4 0 2 1 5 0 1 1 14 6 0 1 1 57 7 0 1 1 88 8 4 2 4 9 0 2 5 10 0 2 4 11 4 2 1 12 2 2 2 13 1 1 5 91 14 */ 15 #include<io 阅读全文
posted @ 2021-01-29 09:19 latent_Lin 阅读(89) 评论(1) 推荐(0)
摘要: #include<iostream> #include<cstring> #include<queue> #include<cstdio> #define INF 0x3f3f3f3f using namespace std; int N=0,last[1000001],dis[1000001],v 阅读全文
posted @ 2020-11-04 20:02 latent_Lin 阅读(159) 评论(0) 推荐(0)
摘要: 指路洛谷 #include<iostream> #include<sstream> #include<cstring> #include<cstdio> #include<queue> using namespace std; const long long INF=2147483647; int 阅读全文
posted @ 2020-11-04 18:57 latent_Lin 阅读(128) 评论(0) 推荐(0)
摘要: 题目描述 Bytetown城市要进行市长竞选,所有的选民可以畅所欲言地对竞选市长的候选人发表言论。为了统一管理,城市委员会为选民准备了一个张贴海报的electoral墙。 张贴规则如下: electoral墙是一个长度为N个单位的长方形,每个单位记为一个格子; 所有张贴的海报的高度必须与electo 阅读全文
posted @ 2020-10-28 20:22 latent_Lin 阅读(129) 评论(0) 推荐(0)
摘要: 树剖,我又来了!!! 阅读全文
posted @ 2020-10-27 20:38 latent_Lin 阅读(82) 评论(0) 推荐(0)
摘要: 果然,10月的我还是逃不过树剖o(╥﹏╥)o 阅读全文
posted @ 2020-10-26 21:48 latent_Lin 阅读(121) 评论(0) 推荐(0)
摘要: T1(60)想到了正解,但最后没有实现,以为思路想错了,换成了暴力,打了1.5小时 T2(60)暴力,想了个自以为是正解的正解 T3(0)没时间了…… T1猴猴吃苹果 题目描述 猴猴最喜欢在树上玩耍,一天猴猴又跳上了一棵树,这棵树有N个苹果,每个苹果有一个编号,分别为0~N-1,它们之间由N-1个树 阅读全文
posted @ 2020-10-23 21:27 latent_Lin 阅读(133) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 #include<cstdio> 3 using namespace std; 4 int n,m,a[101],dp[10001]; 5 int main(){ 6 scanf("%d%d",&n,&m); 7 for(int i=1;i<=n;i++ 阅读全文
posted @ 2020-10-22 17:54 latent_Lin 阅读(102) 评论(0) 推荐(0)
摘要: 题目描述 本题中,我们将用符号⌊c⌋ 表示对 c 向下取整,例如:⌊3.0⌋=⌊3.1⌋=⌊3.9⌋=3。 蛐蛐国最近蚯蚓成灾了!隔壁跳蚤国的跳蚤也拿蚯蚓们没办法,蛐蛐国王只好去请神刀手来帮他们消灭蚯蚓。 蛐蛐国里现在共有 n 只蚯蚓(n 为正整数)。每只蚯蚓拥有长度,我们设第 i 只蚯蚓的长度为  阅读全文
posted @ 2020-09-09 17:53 latent_Lin 阅读(197) 评论(0) 推荐(0)