板子题,只是记得负数加fix最方便 #include <cstdio> const int A=19,N=100010; namespace FIFO { char ch,B[1<<20],*S=B,*T=B; #define getc() (S==T&&(T=(S=B)+fread(B,1,1<< ...
分类:
其他好文 时间:
2017-08-05 09:55:56
阅读次数:
199
PDO一是PHP数据对象(PHP Data Object)的缩写。二是丙二醇简称PDO。三是阿曼石油开发公司 (petroleum development of Oman.)的缩写。四是过程数据对象(Process data object)的缩写。五是太平洋十年涛动。 PDO一是PHP数据对象(PH ...
分类:
其他好文 时间:
2017-07-30 13:57:25
阅读次数:
333
题目链接 Problem Description As to a permutation p1,p2,?,pn from 1 to n, it is uncomplicated for each 1≤i≤n to calculate (li,ri) meeting the condition tha ...
分类:
其他好文 时间:
2017-07-30 12:49:37
阅读次数:
240
【POJ 2400】 Supervisor, Supervisee(KM求最小权匹配) Supervisor, Supervisee Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 2538 Accepted: 719 Descr ...
分类:
其他好文 时间:
2017-07-29 13:00:30
阅读次数:
193
整理一波c读写文件的API。 fopen 打开模式有以下几种: In order to open a file as a binary file, a "b"character has to be included in the mode string. fread Reads an array o ...
分类:
其他好文 时间:
2017-07-27 12:39:54
阅读次数:
138
群里大家一起交流:410028331 文件锁的玩法 1、普通两个文件同一时候往一个文件里写入内容效果 index-1.php <?php $file = 'temp.txt'; $fp = fopen($file,'a'); for($i = 0;$i <10;$i++) { fwrite($fp, ...
分类:
其他好文 时间:
2017-07-26 23:39:53
阅读次数:
174
SSH登陆 两三个人进行分工,一个粗略的看下web,有登陆口的话,就需要修改密码,将情况反馈给队友,让登陆ssh的小伙伴进行密码的修改,改成炒鸡复杂、然后将Web目录下载下来,上WAF、文件监控、端口扫描。将这几个工作分工好,顺序就像图上。 tips:将下载下来的Web目录理一遍,看是否有可疑的文件 ...
分类:
其他好文 时间:
2017-07-25 13:28:20
阅读次数:
1958
1.fread与read的区别 open和fopen的区别--fread函数和fwrite函数:http://blog.csdn.net/dreamtdp/article/details/7560654 2.read函数和fread函数的区别:http://blog.csdn.net/qq_3383 ...
分类:
其他好文 时间:
2017-07-21 10:26:58
阅读次数:
131
<?php header('Content-Type: text/html; charset=utf-8'); $file = './php34.txt'; $mode = 'w';//w, a, x // PHP提供了如下一些的打开模式: // R(read)读模式 // W(write)替换写模... ...
分类:
Web程序 时间:
2017-07-18 01:49:55
阅读次数:
155
第十四章结构和其他数据形式 第十四章结构和其他数据形式 关于fread以及fwrite fread(char* buff,int size,int count,FILE* fp) fwrite(char* buff,int size,int count,FILE* fp) 关于fread以及fwri ...
分类:
其他好文 时间:
2017-07-18 00:07:16
阅读次数:
204