题目链接 http://acm.split.hdu.edu.cn/showproblem.php?pid=5410 Problem Description Today is CRB's birthday. His mom decided to buy many presents for her lo ...
分类:
其他好文 时间:
2016-09-02 21:57:51
阅读次数:
193
题目链接 http://acm.split.hdu.edu.cn/showproblem.php?pid=5396 Problem Description Teacher Mai has n numbers a1,a2,?,anand n?1 operators("+", "-" or "*")op ...
分类:
其他好文 时间:
2016-09-01 21:28:54
阅读次数:
204
题目链接 http://acm.split.hdu.edu.cn/showproblem.php?pid=5379 Problem Description Little sun is an artist. Today he is playing mahjong alone. He suddenly ...
分类:
其他好文 时间:
2016-08-30 21:25:55
阅读次数:
235
Description ?? is practicing his program skill, and now he is given a string, he has to calculate the total number of its distinct substrings. But ?? ...
分类:
编程语言 时间:
2016-08-28 01:13:16
阅读次数:
232
原题链接 Problem Description There are n people and m pairs of friends. For every pair of friends, they can choose to become online friends (communicating ...
分类:
其他好文 时间:
2016-08-27 22:02:22
阅读次数:
180
描述 LT最近一直在无限循环薛之谦的歌,简直都中毒了!可是呢…他的歌LT还是不会唱(其实不止他的歌LT不会唱,所有人的歌LT都不会唱…因为LT是标准的音痴)可是LT又很喜欢唱歌(所以LT不仅是音痴还是音痴)…没错,这对于LT的室友来说简直是噩梦… 现在呢,LT有N次操作,每次操作只会有两种可能: I ...
分类:
其他好文 时间:
2016-08-22 18:03:13
阅读次数:
152
原题链接 Problem Description You may heard of the Joseph Problem, the story comes from a Jewish historian living in 1st century. He and his 40 comrade sol ...
分类:
其他好文 时间:
2016-08-21 12:25:30
阅读次数:
144
描述 有N个人,N个活动, 每个人只会对2个或者3个活动感兴趣, 每个活动也只有两个人或者两个活动对它兴趣,每个人参加一个 感兴趣的活动需要一天 ,且当天该活动被参加时,其他的人不能参加 如果每个人都参加完自己有兴趣的活动,应当怎样安排使得所用总天数时间最短 2<= N <=1000, 1<=m<= ...
分类:
其他好文 时间:
2016-08-20 16:05:58
阅读次数:
122
原题链接 Problem Description Given some segments which are paralleled to the coordinate axis. You need to count the number of their intersection.The input ...
分类:
其他好文 时间:
2016-08-20 11:39:25
阅读次数:
122
题目大意:一个n(n<=1000)行,20列的棋盘上有一些棋子,两个人下棋,每回合可以把任意一个棋子向右移动到这一行的离这个棋子最近的空格上(注意这里不一定是移动最后一个棋子),不能移动到棋盘外,不能移动了就算输,两个人都用最优策略,问先手是否有必胜策略。 这题显然就是SG函数了吧。行与行之间互不影 ...
分类:
其他好文 时间:
2016-08-14 17:30:42
阅读次数:
112