http://acm.hdu.edu.cn/showproblem.php?pid=4585从原来的人中找出战斗数值最接近的,输出他们两人的序号要在logn的复杂度完成查找,我用的是set,当然用map也可以,两个内部都是红黑树实现水题一道#include #include #include #in...
分类:
其他好文 时间:
2014-07-16 19:21:25
阅读次数:
179
UCHAR recordlenthrecordlenth与整形int比较时不用atoi转换recordlenth。若转换出错3.lseek函数所需头文件:#include #include/*定义了off_t,pid_t等类型*/函数原型:off_tlseek(intfd,,off_toff...
分类:
其他好文 时间:
2014-07-16 19:02:58
阅读次数:
282
IssueAll media managers services failed to start after rebuilding sg driversErrorError nbjm (pid=27800) NBU status: 2009, EMM status: All compatible d...
分类:
其他好文 时间:
2014-07-16 18:59:05
阅读次数:
284
前台jquery+ajax请求往页面上添加树形的js代码 1 //传入当前点击节点的id,在后台代码查询出parentid=当前节点id的记录数,从而实现点击当前节点,往后台发送ajax请求,查询出子节点的集合,往父节点下拼接页面 2 function treeNode(pid){ 3 4...
分类:
Web程序 时间:
2014-07-16 18:39:32
阅读次数:
217
http://acm.fzu.edu.cn/problem.php?pid=2171Problem 2171 防守阵地 IIAccept: 105Submit: 415Time Limit: 3000 mSecMemory Limit : 32768 KBProblem Description部队中...
分类:
其他好文 时间:
2014-07-16 15:25:12
阅读次数:
212
nohup java -classpath ../ classifyMblog.Bayes > output.txt 2>&1 &表示在后台运行程序,输出打印在output.txt上。top查看当前的后台程序,可以照到自己程序对应的PIDkill -9 PID关闭程序
分类:
其他好文 时间:
2014-07-16 15:09:00
阅读次数:
233
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2023题目大意:求每个学生的平均成绩和每门课的平均成绩,并输出各科成绩均大于等于平均成绩的学生数量。注意格式:每个测试实例后面跟一个空行。 1 #include 2 #include 3 int ma.....
分类:
其他好文 时间:
2014-07-15 00:44:23
阅读次数:
311
题意:http://acdream.info/problem?pid=1112Problem DescriptionHere is Alice and Bob again !Alice and Bob are playing a game. There are several numbers.Fir...
分类:
其他好文 时间:
2014-07-14 23:51:56
阅读次数:
425
开始--运行--cmd 进入命令提示符 输入netstat -ano 即可看到所有连接的PID 之后在任务管理器中找到这个PID所对应的程序如果任务管理器中没有PID这一项,可以在任务管理器中选"查看"-"选择列" 经常,我们在启动应用的时候发现系统需要的端口被别的程序占用,如何知道谁占有了我们需....
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2022题目大意:找出绝对值最大的数,并输出行和列~ 1 #include 2 #include 3 int main(void) 4 { 5 int m,n,i,j; 6 int x,y,...
分类:
其他好文 时间:
2014-07-14 14:55:05
阅读次数:
213