Problem DescriptionNowadays, akind of chess game called “Super Jumping! Jumping! Jumping!” isvery popular in HDU. Maybe you are a good boy, and kno...
转载
2016-04-29 10:51:00
62阅读
2评论
Problem Description某省调查城镇交通状况,得到现有城镇道路统计表,表中列出了每条道路直接连通的城镇。省政府“畅通工程”的目标是使全省任何两个城镇间都可以实现交通(但不一定有直接的道路相连,只要互相间接通过道路可达即可)。问最少还需要建设多少条道路?Input测试输入包含若干测...
转载
2016-06-15 21:35:00
55阅读
2评论
Problem DescriptionHere is a famous story in Chinesehistory."That was about 2300 years ago. General Tian Ji was a high officialin the country Qi. H...
转载
2016-03-16 12:35:00
63阅读
2评论
Problem DescriptionNowadays, akind of chess game called “Super Jumping! Jumping! Jumping!” isvery popular in HDU. Maybe you are a good boy, and kno...
转载
2016-04-29 10:51:00
56阅读
2评论
Problem DescriptionHere is a famous story in Chinesehistory."That was about 2300 years ago. General Tian Ji was a high officialin the country Qi. H...
转载
2016-03-16 12:35:00
94阅读
2评论
题目链接 http://codeforces.com/gym/100722/attachments/download/3466/20062007-northwestern-european-regional-contest-nwerc-2006-en.pdf 题目大意 你要过生日了,有n个派,来了f
转载
2017-10-15 15:43:00
90阅读
2评论
#include<iostream>#include<fstream>#include<string>usingnamespacestd;constintmaxn=1024;intmain(){stringsho,str,ans;cin>>sho;while(getline(cin,str)){for(inti=0;i<str.size();i
原创
2018-07-20 20:07:07
558阅读
题意简述: 有$n$个数$a_1,\cdots,a_n$,$a_i\sim B(m,p)$且相互独立。 同时有一个$N$次多项式$f(x)$,给定$f(0),\cdots,f(N)$。 现在需要求出所有满足$0\le b_i\le a_i$的$f(\sum\limits_{i=1}^nb_i)$的和
转载
2020-02-08 21:56:00
97阅读
2评论
[题目链接] https://www.lydsy.com/JudgeOnline/problem.php?id=2302 [算法] 记 s[i] 表示已经确定的m人中编号大于等于i的人数 考虑dp , 记fi,j表示剩余(n - m)人中编号大于等于i的人已经确定j个人的编号的方案数,则:f[i][
转载
2019-03-29 21:11:00
28阅读
题目描写叙述
Problem C: Celebrity Split
Jack and Jill have decided to separate and divide their property equally. Each of their N mansions has a value between 1,000,000
and 40,000,000 dollars. Jac
转载
2016-01-20 20:39:00
523阅读
2评论
点击打开链接Problem CTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 2240 Accepted Submission(s): 618Problem Description度熊手
原创
2022-09-07 16:52:28
62阅读
问题 C: Legal or Not时间限制: 1 Sec 内存限制: 32 MB提交: 74 解决: 27 题目描述ACM-DIY is a large QQ group where many excellent acmers get together. It is so harmonious that just like a big family. Every day,ma...
原创
2022-09-15 10:55:11
34阅读
Problem Description
输入一
原创
2022-11-09 19:06:08
47阅读
Description
机房断网了!xj轻而易举地撬开了中心机房的锁,拉着zwl走了进去。他们发现中心主机爆炸了。
中心主机爆炸后分裂成了 n 块碎片,但碎片仍然互相连接,形成一个树的结构。每个碎片有一个状态值0或1 。zwl找了一下规律,发现只有所有碎片的状态值相同的时候,主机才能够修复。
xj碰了碰其中一个碎片 x ,发现对于满足 x 到 v 的路径上所有碎片的状态值与 x 的状态值相同 的那...
原创
2021-07-13 14:52:04
60阅读
C - A Simple Problem with Integers POJ - 3468 C - A Simple Problem with Integers POJ - 3468 C - A Simple Problem with Integers 思路:线段树区间修改区间查询。又出现了 C++
转载
2018-02-24 14:03:00
36阅读
http://codeforces.com/problemset/problem/340/C赛时没想出赛后却能较快想出深深的教育自己做题一定要静下心来,不要轻易放弃,认真思考,不要浮躁着急,不要太容易受外界影响C. Tourist Problemtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIahub is a big fan of tourists. He wants to become a tourist himself, so he
转载
2013-09-01 00:44:00
114阅读
2评论
问题 C: 查找时间限制:1 Sec内存限制:32 MB题目描述输入数组长度 n输入数组 a[1...n
原创
2022-09-15 10:56:18
23阅读
Description有一棵n个点的树,第i个节点有ai个石子。判断是否有可能去掉所有的石头。每次都可以选择一对不同的叶子节点,这对叶子节点路径上的所有点都必须要有石子。然后去掉这两个叶子节点路径上的每个节点中的一颗石子(选择的两个叶子节点也是路径中的点)。叶子节点就度数为1的点。Input第一行一个整数 n第二行n个整数ai接下来 n−1 行每行两个整数 x,y,表示节点 x 和节...
原创
2021-07-13 14:51:32
70阅读
问题 C: C语言11.4时间限制:1 Sec内存限制:32 MB题目描述设有若干个人员的数据,其中包含:struct { int num;...
原创
2022-09-15 10:50:39
48阅读
问题 C: C语言10.10时间限制:1 Sec内存限制:32 MB题目描述给定字符串定义char *a = “I love
原创
2022-09-15 10:51:10
57阅读