码迷,mamicode.com
首页 >  
搜索关键字:lines    ( 2570个结果
[Practical.Vim(2012.9)].Drew.Neil.Tip47 学习摘要
Vim中区分real lines和display lines,以及快速跳转的快捷键。...
分类:系统相关   时间:2015-04-22 00:39:37    阅读次数:203
[LeetCode]Container With Most Water
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做网站跳转,所以保护好.htaccess文件尤为重要。在apache的httpd.conf的配置文件中 默认是已经设置了禁止对.htaccess的访问,截取相关配置文件如下:# The following lines prevent .htaccess and ...
分类:数据库   时间:2015-04-21 17:22:18    阅读次数:173
杭电1093(不会做)
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
统计dhcpd.lease IP 地址
#!/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
杭电1090(今天的汗水会是你明天的成长)
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
UVa 378 - Intersecting Lines
题目:给你平面上的两条直线,判断两直线关系,如果相交求交点。 分析:计算几何。利用斜率判断平行,然后利用叉乘判断共线,最后qiuji...
分类:其他好文   时间:2015-04-20 13:12:39    阅读次数:248
【二分答案】【最短路】bzoj1614 [Usaco2007 Jan]Telephone Lines架设电话线
对于二分出的答案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
ZOJ 3492 Kagome Kagome
my English is poor...
分类:其他好文   时间:2015-04-19 10:16:45    阅读次数:142
Linux 命令 - grep: print lines matching a pattern
grep 搜索文本文件中与指定正则表达式匹配的行命令格式grep [OPTIONS] PATTERN [FILE...]命令参数Generic Program Information--help 打印帮助信息-V, --version 打印版本信息Matcher Selection-E, --e.....
分类:系统相关   时间:2015-04-18 21:59:35    阅读次数:204
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!