为当前用户创建cron服务 1. 键入 crontab -e 编辑crontab服务文件 例如 文件内容如下: */2 * * * * /bin/sh /home/admin/jiaoben/buy/deleteFile.sh 保存文件并并退出 */2 * * * * /bin/sh /home/a ...
分类:
系统相关 时间:
2018-05-17 00:53:52
阅读次数:
206
题目链接: https://cn.vjudge.net/problem/POJ-2828 题目大意: 插队的问题,每个案例给出n,代表有n个插队的,每个给出p,v,意思是代号为v的人插在了第p个人的后面,问最后的队伍的排列? 解题思路: 如果从前往后递推,每次插入在前面的话,后面的人都需要往后移动, ...
分类:
其他好文 时间:
2018-05-12 02:42:12
阅读次数:
166
题目来源:http://acm.hdu.edu.cn/showproblem.php?pid=1260 (http://www.fjutacm.com/Problem.jsp?pid=1382) 题意:给你应付第i个买票人的时间a[i],以及同时应付相邻两个买票人(i和i-1【i>1】)的时间b[i ...
分类:
其他好文 时间:
2018-05-10 14:28:58
阅读次数:
244
Problem Description There are a lot of trees in an area. A peasant wants to buy a rope to surround all these trees. So at first he must know the minim ...
分类:
其他好文 时间:
2018-05-03 01:05:21
阅读次数:
198
do not be fooled by those language schools whose only objective is luring you to follow their accounts and eventually buy their couses/..... just simp ...
分类:
其他好文 时间:
2018-05-01 17:42:08
阅读次数:
147
Description Railway tickets were difficult to buy around the Lunar New Year in China, so we must get up early and join a long queue… The Lunar New Yea ...
分类:
编程语言 时间:
2018-04-28 22:23:34
阅读次数:
164
题目:http://poj.org/problem?id=2828 给出插队的信息(插到当前第几个人后面),求最终的序列。 权值树状数组。 考虑人越靠后优先级越高(如最后一个人的最终位置就是他插入的位置),所以倒序处理。 用1表示还没人在最终的这个位置,0表示有人了。 倒序到i的时候,“ i 插到第 ...
分类:
其他好文 时间:
2018-04-28 20:57:13
阅读次数:
125
题目:http://poj.org/problem?id=2828 这题可以倒序来做,因为越靠后的人实际上优先级越高; 用0和1表示这个位置上是否已经有人,0表示有,1表示没有,这样树状数组维护前缀和表示这个位置前面有多少个空位置; 每插入一个人,找到前面空位置恰好是他要求的个数的那个位置,就是他最 ...
分类:
其他好文 时间:
2018-04-28 20:51:20
阅读次数:
128
Lintcode393 Best Time to Buy and Sell Stock IV solution 题解 ...
分类:
其他好文 时间:
2018-04-26 11:56:36
阅读次数:
188
D. Buy a Ticket Musicians of a popular band "Flayer" have announced that they are going to "make their exit" with a world tour. Of course, they will v ...
分类:
其他好文 时间:
2018-04-26 01:25:50
阅读次数:
183