![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ACM
文章平均质量分 86
CharllotteQZY
这个作者很懒,什么都没留下…
展开
-
洛谷P2024 [NOI2001]食物链
题目描述动物王国中有三类动物 A,B,C,这三类动物的食物链构成了有趣的环形。A 吃 B,B吃 C,C 吃 A。现有 N 个动物,以 1 - N 编号。每个动物都是 A,B,C 中的一种,但是我们并不知道它到底是哪一种。有人用两种说法对这 N 个动物所构成的食物链关系进行描述:第一种说法是“1 X Y”,表示 X 和 Y 是同类。第二种说法是“2 X Y”,表示 X 吃 Y 。此人...原创 2019-06-14 08:30:05 · 147 阅读 · 0 评论 -
hdu5247 找连续数 2015百度之星初赛(1)
题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=5247找连续数Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2122Accepted Submission(s): 777...原创 2019-07-24 08:10:38 · 148 阅读 · 0 评论 -
codeforces 9D How many trees?
题目连接:http://codeforces.com/problemset/problem/9/DD. How many trees?time limit per test1 secondmemory limit per test64 megabytesinputstandard inputoutputstandard outputIn one very o...原创 2019-07-29 14:19:44 · 232 阅读 · 0 评论 -
codeforces 161D Distance in Tree
题目链接:http://codeforces.com/problemset/problem/161/DD. Distance in Treetime limit per test3 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputAtreei...原创 2019-07-29 17:24:03 · 162 阅读 · 0 评论 -
codeforces461 B. Appleman and Tree
题目连接:http://codeforces.com/contest/461/problem/BB. Appleman and Treetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAppleman h...原创 2019-07-24 16:07:58 · 157 阅读 · 0 评论 -
codeforces294E. Shaass the Great
题目链接:http://codeforces.com/problemset/problem/294/EE. Shaass the Greattime limit per test3.5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe gr...原创 2019-08-01 08:55:20 · 175 阅读 · 0 评论 -
codeforces486D. Valid Sets
题目链接:http://codeforces.com/contest/486/problem/DD. Valid Setstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAs you know, an un...原创 2019-08-01 10:59:41 · 195 阅读 · 0 评论 -
hdu6677 度度熊与组题 2019百度之星初赛第二场
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6677度度熊与组题Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 86Accepted Submission(s): 34...原创 2019-08-20 10:34:43 · 423 阅读 · 0 评论 -
洛谷 P1040 加分二叉树
题目链接:https://www.luogu.org/problemnew/show/P1040题目描述设一个n个节点的二叉树tree的中序遍历为(1,2,3,…,n),其中数字1,2,3,…,n为节点编号。每个节点都有一个分数(均为正整数),记第i个节点的分数为di,tree及它的每个子树都有一个加分,任一棵子树subtree(也包含tree本身)的加分计算方法如下:subtree的...原创 2019-07-06 23:15:01 · 107 阅读 · 0 评论 -
POJ2229 Sumsets 递推or完全背包
题目连接:http://poj.org/problem?id=2229SumsetsTime Limit:2000MS Memory Limit:200000K Total Submissions:26673 Accepted:10093 DescriptionFarmer John commanded his cows to searc...原创 2019-07-06 20:43:10 · 151 阅读 · 0 评论 -
poj 2689 Prime Distance 素数
题目链接:http://poj.org/problem?id=2689Prime DistanceTime Limit:1000MS Memory Limit:65536K Total Submissions:27316 Accepted:7051 DescriptionThe branch of mathematics called n...转载 2019-07-01 17:13:25 · 171 阅读 · 0 评论 -
HDU6533 Build Tree(2019JSCPC B题)
Build TreeTime Limit: 3000/1500 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1292Accepted Submission(s): 218Problem DescriptionYou need to construct a f...原创 2019-06-15 22:54:23 · 578 阅读 · 0 评论 -
HDU6534Chika and Friendly Pairs(2019JSCPC C题)
Chika and Friendly PairsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 524288/524288 K (Java/Others)Total Submission(s): 874Accepted Submission(s): 308Problem DescriptionChika give...原创 2019-06-15 22:57:57 · 301 阅读 · 0 评论 -
HDU6536 Hello XTCPC(2019JSCPC E题)
Hello XTCPCTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 981Accepted Submission(s): 271Problem DescriptionYou have a string of lowe...原创 2019-06-16 09:05:58 · 567 阅读 · 2 评论 -
codeforces 27E Number With The Given Amount Of Divisors
http://codeforces.com/problemset/problem/27/EE. Number With The Given Amount Of Divisorstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandar...原创 2019-06-17 15:04:24 · 144 阅读 · 0 评论 -
ZOJ1562 More Divisors
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=1562More DivisorsTime Limit:2 Seconds Memory Limit:65536 KBEverybody knows that we use decimal notation, i.e. the base of our no...原创 2019-06-17 15:32:29 · 130 阅读 · 0 评论 -
hdu6676 度度熊与运算式1 2019百度之星初赛第二场
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6676Source2019 年百度之星·程序设计大赛 - 初赛二官方题解照着题解写的代码#include<iostream>#include<cstdio>#include<cstring>#include<algorithm...原创 2019-08-20 11:14:38 · 324 阅读 · 0 评论