模拟
SCUT_Pein
这个作者很懒,什么都没留下…
展开
-
POJ1573--模拟--Robot Motion
DescriptionA robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid down in a grid. The possible instructions are原创 2013-02-15 00:49:04 · 480 阅读 · 0 评论 -
POJ2632--Crashing Robots--模拟
DescriptionIn a modernized warehouse, robots are used to fetch the goods. Careful planning is needed to ensure that the robots reach their destinations without crashing into each other. Of course, a原创 2013-02-17 22:56:03 · 560 阅读 · 0 评论 -
POJ3009--Curling 2.0
/*开始的时候,冰壶在起点冰壶只能够沿着x y方向移动冰壶需要至少一格子的惯性才能撞破石头冰壶撞到石头的时候,石头消失,冰壶停在石头之前的位置,石头消失冰壶出界,或者超过10步还不能到达,失败冰壶到达终点,成功0代表空地1代表石头2代表起点3代表终点*/#include #include using namespace std;#defi原创 2013-03-03 20:38:25 · 534 阅读 · 0 评论 -
HDU2209--翻纸牌游戏
Description有一种纸牌游戏,很有意思,给你N张纸牌,一字排开,纸牌有正反两面,开始的纸牌可能是一种乱的状态(有些朝正,有些朝反),现在你需要整理这些纸牌。但是麻烦的是,每当你翻一张纸牌(由正翻到反,或者有反翻到正)时,他左右两张纸牌(最左边和最右边的纸牌,只会影响附近一张)也必须跟着翻动,现在给你一个乱的状态,问你能否把他们整理好,使得每张纸牌都正面朝上,如果可以,最少需要多原创 2013-03-11 20:46:42 · 1344 阅读 · 2 评论 -
Next Mayor--SOJ 2013week2.1000
Time Limit: 1sec Memory Limit:256MBDescriptionOne of the oddest traditions of the town of Gameston may be that even the town mayor of the next term is chosen according to the result of a ga原创 2013-03-17 16:13:46 · 948 阅读 · 0 评论