05 2017 档案

摘要:传送门 Description Pavel loves grid mazes. A grid maze is an n × m rectangle maze where each cell is either empty, or is a wall. You can go from one cell 阅读全文
posted @ 2017-05-28 20:22 zxzhang 阅读(347) 评论(0) 推荐(0) 编辑
摘要:autumn#include<bits/stdc++.h> using namespace std; const int maxn = 200005; int p[maxn],a[maxn],b[maxn]; bool vis[maxn]; set<pair<int,int> >s[5]; int 阅读全文
posted @ 2017-05-28 16:15 zxzhang 阅读(705) 评论(0) 推荐(1) 编辑
摘要:PHP REQUESTPHP_REQUEST 用于收集 HTML 表单提交的数据。 下面的例子展示了一个包含输入字段及提交按钮的表单。当用户通过点击提交按钮来提交表单数据时, 表单数据将发送到 <form> 标签的 action 属性中指定的脚本文件。在这个例子中,我们指定文件本身来处理表 阅读全文
posted @ 2017-05-27 23:02 zxzhang 阅读(434) 评论(0) 推荐(0) 编辑
摘要:HTML页面,注意:不要使用form标签 1<input type = "text" name="keyword" id="keyword" onkeydown="entersearch()"/> 2<input type = "text" name="keyword" id="keyword" o 阅读全文
posted @ 2017-05-27 21:29 zxzhang 阅读(1468) 评论(0) 推荐(0) 编辑
摘要:传送门 Description A new pack of n t-shirts came to a shop. Each of the t-shirts is characterized by three integers pi, ai and bi, where pi is the price 阅读全文
posted @ 2017-05-27 15:44 zxzhang 阅读(345) 评论(0) 推荐(0) 编辑
摘要:传送门 Description Let's define a forest as a non-directed acyclic graph (also without loops and parallel edges). One day Misha played with the forest co 阅读全文
posted @ 2017-05-27 01:39 zxzhang 阅读(257) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2017-05-20 20:21 zxzhang 阅读(2) 评论(0) 推荐(0) 编辑
摘要:最大传送单元(Maximum Transfer Unit,MTU)——链路层协议规定帧的数据部分长度的上限 协议数据单元(Protocol Data Unit,PDU) 帧检验序列(Frame Check Sequence,FCS) 循环冗余检验(Cycle Redundancy Check,CRC 阅读全文
posted @ 2017-05-18 18:09 zxzhang 阅读(615) 评论(0) 推荐(0) 编辑
摘要:数据链路层的协议数据单元——帧 封装成帧 帧定界 插入时间间隔 添加特殊的帧定界标志 字节填充(插入转义字符) 比特填充(零比特填充法) 差错检测 差错检测码(EDC)/帧检验序列(FCS) 循环冗余检验(CRC/多项式编码) 可靠传输 1.停止等待协议 ACK/NCK 超时启动器 编号 通过确认和 阅读全文
posted @ 2017-05-18 17:01 zxzhang 阅读(572) 评论(0) 推荐(0) 编辑
摘要:1. overflow 定义溢出元素内容区的内容会如何处理 visible 默认值。内容不会被修剪,会呈现在元素框之外。 hidden 内容会被修剪,并且其余内容是不可见的。 scroll 内容会被修剪,但是浏览器会显示滚动条以便查看其余的内容。 auto 如果内容被修剪,则浏览器会显示滚动条以便查看其余的内容。 inherit 规定应该从父元素继承 overflow 属性的值。 2. &co... 阅读全文
posted @ 2017-05-13 09:36 zxzhang 阅读(254) 评论(3) 推荐(0) 编辑
摘要:传送门 Description 小Hi和小Ho是一对好朋友,出生在信息化社会的他们对编程产生了莫大的兴趣,他们约定好互相帮助,在编程的学习道路上一同前进。 这一天,他们遇到了一只河蟹,于是河蟹就向小Hi和小Ho提出了那个经典的问题:“小Hi和小Ho,你们能不能够判断一段文字(原串)里面是不是存在那么 阅读全文
posted @ 2017-05-12 18:07 zxzhang 阅读(412) 评论(0) 推荐(0) 编辑
摘要:mysqli_fetch_object() //取得当前行,并作为对象返回 mysqli_fetch_row() //从结果集中取得一行,并作为枚举数组返回 mysqli_fetch_array() //从结果集中取得一行作为关联数组,或数字数组,或二者兼有 mysqli_fetch_assoc() //从结果集中取得一行作为关联数组 mysqli_autocommit() //开启或关闭自动提... 阅读全文
posted @ 2017-05-12 00:14 zxzhang 阅读(178) 评论(0) 推荐(0) 编辑
摘要:传送门 Description 小Hi和小Ho是一对好朋友,出生在信息化社会的他们对编程产生了莫大的兴趣,他们约定好互相帮助,在编程的学习道路上一同前进。 这一天,他们遇到了一本词典,于是小Hi就向小Ho提出了那个经典的问题:“小Ho,你能不能对于每一个我给出的字符串,都在这个词典里面找到以这个字符 阅读全文
posted @ 2017-05-10 19:50 zxzhang 阅读(223) 评论(0) 推荐(0) 编辑
摘要:传送门 Description You are given an array consisting of n non-negative integers a1, a2, ..., an. You are going to destroy integers in the array one by on 阅读全文
posted @ 2017-05-08 23:42 zxzhang 阅读(212) 评论(0) 推荐(0) 编辑
摘要:进程相关函数 pid_t fork(); 头文件:unistd.h,sys/types.h 作用:建立一个新进程(子进程),子进程与原进程(父进程)共享代码段,并拥有父进程的其他资源(数据、堆栈等)的一个副本。(由于继承了父进程的所有状态,子进程将从fork处往下运行)。(说明:子进程继承父进程的所 阅读全文
posted @ 2017-05-08 21:44 zxzhang 阅读(514) 评论(0) 推荐(0) 编辑
摘要:传送门 Description 小Hi和小Ho是一对好朋友,出生在信息化社会的他们对编程产生了莫大的兴趣,他们约定好互相帮助,在编程的学习道路上一同前进。 这一天,他们遇到了一连串的字符串,于是小Hi就向小Ho提出了那个经典的问题:“小Ho,你能不能分别在这些字符串中找到它们每一个的最长回文子串呢? 阅读全文
posted @ 2017-05-08 19:22 zxzhang 阅读(228) 评论(0) 推荐(0) 编辑
摘要:以下内容转载自:传送门 源于这两篇文章: http://blog.csdn.net/ggggiqnypgjg/article/details/6645824http://zhuhongcheng.wordpress.com/2009/08/02/a-simple-linear-time-algori 阅读全文
posted @ 2017-05-08 18:32 zxzhang 阅读(412) 评论(0) 推荐(0) 编辑
摘要:传送门 Description A few years ago Sajjad left his school and register to another one due to security reasons. Now he wishes to find Amir, one of his sch 阅读全文
posted @ 2017-05-05 12:55 zxzhang 阅读(297) 评论(0) 推荐(0) 编辑
摘要:传送门 Description We have a string of letters 'a' and 'b'. We want to perform some operations on it. On each step we choose one of substrings "ab" in th 阅读全文
posted @ 2017-05-05 12:49 zxzhang 阅读(521) 评论(0) 推荐(0) 编辑
摘要:传送门 Description On Children's Day, the child got a toy from Delayyy as a present. However, the child is so naughty that he can't wait to destroy the t 阅读全文
posted @ 2017-05-04 01:14 zxzhang 阅读(344) 评论(0) 推荐(0) 编辑
摘要:蔡勒公式是一种计算任何一日属一星期中哪一日的算法,由蔡勒(Julius Christian Johannes Zeller)推算出。 公式 公式都是基于公历的置闰规则来考虑。 公式中的符号含义如下: w:星期(计算所得的数值对应的星期:0-星期日;1-星期一;2-星期二;3-星期三;4-星期四;5- 阅读全文
posted @ 2017-05-03 18:42 zxzhang 阅读(1324) 评论(1) 推荐(0) 编辑
摘要:vector创建二维数组 初始化二维数组 vector > ivec(n ,vector(m)); //n*m的二维vector vector > ivec(n , vector(m, 0)); //n*m的二维vector,所有元素为0 动态创建m*n的二维 方法一: vector > ivec; ivec.resize(n); for(int i = 0; i > ivec;... 阅读全文
posted @ 2017-05-03 18:31 zxzhang 阅读(785) 评论(0) 推荐(0) 编辑
摘要:传送门 Description During the lesson small girl Alyona works with one famous spreadsheet computer program and learns how to edit tables. Now she has a ta 阅读全文
posted @ 2017-05-03 18:19 zxzhang 阅读(402) 评论(0) 推荐(0) 编辑
摘要:传送门 Description After the fourth season Sherlock and Moriary have realized the whole foolishness of the battle between them and decided to continue th 阅读全文
posted @ 2017-05-03 17:11 zxzhang 阅读(261) 评论(0) 推荐(0) 编辑
摘要:传送门 Description Misha hacked the Codeforces site. Then he decided to let all the users change their handles. A user can now change his handle any numb 阅读全文
posted @ 2017-05-03 01:14 zxzhang 阅读(306) 评论(0) 推荐(0) 编辑
摘要:函数名: sleep头文件: #include<windows.h> // 在VC中使用带上头文件 #include<unistd.h> // 在gcc编译器中,使用的头文件因gcc版本的不同而不同功 能: 执行挂起指定的秒数语 法: unsigned sleep(unsigned seconds) 阅读全文
posted @ 2017-05-01 20:32 zxzhang 阅读(2275) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示