安全性(安全第一):
Are Pogo Sticks Safe?
For some reason, many people seem to regard pogo sticks as relatively dangerous toys, and many parents are fearful of their children getting hurt on a pogo sti...
分类:
其他好文 时间:
2014-11-06 20:10:43
阅读次数:
1207
题目大意:给出直线上N个点的坐标和分数,任意选一个点出发,每次只能跳到另外一个点上并获得相应的分数,且每次跳的方向要相同,本次跳的距离不小于上次跳的距离。 求最大得分。 N<=1000.解题过程:1.借鉴了lsdsjy大牛的O(N^2logN)的方法,二分非常巧妙。http://www.cnblo....
分类:
其他好文 时间:
2014-10-20 19:13:27
阅读次数:
163
最近因为闲的蛋疼(停课了),所以开始做一些 USACO 的银组题。被完虐啊 TAT
貌似 Pogo-Cow 这题是 2013 Nov Silver 唯一一道可说的题目? Pogo-Cow
Description
(大意是一条直线上有一些带权值的点,可以选择一个点作为出发点,选好一个前进方向(左或右)...
分类:
其他好文 时间:
2014-10-17 21:43:19
阅读次数:
201
linux中,文件权限除了读、写、执行之外,还有强制位与冒险位的特别权限在linux中文件的权限如下(在linux中目录也是一个文件):强制/冒险|用户|组|其它===========================================sstrwxrwxrwx这里就讲解一下强制位和冒险位强制位有:setuid和setgid,主要用..
分类:
系统相关 时间:
2014-10-10 01:38:24
阅读次数:
251
3315: [Usaco2013 Nov]Pogo-CowTime Limit:3 SecMemory Limit:128 MBSubmit:143Solved:79[Submit][Status]DescriptionIn an ill-conceived attempt to enhance t...
分类:
其他好文 时间:
2014-10-03 18:07:44
阅读次数:
573
这个可以用排序来做,先排重量, 再来排长度,然后最后就是要统计分成条链就行了,也就是被机器处理几次,下面是代码的实现 1 #include 2 #include 3 4 typedef struct stick{/*其中l为length, w为weight,visit为标记当前组是否已被排列出...
分类:
其他好文 时间:
2014-09-25 17:50:17
阅读次数:
249
http://poj.org/problem?id=2513DescriptionYou are given a bunch of wooden sticks. Each endpoint of each stick is colored with some color. Is it possibl...
分类:
其他好文 时间:
2014-09-22 22:49:43
阅读次数:
285
传送门Colored SticksTime Limit: 5000MSMemory Limit: 128000KDescriptionYou are given a bunch of wooden sticks. Each endpoint of each stick is colored with...
分类:
其他好文 时间:
2014-09-14 20:34:57
阅读次数:
202
linux中除了常见的读(r)、写(w)、执行(x)权限以外,还有3个特殊的权限,分别是setuid、setgid和stick bit1、setuid、setgid先看个实例,查看你的/usr/bin/passwd 与/etc/passwd文件的权限[root@MyLinux ~]# ls -l /...
分类:
系统相关 时间:
2014-09-04 14:50:39
阅读次数:
232
卡在ATTEMPT的邻居关系可能比较少,但是却很难发现。1.是否正确配置neighbor语句。2.邻居能够ping通。
分类:
其他好文 时间:
2014-08-27 19:01:08
阅读次数:
207