码迷,mamicode.com
首页 >  
搜索关键字:candy sharing game    ( 6263个结果
Jump Game
题目 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
正则表达式入门(c#)
本文是对该教程的学习练习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
acd The Game about KILL(和约瑟夫归则一样,归律)
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
在 Mac OS X 系统中修改文件权限
在Finder中定位到要修改权限的文件或应用通过“文件”菜单栏或右键菜单选择“显示简介”(快捷键Cmd+I)找到简介面板的最下方的“共享与权限”(Sharing&Permissions)部分按需对不同用户赋予权限:读与写(readandwrite)、只读(readonly)、无访问权限(no acc...
分类:其他好文   时间:2014-06-15 23:16:53    阅读次数:648
POJ 2996 Help Me with the Game (模拟)
题目链接:http://poj.org/problem?id=2996 POJ...
分类:其他好文   时间:2014-06-15 20:16:37    阅读次数:253
Codeforces Round #245 (Div. 2) B - Balls Game
暴利搜索即可#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
NYOJ 284 坦克大战 【BFS】+【优先队列】
坦克大战 时间限制: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 贪心
Codeforces Zepto Code Rush 2014 Feed with Candy 贪心 题解 一开始想的很native,就是想简单贪心排一下序去搞。。。然后玩脱了。。。先是无脑WA8,后来好不容易过了就被适牛hack了。。。 正解是,每次选取所有可能的糖果中,质量最大的那个。 具体实现的时候可以用优先队列去维护。...
分类:其他好文   时间:2014-06-14 09:26:27    阅读次数:257
杭电OJ(HDU)-ACMSteps-Chapter Two-《An Easy Task》《Buildings》《decimal system》《Vowel Counting》
http://acm.hdu.edu.cn/game/entry/problem/list.php?chapterid=1&sectionid=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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!