DescriptionDZY loves chessboard, and he enjoys playing with it.He has a chessboard of n rows and m columns. Some cells of the chessboard are bad, othe...
分类:
其他好文 时间:
2014-11-24 18:51:18
阅读次数:
232
以下部分来自:http://www.cnblogs.com/zhuohan123/p/3726306.htmlDZY系列。这题首先是几个性质: 1.所有球质量相同,碰撞直接交换速度,而球又没有编号,那么就可以直接视作两个球没有碰撞。 2.所有的方向、初始位置都没有任何用处。然后就是速度的问题了,.....
分类:
其他好文 时间:
2014-11-23 09:15:51
阅读次数:
220
就是给一个数列,维护操作:(1)加一个数(2)求当前全部数的第K大。。。看了Claris大爷的做法深有启发,于是替蒟蒻的替罪羊树的第一次就没了。。。写完才发现。。。Orz主席树怎么忘了、、、貌似实现更简单啊!!!不管了QAQ 1 /*********************************....
分类:
其他好文 时间:
2014-11-16 21:28:32
阅读次数:
221
DZY loves colors, and he enjoys painting.
On a colorful day, DZY gets a colorful ribbon, which consists of n units (they are numbered from 1 to n from
left to right). The color of thei-th unit of...
分类:
其他好文 时间:
2014-11-15 01:28:29
阅读次数:
222
Aeroplane chess
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1628 Accepted Submission(s): 1103
Problem Description
Hzz loves aero...
分类:
其他好文 时间:
2014-10-28 15:30:30
阅读次数:
199
题意:给定n个点m条边的无向图每次必须沿着LOVE走,到终点时必须是完整的LOVE,且至少走出一个LOVE,问这样情况下最短路是多少,在一样短情况下最多的LOVE个数是多少。有自环。#include #include #include #include #include #include using...
分类:
其他好文 时间:
2014-10-25 14:23:46
阅读次数:
158
Description
Ms.Fang loves painting very much. She paints GFW(Great Funny Wall) every day. Every day before painting, she produces a wonderful color of pigments by mixing water and some bags of pigm...
分类:
其他好文 时间:
2014-10-20 23:22:07
阅读次数:
259
ZCC Loves Codefires
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 823 Accepted Submission(s): 438
Problem Description
Though ZCC has man...
分类:
其他好文 时间:
2014-10-18 19:44:50
阅读次数:
176
ZCC loves cards
Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 2362 Accepted Submission(s): 590
Problem Description
ZCC loves playing car...
分类:
其他好文 时间:
2014-10-18 15:36:01
阅读次数:
218
题目链接Dreamoon loves summing up something for no reason. One day he obtains two integersaandboccasionally. He wants to calculate the sum of allniceinteg...
分类:
其他好文 时间:
2014-10-13 23:10:27
阅读次数:
221