Codeforces Round #266 (Div. 2) A...
分类:
其他好文 时间:
2014-09-13 09:25:44
阅读次数:
197
1 /* 2 树状数组第三种模板(改段求段)不解释! 不明白的点这里:here! 3 */ 4 #include 5 #include 6 #include 7 #include 8 #define N 100005 9 using namespace std;10 11 t...
分类:
其他好文 时间:
2014-09-12 20:41:44
阅读次数:
299
题意:给一个序列,操作1:给区间[a,b]中(i-a)%k==0的位置 i 的值都加上val 操作2:查询 i 位置的值解法:树状数组记录更新值。 由 (i-a)%k == 0 得知 i%k == a%k,又因为k #include #include #include #include #inclu...
分类:
其他好文 时间:
2014-09-12 18:58:03
阅读次数:
142
Join the ServiceStack Google+ group?or follow?@servicestack?for updates. A Fast, Simple, Typed ORM for .NET OrmLite‘s goal is to provide a convenient, DRY, config-free, RDBMS-agnostic typed wra...
分类:
Web程序 时间:
2014-09-12 17:28:04
阅读次数:
422
我们一般在开发时,都会分成多个Screen去实现不同的功能,比如:MenuScreen用于菜单界面显示,GameScreen主游戏界面,HelpScreen游戏帮助界面。直接使用game.setScreen就可以完成场景的切换。不过这样略显生硬,另外,在内存占用方面有可能出现瞬时内存占用太大的问题,...
分类:
其他好文 时间:
2014-09-12 16:59:53
阅读次数:
544
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 maximu...
分类:
其他好文 时间:
2014-09-12 13:26:43
阅读次数:
145
DEMO位置: samples\simpleConsole\Lib-bpl 【步骤】: 1. 首先新建一个BPL工程。 2. 添加一个窗体,实现IPluginForm接口(simpleConsole.exe只能显示IPluginForm插件) 3.在窗体单元的部分注册插件 4.copy到simple...
分类:
其他好文 时间:
2014-09-12 13:22:53
阅读次数:
243
最近对游戏引擎架构比较感兴趣,于是研究了下这方面的书籍。
比较推荐的两本书是:
1. Game Engine Architecture.
2. Game Code Complete.
他们全面说明了一个游戏引擎的组成部分,和每个部分所实现的基本代码。
当然我这里就我所认识的游戏引擎的组成部分跟大家说下,最后我会附加一副PDF图片,看到他你会吃惊说:噢,原理这就是游戏引擎的架构,她太漂亮...
分类:
其他好文 时间:
2014-09-11 23:52:02
阅读次数:
299
找规律....
Abs Problem
Time Limit: 2 Seconds Memory Limit: 65536 KB Special Judge
Alice and Bob is playing a game, and this time the game is all about the absolute value!
Alice ...
分类:
其他好文 时间:
2014-09-11 22:28:12
阅读次数:
233
说说:
这道题的题意就是求例如:a+b--+c++ 的值,其中a=1,b=2...依次类推。最后要求输出整个表达式的值和每个在表达式中出现过的变量最后的值。思路其实比较简单,先将整个表达式读取,然后遍历,遇到遍历时停下,并判断其是否有前缀++或--,并且找到该变量的运算符(如果有的话),接下来判断是否有后缀--或++,当然其间的空格是要忽略的。至于那些遍历是用一个大小为26的数组保存,没有出现过...
分类:
其他好文 时间:
2014-09-11 19:24:32
阅读次数:
139