Muddy FieldsTime Limit:1000MSMemory Limit:65536KTotal Submissions:8881Accepted:3300DescriptionRain has pummeled the cows' field, a rectangular grid of...
分类:
其他好文 时间:
2015-07-13 22:11:39
阅读次数:
103
Description
Some of Farmer John's N cows (1 ≤ N ≤ 80,000) are having a bad hair day! Since each cow is self-conscious about her messy hairstyle, FJ wants to count the number of other cows that can ...
分类:
其他好文 时间:
2015-07-13 14:01:45
阅读次数:
135
题意:给出n个位置,需要将m头牛放在这些位置中,使得所有相邻两头牛间的最小距离最大,求最大的最小距离;思路:二分枚举最优解。先将所有位置排序,从最大总距离枚举到0,若满足差值大于等于枚举值的位置个数大于等于m,则当前枚举值为最优解。#include#include#includeusing name...
分类:
其他好文 时间:
2015-07-13 00:42:43
阅读次数:
499
备份:
下面是我用来备份系统的完整命令:
tar -jpcvf Ubuntu-12.04-20131018.tar.bz2 --exclude=/proc --exclude=/lost+found --exclude=/Ubuntu-12.04-20131018.tar.bz2 --exclude=/mnt --exclude=/sys --exclude=/home /
让我们来简单看...
分类:
系统相关 时间:
2015-07-10 15:22:51
阅读次数:
190
= =之前跟队友兴致勃勃说要一起刷usaco,然后就卡在这题了,因为真没看懂。今天莫名想起,感觉是左闭右开区间,然后一试就过了= = 然后又可以愉快开刷了//然而队友已经不是原来的队友了//人和人的价值观差别太大//我觉得玩的开心就好+信守承诺最重要//他觉得要当一队拿金然后进final最重要//另...
分类:
其他好文 时间:
2015-07-08 22:29:46
阅读次数:
123
When the sending side sees a duplicate ACK, it knows that the other side must have received a packet out of order, which suggests that an earlier packet might have been lost.
Since it is also p...
分类:
其他好文 时间:
2015-07-08 16:37:40
阅读次数:
158
Bad Hair Day
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 14989
Accepted: 4977
Description
Some of Farmer John's N cows (1 ≤ N ≤ 80,000) are having a ...
分类:
其他好文 时间:
2015-07-06 21:49:40
阅读次数:
112
利用vSphere调整各台虚拟机后,重新启动mesos,让其启动docker,并为每个container分配cpu和mem,但每次都有一个TASK_LOST.查看mesos slave的log,发现下面的error:WARNING: Your kernel does not support swap...
分类:
其他好文 时间:
2015-07-06 19:24:28
阅读次数:
183
html5代码:<divclass="ub-f3ub-acsearch_inputuc-a1sc-bg-activeuinputubub-f1bc-borderuba"><inputoninput="toggleIcon(this);"type="text"onfocus="toggleIcon(this);"onblur="lost(this);"placeholder="关键字:姓名"class="ub-f1"><spanclass="ub-imgubclear..
分类:
其他好文 时间:
2015-06-29 20:35:36
阅读次数:
190