码迷,mamicode.com
首页 >  
搜索关键字:integer game    ( 20395个结果
Delphi XE6 TStringHelper中的string类型转换
类型转换:function ToBoolean: Boolean;function ToInteger: Integer;function ToSingle: Single;function ToDouble: Double;function ToExtended: Extended;class f...
分类:其他好文   时间:2014-05-01 15:02:01    阅读次数:382
Chap4: question: 19 - 28
19. 二叉树的镜像(递归)即:交换所有节点的左右子树。从下往上 或 从上往下 都可以。#include #include using namespace std;struct BTNode{ int v; // default positive Integer. BTNode *pLeft; B....
分类:其他好文   时间:2014-05-01 12:41:11    阅读次数:416
包装类的介绍和String类型的学习
包装类 为8种基本类型各自提供对象形式 int ---- Integer char ---- Character short ---- Short double ---- Double ...自动封箱: JDK5.0 由编译器自动完成基...
分类:其他好文   时间:2014-05-01 12:19:12    阅读次数:299
游戏分类
按游戏方式分类RPG (Roleplaying Game) 角色扮演游戏ACT (Action Game) 动作游戏AVG (Adventure Game) 冒险游戏SLG (Strategy Game) 策略游戏FTG (Fighting Game) 格斗游戏STG (Shoting Game) ...
分类:其他好文   时间:2014-05-01 12:02:18    阅读次数:298
Reverse Integer
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321Have you thought about this?Here are some good questions to ask...
分类:其他好文   时间:2014-05-01 01:20:59    阅读次数:334
SQLite3基本使用从shell到python
SQLite是一个轻量级的关系型数据库,在访问量不超过10万PV的中小网站中使用绰绰有余。而且使用方便,接口简单,下面从命令行和python接口两方面介绍SQLite3的基本操作。         在linux终端中,通过 sqlite3 a.db 打开a.db数据库,如果不存在会自动创建,创建一个表格: create table users(id integer primary key,na...
分类:数据库   时间:2014-04-29 13:33:21    阅读次数:489
ACM-模拟之Candy Sharing Game——hdu1034
ACM 模拟 Candy Sharing Game hdu1034...
分类:其他好文   时间:2014-04-29 13:23:20    阅读次数:271
Hdu 1042 N! (高精度数)
Problem Description Given an integer N(0 ≤ N ≤ 10000), your task is to calculate N!   Input One N in one line, process to the end of file.   Output For each N, output N! i...
分类:其他好文   时间:2014-04-28 10:36:41    阅读次数:341
Timus 1180. Stone Game 游戏题目
这也是个有趣的问题,也很经典的游戏题目的变形了。 不过这道题扩展了成为无限大的数了。 类似的游戏有:没人可以拿掉桌面上的棋子,每次不能超过5个,最后没棋子可以拿的算输 解决这样的题目只能是寻找规律了,不能真的模拟区玩了,否则必定超时。 这道题目的规律就是: 1 如果给出的stone是3的倍数,那么先取者必输 2 如果给出的不是3的倍数,那么先取者就凑成3的倍数就必赢,因为凑3的倍数很容易,去掉1个或者2个必定可以凑出来了 所以最后问题就成了mod3问题了。 我是怎么想出来的? 我是一个列子一个例子去观察,...
分类:其他好文   时间:2014-04-28 10:17:41    阅读次数:324
hdu1211
RSA is one of the most powerful methods to encrypt data. The RSA algorithm is described as follow: > choose two large prime integer p, q > calculate n = p × q, calculate F(n) = (p - 1) × (q - 1) ...
分类:其他好文   时间:2014-04-27 21:37:59    阅读次数:315
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!