
ACM之路
文章平均质量分 72
Chasewell
If god had gifted me...but it not.
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Jon Snow and his Favourite Number
C. Jon Snow and his Favourite Numbertime limit per test 4 secondsmemory limit per test 256 megabytesinput standard inputoutput standard outputJon Snow now has t转载 2017-03-05 09:48:53 · 328 阅读 · 0 评论 -
最优矩阵算法POJ1651
Multiplication PuzzleTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 9595 Accepted: 5968DescriptionThe multiplication puzzle is played with a row of c转载 2017-03-10 20:42:48 · 280 阅读 · 0 评论 -
csu1709 olympic parade
DescriptionInputOutputSample Input10 31123133222Sample Output2HintSourcek题解:在给定队伍人数中,找出其中有一个不同人数的队伍,并输出队伍的ID。由于时间限制运用s原创 2017-03-13 07:57:18 · 244 阅读 · 0 评论 -
cus1828:dictionary
DescriptionThe isolated people of MacGuffin Island have a unique culture, and one of the most interesting things about them is their language. Their alphabet consists of the first 9 letters of the R原创 2017-03-14 07:55:21 · 211 阅读 · 0 评论 -
csu1706irrational root
题目大意:对于这个一元n次方程,所有的有理根都是整数,并整数根满足在-10到10的范围,求这个方程中无理根的个数。分析求解:1.我们枚举r在-10到10范围内的每个整数根,带入方程,判断是否等于02.判断是否为重根,对方程依次求导,每次求导后,将r带入方程,等式等于0,即为重根。计数加一。3,.最后n减去整数根的个数,即为无理根个数sample input原创 2017-03-16 09:32:07 · 221 阅读 · 0 评论 -
map的使用心得
1.map的类型map的头文件,#includemap;map;mapmap2,map的使用map.count()检查key出现的次数,再map中key是唯一值,所以 返回值只有 0,或1map.insert(make_pair()) 插入函数map.size()得到map内key元素的个数map.begin() map.end()首地址map.clea原创 2017-04-21 18:16:42 · 559 阅读 · 0 评论 -
HDU 5971
题解:先确定在n个人的序号里面,是good or bad 我用 1 和 -1 来区别。如果一个人确定为good 即为 1 则与他比赛的对手即为 bad -1.如此将所有情况罗列出来。最后遍历一遍 per 数组。如果还有不确定的 人 即 输出 no 否则 为yes.//#include #include #include #include #include #in原创 2017-09-07 19:44:22 · 296 阅读 · 0 评论