Vim中区分real lines和display lines,以及快速跳转的快捷键。...
分类:
系统相关 时间:
2015-04-22 00:39:37
阅读次数:
203
Given n non-negative integers a1, a2,
..., an, where each represents a point at coordinate (i, ai). n vertical
lines are drawn such that the two endpoints of line i is at (i, ai) and (i,
0). Fin...
分类:
其他好文 时间:
2015-04-21 22:41:35
阅读次数:
156
很多黑客会攻击和利用.htaccess做网站跳转,所以保护好.htaccess文件尤为重要。在apache的httpd.conf的配置文件中 默认是已经设置了禁止对.htaccess的访问,截取相关配置文件如下:# The following lines prevent .htaccess and ...
分类:
数据库 时间:
2015-04-21 17:22:18
阅读次数:
173
Problem DescriptionYour task is to calculate the sum of some integers. InputInput contains an integer N in the first line, and then N lines follow. Ea...
分类:
其他好文 时间:
2015-04-20 20:46:06
阅读次数:
133
#!/usr/bin/envpython
#coding=utf-8
importstring
alist=[]
lease_IP=‘‘
lease_start=‘‘
lease_end=‘‘
istatus=‘‘
MAC=‘‘
f=open(‘/var/lib/dhcpd/dhcpd.leases‘)
lines=f.readlines()
f.close()
forlineinlines:
ifline.find(‘lease‘)<>-1:
lease_IP=line.split(‘\n‘)[..
分类:
其他好文 时间:
2015-04-20 18:49:48
阅读次数:
161
Problem DescriptionYour task is to Calculate a + b.InputInput contains an integer N in the first line, and then N lines follow. Each line consists of ...
分类:
其他好文 时间:
2015-04-20 16:42:30
阅读次数:
101
题目:给你平面上的两条直线,判断两直线关系,如果相交求交点。
分析:计算几何。利用斜率判断平行,然后利用叉乘判断共线,最后qiuji...
分类:
其他好文 时间:
2015-04-20 13:12:39
阅读次数:
248
对于二分出的答案x而言,验证答案等价于将所有边权>x的边赋成1,否则赋成0,然后判断从1到n的最短路是否#include#includeusing namespace std;#define N 1001#define M 10001int n,m,K,Xs[M],Ys[M],Zs[M];int f...
分类:
其他好文 时间:
2015-04-20 12:37:29
阅读次数:
108
grep 搜索文本文件中与指定正则表达式匹配的行命令格式grep [OPTIONS] PATTERN [FILE...]命令参数Generic Program Information--help 打印帮助信息-V, --version 打印版本信息Matcher Selection-E, --e.....
分类:
系统相关 时间:
2015-04-18 21:59:35
阅读次数:
204