题目
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
...
分类:
其他好文 时间:
2014-06-19 10:05:39
阅读次数:
278
本文是对该教程的学习练习http://www.jb51.net/tools/zhengze.html1.\bContent\bstatic void Main(string[] args){ string str = "Act game - Uncharted3, act Game - God...
分类:
其他好文 时间:
2014-06-19 06:02:58
阅读次数:
200
Problem DescriptionTeacher HU and his 40 students were trapped by the brigands. To show their power, the head of the brigands want to select one peopl...
分类:
其他好文 时间:
2014-06-17 00:28:32
阅读次数:
362
在Finder中定位到要修改权限的文件或应用通过“文件”菜单栏或右键菜单选择“显示简介”(快捷键Cmd+I)找到简介面板的最下方的“共享与权限”(Sharing&Permissions)部分按需对不同用户赋予权限:读与写(readandwrite)、只读(readonly)、无访问权限(no acc...
分类:
其他好文 时间:
2014-06-15 23:16:53
阅读次数:
648
题目链接:http://poj.org/problem?id=2996
POJ...
分类:
其他好文 时间:
2014-06-15 20:16:37
阅读次数:
253
暴利搜索即可#include #include #include using namespace std;int main(){ int n,k,x; cin >> n >> k >> x; vector c(n); for(int i = 0 ; i > c[i]; ...
分类:
其他好文 时间:
2014-06-14 18:47:42
阅读次数:
206
坦克大战
时间限制:1000 ms | 内存限制:65535 KB
难度:3
描述
Many of us had played the game "Battle city" in our childhood, and some people (like me) even often play it on computer now.
What we are dis...
分类:
其他好文 时间:
2014-06-14 14:30:01
阅读次数:
274
Codeforces Zepto Code Rush 2014 Feed with Candy 贪心 题解
一开始想的很native,就是想简单贪心排一下序去搞。。。然后玩脱了。。。先是无脑WA8,后来好不容易过了就被适牛hack了。。。
正解是,每次选取所有可能的糖果中,质量最大的那个。
具体实现的时候可以用优先队列去维护。...
分类:
其他好文 时间:
2014-06-14 09:26:27
阅读次数:
257
http://acm.hdu.edu.cn/game/entry/problem/list.php?chapterid=1§ionid=21.2.5
#include
/*
题意:找闰年。
if((i%4==0 && i%100!=0) || i%400==0)count++;
3
2005 25
1855 12
2004 10000
2108
1904
43236
*/
int ma...
分类:
其他好文 时间:
2014-06-14 06:32:08
阅读次数:
320
点击NEW GAME按钮,进入游戏主场景
代码:
游戏背景
layer = (CCLayer*)this->getChildren()->objectAtIndex(SnakeConstants::LAYER_BACKGROUND);
layer->setTouchEnabled(false);
//游戏背景
CCSize size = CCDirector::sh...
分类:
其他好文 时间:
2014-06-13 20:39:00
阅读次数:
371