
adhoc
han_hhh
这个作者很懒,什么都没留下…
展开
-
POJ 2661 Factstone Benchmark
Amtel has announced that it will release a 128-bit computer chip by 2010, a 256-bit computer by 2020, and so on, con- tinuing its strategy of doubling the word-size every ten years. (Amtel released a ...原创 2018-08-14 18:28:54 · 258 阅读 · 0 评论 -
UVA10037 Bridge
n people wish to cross a bridge at night. A group of at most two people may cross at any time, andeach group must have a flashlight. Only one flashlight is available among the n people, so some sort o...原创 2018-08-15 19:49:22 · 407 阅读 · 1 评论 -
POJ1852 UVA10714 ZOJ2376 Ants
Ants Time Limit: 1000MS Memory Limit: 30000K Total Submissions:24497 Accepted: 9798 Description An army of ants walk on a horizontal pole of length l cm, each with a constant spe...原创 2018-08-24 10:42:32 · 220 阅读 · 0 评论 -
POJ 2234 Matches Game
Here is a simple game. In this game, there are several piles of matches and two players. The two player play in turn. In each turn, one can choose a pile and take away arbitrary number of matches from...原创 2018-08-24 11:55:22 · 579 阅读 · 0 评论 -
HDU1014 POJ1597 Uniform Generator
Computer simulations often require random numbers. One way to generate pseudo-random numbers is via a function of the form seed(x+1) = [ seed(x) + STEP ] % MOD where "%" is the modulus...原创 2018-08-25 10:25:26 · 204 阅读 · 0 评论 -
求解Ad Hoc类问题的途径
机理分析法(即通过数学分析抽象出该问题的内在规律建立数学模型) 1.POJ 2661 Factstone Benchmark 2.UVA10037 Bridge(经典过桥问题) 统计分析法(通过手算或编程得到一些数据,部分解,适用于问题容易找到部分解的情况) 3.POJ1852 UVA10714 ZOJ2376 Ants(蚂蚁相遇) 4POJ 2234 Matches Game...原创 2018-08-25 10:41:32 · 2837 阅读 · 0 评论