zoj 3622、Magic Number
水题
先找规律生成区间[1,1内的所有Magic Number,计算出来只有40多个,然后就随便YY了。
void init()
{
int a[5] = {
1,2,5,25,125
};
ll Max = (1ll<<32)-1;
for(ll tmp =1; tmp<=Max; tmp *=10)
{
for(int...
分类:
其他好文 时间:
2014-09-03 13:12:36
阅读次数:
223
以定义参数 cus_param 为例,int型变量。
1. Preloader部分
Platform.h(mediatek\platform\[$platform]\preloader\src\drivers\inc\platform.h)
在如下结构体中加cus_param变量,如果是char型,请注意4byte对其:
typedef struct {
u32 magic...
分类:
移动开发 时间:
2014-09-03 13:06:36
阅读次数:
324
1,yum -y install python-pip;pip(Python packet index);2,pip install/update softlayer;3,sl --help;
分类:
其他好文 时间:
2014-09-03 13:02:56
阅读次数:
193
libpcap详解2010-12-01 22:07libpcap(Packet Capture Library),即数据包捕获函数库,是Unix/Linux平台下的网络数据包捕获函数库。它是一个独立于系统的用户层包捕获的API接口,为底层网络监测提供了一个可移植的框架。一、libpcap工作原理li...
分类:
其他好文 时间:
2014-09-02 21:19:25
阅读次数:
229
TCP连接的状态图
TCP建立连接的三次握手过程,以及关闭连接的四次握手过程
贴一个telnet建立连接,断开连接的使用wireshark捕获的packet截图。
1、建立连接协议(三次握手)
(1)客户 端发送一个带SYN标志的TCP报文到服务器。这是三次握手过程中的报文1。
(2) 服务器端回应客户端的,这是三次握手中的第2个报文,这个报文同时带ACK标志和S...
分类:
其他好文 时间:
2014-09-01 22:45:43
阅读次数:
303
(注:最左边是文件头的偏移量。) IMAGE_DOS_HEADER STRUCT { +0h WORD e_magic // Magic DOS signature MZ(4Dh 5Ah) DOS可执行文件标记 +2h WORD e_cblp // Bytes on la...
分类:
其他好文 时间:
2014-09-01 20:58:23
阅读次数:
603
总结如下:
1) 前带一个"_"的变量: 私有变量. 前面带有一个"_"的变量, 但是并没有真正的封装隐藏, 外部还是可以访问
2) 后面带有一个"_"的变量, 为了避免和Python中已有的关键字冲突
3) 前后各有两个"_"的变量, 代表Python中的Magic Word
_single_leading_underscore: 私有变量.
sin...
分类:
编程语言 时间:
2014-09-01 19:38:23
阅读次数:
195
Mysql主从复制的配置一、 my.ini配置文件的修改:1、 在主服务器上修改:[mysqld]#datadir=F:/Application/Mysql5.6/dataport=5616event_scheduler=ONmax_allowed_packet = 16Mskip-name-res...
分类:
数据库 时间:
2014-09-01 12:05:23
阅读次数:
316
Little Pony and Permutation
Problem Description
As a unicorn, the ability of using magic is the distinguishing feature among other kind of pony. Being familiar with composition and dec...
分类:
其他好文 时间:
2014-09-01 10:50:33
阅读次数:
208