码迷,mamicode.com
首页 >  
搜索关键字:shell time expr wait    ( 86807个结果)
矩形类定义
矩形类定义【C++】Time Limit: 1 Sec  Memory Limit: 128 MB Submit: 472  Solved: 301 [Submit][Status][Web Board] Description 定义一个矩形类,数据成员包括左下角和右上角坐标,定义的成员函数包括必要的构造函数、输入坐标的函数,以及计算并输出矩形面积的函数。要求使用提示中给出的测试...
分类:其他好文   时间:2014-06-25 20:06:21    阅读次数:213
Socket connect error 99(Cannot assign requested address)
转载请注明转自: 存储系统研究, 本文固定链接: socket connect error 99(Cannot assign request address) 这是最近使用libcurl写http服务的压力测试的时候遇到的一个问题,其直接表象是客户端在发送http请求时失败,最终原因是客户端的TIME_WAIT状态的socket进程过多,导致端口被占满。下面看整个分析过程: (1) 首先看...
分类:其他好文   时间:2014-06-25 19:55:59    阅读次数:1011
bash参考手册之五(shell变量)续三
LINENO  当前在执行的脚本或者shell函数的行号。 LINES 命令select用来确定打印选择列表的列宽。收到SIGWINCH后,自动设置。 MACHTYPE 是一个字符串,描述了正在运行Bash的系统的类型,描述的格式符合GNU cpu-company-system 标准。 ...
分类:其他好文   时间:2014-06-25 19:24:15    阅读次数:220
LeetCode: Best Time to Buy and Sell Stock III [123]
【题目】 Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete at most two transactions. Note: You may not engage in multiple transactions at the same time (i...
分类:其他好文   时间:2014-06-24 23:28:43    阅读次数:223
POJ 1509 Glass Beads
后缀自动机的简单运用.... Glass Beads Time Limit: 3000MS   Memory Limit: 10000K Total Submissions: 2352   Accepted: 1375 Description Once upon a time there was a fa...
分类:其他好文   时间:2014-06-24 23:02:14    阅读次数:199
SPOJ 1811LCS Longest Common Substring
后缀自动机裸题.... Longest Common Substring Time Limit: 2000MS   Memory Limit: Unknown   64bit IO Format: %lld & %llu [Submit]   [Go Back]   [Status]   Description A st...
分类:其他好文   时间:2014-06-24 22:15:40    阅读次数:240
Linux下shell编程实例
1. 判断一文件是不是块或字符设备文件,如果是将其拷贝到 /dev 目录下 read -p "input a file:" filename if [ -b $filename -o -c $filename ] then cp $filename /dev/ fi 2.编写一个脚本,进行简单的减法运算,要求提示输入变量 #!/bin/bash read -...
分类:系统相关   时间:2014-06-24 20:59:09    阅读次数:434
shell从函数文件中调用函数
碰到一个shell中函数调用的小问题,记录一下。 shell中函数有三种调用方式,一种是在文件前面定义函数,然后在下面直接调用;一种是通过载入shell,在shell中直接调用;第三种是将函数写入文件,然后在其他shell中调用函数。 这里写一下关于第三种方法的例子: is_it_a_directory() { if [ $# -lt 1 ];then echo "is_it_a_dir...
分类:其他好文   时间:2014-06-24 20:17:56    阅读次数:195
LeetCode: Best Time to Buy and Sell Stock II [122]
【题目】 Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie, buy one and sell one share of the stock multiple times). H...
分类:其他好文   时间:2014-06-24 19:40:53    阅读次数:240
bzoj 1799: [Ahoi2009]self 同类分布 题解
【原题】 1799: [Ahoi2009]self 同类分布 Time Limit: 50 Sec  Memory Limit: 64 MB Submit: 554  Solved: 194 [Submit][Status] Description 给出a,b,求出[a,b]中各位数字之和能整除原数的数的个数。 Input Output Sample ...
分类:其他好文   时间:2014-06-24 18:38:02    阅读次数:295
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!