
搜索
纯纯的心儿
每天都在赚事业。。
展开
-
uva 307 Sticks
SticksGeorge took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the original state, but he forgot how many sticks he原创 2015-03-23 22:02:23 · 608 阅读 · 0 评论 -
hdu 1253 胜利大逃亡
胜利大逃亡Time Limit : 4000/2000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 50 Accepted Submission(s) : 20Font: Times New Roman | Verdana | GeorgiaFont原创 2015-04-16 16:14:00 · 1983 阅读 · 0 评论 -
hdu 2952 Counting Sheep
Problem DescriptionA while ago I had trouble sleeping. I used to lie awake, staring at the ceiling, for hours and hours. Then one day my grandmother suggested I tried counting sheep after I'd gone原创 2015-06-14 16:02:04 · 507 阅读 · 0 评论 -
hdu 2209 翻纸牌游戏
Problem Description有一种纸牌游戏,很有意思,给你N张纸牌,一字排开,纸牌有正反两面,开始的纸牌可能是一种乱的状态(有些朝正,有些朝反),现在你需要整理这些纸牌。但是麻烦的是,每当你翻一张纸牌(由正翻到反,或者有反翻到正)时,他左右两张纸牌(最左边和最右边的纸牌,只会影响附近一张)也必须跟着翻动,现在给你一个乱的状态,问你能否把他们整理好,使得每张纸牌都正面朝上,如果可以原创 2015-05-03 16:50:34 · 469 阅读 · 0 评论 -
hdu 2181 哈密顿绕行世界问题
哈密顿绕行世界问题Time Limit : 3000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 40 Accepted Submission(s) : 22Font: Times New Roman | Verdana | Georgia原创 2015-04-09 17:33:09 · 313 阅读 · 0 评论 -
hdu 2614 Beat
BeatTime Limit : 6000/2000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 35 Accepted Submission(s) : 25Font: Times New Roman | Verdana | GeorgiaFont原创 2015-04-09 17:27:04 · 385 阅读 · 0 评论 -
hdu 1258 Sum It Up
Sum It UpTime Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 28 Accepted Submission(s) : 17Font: Times New Roman | Verdana | Georgia原创 2015-04-09 17:22:27 · 396 阅读 · 0 评论 -
hdu 1175 连连看
Problem Description“连连看”相信很多人都玩过。没玩过也没关系,下面我给大家介绍一下游戏规则:在一个棋盘中,放了很多的棋子。如果某两个相同的棋子,可以通过一条线连起来(这条线不能经过其它棋子),而且线的转折次数不超过两次,那么这两个棋子就可以在棋盘上消去。不好意思,由于我以前没有玩过连连看,咨询了同学的意见,连线不能从外面绕过去的,但事实上这是错的。现在已经酿成大祸,就只原创 2015-04-03 22:28:29 · 330 阅读 · 0 评论 -
UVA12510 Collecting Coins
In a maze of r rows and c columns, your task is to collect as many coins as possible.Each square is either your start point "S"(which will become empty after you leave), an empty square ".", a coin原创 2015-04-06 23:22:26 · 615 阅读 · 0 评论 -
ddu 1010 Tempter of the Bone
该题是一个典型的搜索题, #include#include#includeint a,b,c,d,n,m,T;char map[10][10]; //地图数组 int biao[10][10];// 标记访问数组 int dx[]={0,0,1,-1};//控制左右上下的移动坐标变化; int dy[]={-1,1,0,0};int sou(int x,int y,int t原创 2015-03-31 17:55:25 · 372 阅读 · 0 评论 -
hdu 1078 FatMouse and Cheese
Problem DescriptionFatMouse has stored some cheese in a city. The city can be considered as a square grid of dimension n: each grid location is labelled (p,q) where 0 <= p < n and 0 <= q < n. At e原创 2015-06-14 16:18:36 · 466 阅读 · 0 评论