题目大意:有一段链子。初始的时候是铜的(价值为1),n代表有n段(1~n),输入a, b, c三个数分别表示将从a到b的链子的价值改为c, 最后问你经过多次改变之后的总价值。 策略:这道题是简单的线段树的区间更新。 代码: #include<stdio.h> #include<string.h> # ...
分类:
其他好文 时间:
2017-08-13 15:22:13
阅读次数:
147
关于这篇文章的题目。思索良久,事实上一些技术术语一直是我的软肋。高大上标题。别人会觉得你言过事实上。低调隐晦的标题,又根本提不起别人打开这篇博文的兴趣。许久之后。就下定决心,那么就起一个朴实无华的名字算了,所以就想到了“进程保护”。但细致想想,事实上这也是一个很大的技术专题,包含众多的技术细节。所以 ...
分类:
系统相关 时间:
2017-08-12 21:20:54
阅读次数:
197
转载自:https://myhloli.com/u3dgames-hook-superdsm.html 另外,在博客园搜外挂关键字,能找到不少干货: http://www.cnblogs.com/GameDeveloper/archive/2011/03/11/1981663.html ...
分类:
编程语言 时间:
2017-08-11 12:18:47
阅读次数:
154
Just a Hook In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up of several consecut ...
分类:
其他好文 时间:
2017-08-10 14:16:25
阅读次数:
244
原理是: 在gitlab中项目设置,hook->提交触发指定地址,服务器收到请求,通过验证后,在项目中执行git pull更新服务器中代码 注意事项: 1.gitlab中要设置ssh key,项目中也要设置一模一样的key,才能git clone 已生成的,就查看 ~/.ssh/id_rsa.pub ...
分类:
其他好文 时间:
2017-08-08 10:50:45
阅读次数:
245
原文地址:http://www.infoq.com/cn/articles/devops-landing-in-changba?utm_campaign=rightbar_v2&utm_source=infoq&utm_medium=articles_link&utm_content=link_te ...
分类:
其他好文 时间:
2017-08-07 16:49:13
阅读次数:
159
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=1698 题目描述: 区间更新, 最后求出1 ~ n 之和 解题思路: 这里涉及到区间更新, 这也是我第一次写区间更新, 以前都是单点更新, 回溯就可以了, 如果将区间更新化成区间长度的单点更新, 复杂度 ...
分类:
其他好文 时间:
2017-08-07 13:32:28
阅读次数:
151
It is possible to hook ServiceLayer code into the hybris initialization and update life-cycle events, thus providing means for creating essential and ...
分类:
其他好文 时间:
2017-08-06 14:58:16
阅读次数:
248
在说明finalize()的用法之前要树立有关于java垃圾回收器几个观点: "对象可以不被垃圾回收" : java的垃圾回收遵循一个特点, 就是能不回收就不会回收.只要程序的内存没有达到即将用完的地步, 对象占用的空间就不会被释放.因为如果程序正常结束了,而且垃圾回收器没有释放申请的内存, 那么随 ...
分类:
编程语言 时间:
2017-08-05 17:46:25
阅读次数:
216
Most of the time, your components respond to events that occur within the component tree by defining their own handler or by accepting a handler defin ...
分类:
其他好文 时间:
2017-08-04 21:33:02
阅读次数:
145