DominationTime Limit:8 Seconds Memory Limit:131072 KB Special JudgeEdward is the headmaster of Marjar University. He is enthusiastic about chess and o...
分类:
其他好文 时间:
2014-10-12 22:15:38
阅读次数:
260
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5373题目意思: 有两个class:A 和 B,Bob 在 Class A 里面。现在给出 Class A(n-1人) 和 Class B(m人) 所有人的分数,除了Bo...
分类:
其他好文 时间:
2014-10-12 18:24:58
阅读次数:
204
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=4882
现在在牡丹江,明天regional现场赛,不出一个月就要退役了,求保佑
今天热身赛做题很紧张,老是打错字,所以晚上写写代码练练手
脑子还是不好使,没想到可以并查集
思路:题目中的操作导致的一个结果是,一条边会成为一个集合的w,---- 如果能想到这里可能就能想到...
分类:
其他好文 时间:
2014-10-11 23:27:07
阅读次数:
355
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4771题目意思:'@' 表示的是起点,'#' 表示的是障碍物不能通过,'.' 表示的是路能通过的; 目的:让你从 '@' 点出发,然后每个点只能走一次,求出最小的距离;解题思路:先用 bfs 求解出任意两...
分类:
其他好文 时间:
2014-10-10 20:23:44
阅读次数:
249
Alice's Print ServiceTime Limit:2 Seconds Memory Limit:65536 KBAlice is providing print service, while the pricing doesn't seem to be reasonable, so p...
分类:
其他好文 时间:
2014-10-09 22:55:28
阅读次数:
163
CollisionTime Limit:2 Seconds Memory Limit:65536 KB Special JudgeThere's a round medal fixed on an ideal smooth table, Fancy is trying to throw some c...
分类:
其他好文 时间:
2014-10-09 20:32:37
阅读次数:
317
http://acm.hdu.edu.cn/showproblem.php?pid=4059
现场赛中通过率挺高的一道题 但是容斥原理不怎么会。。
参考了http://blog.csdn.net/acm_cxlove/article/details/7434864
1、求逆元 p=1e9+7是素数,所以由 a^(p-1)%p同余于1 可得a%p的逆元为a^(p-2)
2、segma(i...
分类:
其他好文 时间:
2014-10-06 14:19:20
阅读次数:
167
K -Pocket CubeTime Limit:10000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 4801DescriptionPocket Cube is a 3-D combinati...
分类:
其他好文 时间:
2014-10-06 02:03:49
阅读次数:
376
J -Josephina and RPGTime Limit:2000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 4800DescriptionA role-playing game (RPG ...
分类:
其他好文 时间:
2014-10-06 01:46:59
阅读次数:
278
为迎接10月17号清华命题的鞍山现场赛杭电上的题目Biconnected(hdu4997)Rotate(hdu4998)Overt(hdu4999)Clone(hdu5000)Walk(hdu5001)LianLianKanRescueSpy's WorkColor the TreeThe Ghos...
分类:
其他好文 时间:
2014-10-05 21:29:49
阅读次数:
221