Problem Description
Bean-eating is an interesting game, everyone owns an M*N matrix, which is filled with different qualities beans. Meantime, there is only one bean in any 1*1 grid. Now you want t...
分类:
其他好文 时间:
2014-07-30 20:46:54
阅读次数:
262
题目:http://acm.hdu.edu.cn/showproblem.php?pid=4862题意:给你一个n*m的矩阵,填充着0-9的数字,每次能从一个点出发,到它的右边或者下边的点,花费为|x1-x2|+|y1-y2|-1,如果跳跃的起点和终点的数字相同,则获得这个数字的收益,不能走已经走过...
分类:
其他好文 时间:
2014-07-30 20:39:54
阅读次数:
305
Master-Mind Hints
MasterMind is a game for two players. One of them, Designer, selects a secret code. The other,Breaker, tries to break it. A code is no more than a row of colored dots. ...
分类:
其他好文 时间:
2014-07-30 14:44:53
阅读次数:
242
DescriptionConsider a game in which darts are thrown at a board. The board is formed by 10 circles with radii 20, 40, 60, 80, 100, 120, 140, 160, 180,...
分类:
其他好文 时间:
2014-07-30 09:53:33
阅读次数:
319
这题是上一题的升级版关键在于条形图的构造,逐行处理输入的矩阵,遇到'F'则在上一次的条形图基础上再加1,遇到'R'则置为0然后用上一题的算法,求每行对应条形图的最大矩阵的面积。另外:本来是debug都不用就1A的节奏。可在输入数据上,一开始我用的是scanf读入字符 和 getchar跳过无效字符,...
分类:
其他好文 时间:
2014-07-29 21:18:22
阅读次数:
280
Switch Game
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 10590 Accepted Submission(s): 6446
Problem Description
There are many la...
分类:
其他好文 时间:
2014-07-29 17:52:02
阅读次数:
203
King Robert has 7 kingdoms under his rule. He gets to know from a raven that the Dothraki are going to wage a war against him soon. But, he knows the ...
分类:
其他好文 时间:
2014-07-29 17:18:52
阅读次数:
211
The Settlers of Catan Within Settlers of Catan, the 1995 German game of the year, players attempt to dominate an island by building roads, settlements...
分类:
其他好文 时间:
2014-07-29 16:57:12
阅读次数:
253
这一步当中,我们给PlayScene中 添加两个按钮,让主角Jump and Crouch,按钮功能如下:
Jump按钮,按下主角跳起来
Crouch按钮,按下主角下蹲,一直按着一直蹲,松开之后主角才站起来
这里用按钮包含头文件"cocos-ext.h"会遇到一点点问题,后面给出详细解决方法:
首先PlayScene.h中要包含头文件:
#include "cocos-ext.h"
US...
分类:
其他好文 时间:
2014-07-29 15:16:48
阅读次数:
217
Problem Description
Alice and Bob are playing a game. There are two piles of cards. There are N cards in each pile, and each card has a score. They take turns to pick up the top or bottom card from...
分类:
其他好文 时间:
2014-07-29 15:03:28
阅读次数:
248