ps -eLo
pid,tid,class,rtprio,ni,pri,psr,pcpu,pmem,stat,wchan:30,comm线程相关选项:THREAD
DISPLAYH Show threads as if they were processes-L Show threads, poss...
分类:
编程语言 时间:
2014-05-26 07:33:08
阅读次数:
668
Nginx突然无法运行,提示绑定0.0.0.0:80失败。1.使用 netstat
-ano命令查看端口情况,得知是pid 4的进程占用80端口,但这是system进程无法结束。2.接下来,使用net stop http与Sc config
http start= disabled禁用http服务,...
http://acm.hdu.edu.cn/showproblem.php?pid=1115思路:转换为求三角形的重心。从第一个顶点出发,分别链接i,i+1形成三角形,分别求出每个三角形的面积,总面积之和为各部分之和。根据物理公式n个点的质量是mi,则重心是:X=(x1*m1+x2*m2+...xn...
分类:
其他好文 时间:
2014-05-26 04:04:18
阅读次数:
232
~/product/([0-9]*)\.html
~/product.aspx?pid=$1
~/product/([0-9]*)-([0-9]*)\.html
~/product.aspx?sid=$1&pid=$2
~/product/([0-9]...
分类:
其他好文 时间:
2014-05-26 03:23:09
阅读次数:
215
http://acm.hdu.edu.cn/showproblem.php?pid=1071#include#includeint
main(){ //freopen("in.txt","r",stdin); int t; scanf("%d",&t); while(t--)...
分类:
其他好文 时间:
2014-05-26 02:14:56
阅读次数:
222
http://acm.hdu.edu.cn/showproblem.php?pid=1086跨立实验算法#include#include#include#includeusing
namespace std;struct Point{ double x,y;} ;struct Line{ ...
分类:
其他好文 时间:
2014-05-26 02:10:52
阅读次数:
224
http://acdream.info/problem?pid=1093女神的正多面体Time
Limit:2000/1000 MS (Java/Others)Memory Limit:128000/64000 KB
(Java/Others)SubmitStatisticNext ProblemP...
分类:
其他好文 时间:
2014-05-25 12:27:58
阅读次数:
174
题目来源:http://acm.hdu.edu.cn/showproblem.php?pid=4465题意:输入m,p;从两个盒子里各有n颗糖,每天取一颗,发现其中一个盒子空,求另外一个盒子糖果数的期望。p,1-p为取糖概率;分析:
给盒子编号 A,B ,设另外一个盒子(为B) 剩 n - k 个 ...
分类:
其他好文 时间:
2014-05-24 12:48:56
阅读次数:
206
TOPNAME 显示linux任务语法 top -hv | -abcHimMsS -d
delay -n iterations -p pid [, pid
...]描述top程序提供了系统实时信息,显示系统的总体信息和一组由内核管理的任务,系统总体信息的类型,和任务列表上类型,顺序和大小信息,都可以...
分类:
系统相关 时间:
2014-05-24 11:25:38
阅读次数:
327
题目来源:http://acm.bnu.edu.cn/bnuoj/problem_show.php?pid=34986题意:一个人在玩桌面足球,有m行球员,每行球员有ai个,给出每个球员的宽度和相邻球员之间的距离,球从最左边射出,给出球的起点坐标跟方向向量,问能够到达最右边的概率。思路:球员的相对位...
分类:
其他好文 时间:
2014-05-24 08:06:56
阅读次数:
303