A Simple Problem with Integers
Time Limit: 5000MS
Memory Limit: 131072K
Total Submissions: 57666
Accepted: 17546
Case Time Limit: 2000MS
Description
You have N...
分类:
其他好文 时间:
2014-07-12 23:43:04
阅读次数:
291
题目链接:http://poj.org/problem?id=3468 http://poj.org/problem?id=3468 http://poj.org/problem?id=3468
思路:这是一个区间修改区间查询的题,由于题目中的给的数据比较大,那么用单个修改和查询肯定不行,所以。。。。注意数据可能比较大,应该用__int64或long long存数据。。。。。
code:
#...
分类:
其他好文 时间:
2014-07-12 22:30:01
阅读次数:
168
Drainage Ditches
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 8574 Accepted Submission(s): 3991
Problem Description
Every tim...
分类:
其他好文 时间:
2014-07-12 21:41:44
阅读次数:
211
Problem Description
Xiao Ming is traveling around several cities by train. And the time on the train is very boring, so Xiao Ming will use the mobile Internet. We all know that mobile phone receives ...
分类:
其他好文 时间:
2014-07-12 21:28:48
阅读次数:
197
爆搜解hdu1016Prime Ring Problem,欢迎讨论...
分类:
其他好文 时间:
2014-07-12 20:19:22
阅读次数:
155
Description
Read the statement of problem G for the definitions concerning trees. In the following we define the basic terminology of heaps. A heap is a tree whose internal nodes have each assigned...
分类:
其他好文 时间:
2014-07-12 18:52:12
阅读次数:
285
题目链接:http://poj.org/problem?id=1979
题目大意:一个矩形的房间地板被分为w*h个小块,每一个小块不是红的就是黑的,你首先站在一个黑色小块上,你只能朝你的四个方向(上下左右)移动,且不能到达红色的小块上,问你最多能到达多少个小块。
很简单的dfs深度优先搜索
没搜索过一个格子,将该格子设置为红色,之后的搜索就不会再搜索到该格子,就不会造成重复,因为该题有很多数...
分类:
其他好文 时间:
2014-07-12 18:44:03
阅读次数:
169
Problem Description
Mario is world-famous plumber. His “burly” figure and amazing jumping ability reminded in our memory. Now the poor princess is in trouble again and Mario needs to save his lover. ...
分类:
其他好文 时间:
2014-07-12 17:57:06
阅读次数:
174
Machine Schedule
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 5371 Accepted Submission(s): 2658
Problem Description
As we all...
分类:
其他好文 时间:
2014-07-12 17:41:08
阅读次数:
241
Problem Description
A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacent circles should be a prime...
分类:
其他好文 时间:
2014-07-12 16:42:15
阅读次数:
271