码迷,mamicode.com
首页 >  
搜索关键字:integer game    ( 20395个结果
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
delphi中OleContainer的使用总结
1:定义流的header , OleContainer要求流中要有Headertype//流Header的结构TStreamHeader = recordSignature: Integer; //$434F4442DrawAspect: Integer; //1DataSize: Integer;...
分类:其他好文   时间:2014-06-15 21:10:28    阅读次数:472
指针入门
& produces the address of its operand. For example,the following statements an integer variable 'a' and apointer to an integer variable 'p' are dec...
分类:其他好文   时间:2014-06-15 20:41:58    阅读次数:155
【0031】反转整数/判断回文
Reverse Integer反转一个整数C++ Code1234567891011121314151617181920212223242526272829303132classSolution{public:intreverse(intx){/*一位数的情况*/if(-10=10){div*=10...
分类:其他好文   时间:2014-06-15 20:19:20    阅读次数:196
POJ 2996 Help Me with the Game (模拟)
题目链接:http://poj.org/problem?id=2996 POJ...
分类:其他好文   时间:2014-06-15 20:16:37    阅读次数:253
leetcode Roman to Integer
只有C、X、I可以作为前缀,后缀的情况不需要考虑,直接加上去即可,我的代码还不是很简洁,请指正 {CSDN:CODE:389739}...
分类:其他好文   时间:2014-06-15 08:58:39    阅读次数:174
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
leetcode--Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:其他好文   时间:2014-06-14 08:52:31    阅读次数:265
杭电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
迷上了代码!