class Person def initialize(name,age=18) @name=name
@age=age @motherland="China" end def talk puts "my name is " ...
分类:
其他好文 时间:
2014-05-01 12:08:53
阅读次数:
297
按游戏方式分类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
1.属性列表:SelectionMode组件中条目的选择类型:None-根本不允许任何选择;One-默认值,只选择单个选项;MultiSimple-简单的多项选择,单击一次鼠标就选中或取消选中列表中的一项;MultiExtended-扩展的多项选择,类似windows中的选择操作.SelectedI...
分类:
其他好文 时间:
2014-05-01 08:05:56
阅读次数:
584
我们主要使用3dsmax进行制作,输出FBX的类型导入unity3d中。默认情况下,3dsmax可以和U3d软件直接融合,自动转换为FBX物体。注意事项如下:1.面数控制在MAX软件中制作单一Game
Object物体的面数不能超过65000个三角形,即32500个多边形Poly,如果超过这个数量的...
分类:
其他好文 时间:
2014-05-01 05:37:33
阅读次数:
323
At the start of each school year, a very important event happens at Hogwarts. Each of the first-year wizards and witches is assigned to one of the four Hogwarts houses. The bravest children are put
...
分类:
其他好文 时间:
2014-04-29 13:38:20
阅读次数:
459
在windows下运行VMware创建的虚拟机时出错,无法运行。
错误提示大概为:
Failed to lock the file
Cannot open the disk 'D:\Windows Server 2008 R2 x64.vmdk' or one of the snapshot disks it depends on.
解决方法:
把虚拟机文件夹里【.lck】...
分类:
其他好文 时间:
2014-04-29 13:28:21
阅读次数:
366
ACM 模拟 Candy Sharing Game hdu1034...
分类:
其他好文 时间:
2014-04-29 13:23:20
阅读次数:
271
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
这也是个有趣的问题,也很经典的游戏题目的变形了。
不过这道题扩展了成为无限大的数了。
类似的游戏有:没人可以拿掉桌面上的棋子,每次不能超过5个,最后没棋子可以拿的算输
解决这样的题目只能是寻找规律了,不能真的模拟区玩了,否则必定超时。
这道题目的规律就是:
1 如果给出的stone是3的倍数,那么先取者必输
2 如果给出的不是3的倍数,那么先取者就凑成3的倍数就必赢,因为凑3的倍数很容易,去掉1个或者2个必定可以凑出来了
所以最后问题就成了mod3问题了。
我是怎么想出来的?
我是一个列子一个例子去观察,...
分类:
其他好文 时间:
2014-04-28 10:17:41
阅读次数:
324
为了避免目标端nrpe进程监控多个接口而造成的安全漏洞。有必要固定服务端的地址,对nrpe.cfg配置中,有下列一行介绍
#SERVER ADDRESS
# Address that nrpe should bind to in case there are more than one interface
# and you do not want nrpe to bind on all in...
分类:
其他好文 时间:
2014-04-27 22:36:17
阅读次数:
454