玩家移动1.检查位置包auto& mpos = m_spBase->getMapPos(pos.tgtPos);if(!check_move_pos(pos, pl)) return;2.跟新当前位置及方向,更新客户端发过来的位置pl->last_move_mode = EnumMoveMod...
分类:
移动开发 时间:
2014-08-31 18:35:11
阅读次数:
299
今天导入了一个主机模板,然后应用到device上,却没有出图,于是查看其rrdtoolgraph语句,看是否有问题,果然,这里有一个错误。AREA:cdefe#B90054FF:‘Outbound‘GPRINT:cdeff:LAST:‘Last\:%8.2lf%s‘GPRINT:cdeff:AVERAGE:‘Avg\:%8.2lf%s‘GPRINT:cdeff:MAX:‘Max\:%8.2lf%s..
分类:
其他好文 时间:
2014-08-31 10:35:11
阅读次数:
953
今天在某个群中看到有人问在流式的数据中如何动态的维护中位数的方法,因为之前看到同学的一个问题,当时他没答出来。但是后来了解到类似top(k),last(k)需要用到最大堆,最小堆一样,中位数需要利用双堆维护一下。 先复习一下,如果是静态的数据求取中位数的方法有哪些呢? (1)排序 ...
分类:
其他好文 时间:
2014-08-30 13:53:09
阅读次数:
217
Nightmare
Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d
& %I64u
Description
Ignatius had a nightmare last night. He found himself in a labyrinth with a time bomb on...
分类:
Web程序 时间:
2014-08-30 08:48:19
阅读次数:
264
LAST_INSERT_ID自动返回最后一个 INSERT 或 UPDATE 操作为 AUTO_INCREMENT列设置的第一个发生的值. 参考这里The ID that was generated is maintained in the server on aper-connection bas...
分类:
数据库 时间:
2014-08-29 19:50:38
阅读次数:
198
/*
中文题目 最后的练习
中文翻译-大意 举例说明60%2==0;60/2==30;30%2==0;30/2==15;15%2!=0;15%3==0;15/3==5;5%3!=0;5%5==0;根据例子可以看出60的质子含有2^2, 3^1, 5^1,按样例输出2【】2【】3【】1【】5【】1【】。
解题思路:先打一个素数表,在直接求解就可以了
难点详解:输出格式坑人啊
关键点:输出格...
分类:
其他好文 时间:
2014-08-29 11:09:07
阅读次数:
212
1 /* 2 fill 3 将[first, last) 内所有元素该填新值 4 */ 5 template 6 void fill (ForwardIterator first, ForwardIterator last, const T& value) { 7 fo...
分类:
其他好文 时间:
2014-08-28 21:04:06
阅读次数:
206
http://ruby-doc.org/core-2.1.2/File.html#method-c-dirname(1)basename(file_name [, suffix] ) → base_nameReturns the last component of the filename give...
分类:
其他好文 时间:
2014-08-28 17:58:25
阅读次数:
202
OllyDbg 使用笔记 (十一)
参考
书:《加密与解密》
视频:小甲鱼 解密系列 视频
此程序可以从注册时未输入last name 产生的 提示信息入手。
查找所有参考文本字串,搜索“Enter a Last”,可以看到:
观察前后的字符串,可以发现这堆字符串的最底下,ASCII "Registration Key accepted!" 与ASCII "Registration Key Failed!" 很关键
点击ASCII "Registratio...
分类:
数据库 时间:
2014-08-28 14:51:49
阅读次数:
321
Where is the canteen
Problem Description
After a long drastic struggle with himself, LL decide to go for some snack at last. But when steping out of the dormitory, he found a serious problem...
分类:
其他好文 时间:
2014-08-28 13:23:19
阅读次数:
431