2013年7月25日

25号搜索的一些例子,。。Oil Deposits&&Red and Black&&Knight Moves&&Catch That Cow&&Tempter of the Bone

摘要: Oil Depositshttp://poj.org/problem?id=1562一个简单又基础的搜索题目: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 char a[105][105]; 7 int s=0,i,j,x,y;“有多个函数,应把变量定义在外面”深搜 8 void dfs(int i,int j) 9 {10 if(ix||jy||a[i][j]!='@')11 return ;//直接跳出来.12 ... 阅读全文
posted @ 2013-07-25 23:27 ~~碾压机 阅读(254) 评论(1) 推荐(0) 编辑

第一次超水(我错了,有难度的)的组队赛!!!The Coco-Cola Store &&Multiple of 17&& Box Game

摘要: The Coco-Cola StoreOnce upon a time, there is a special coco-cola store. If you return three empty bottles to the shop, you'll get a full bottle of coco-cola to drink. If you have n empty bottles right in your hand, how many full bottles of coco-cola can you drink?InputThere will be at most 10 t 阅读全文
posted @ 2013-07-25 22:14 ~~碾压机 阅读(316) 评论(0) 推荐(0) 编辑