Description
Xuanxuan has n sticks of different length. One day, she puts all her sticks in a line, represented by S1, S2, S3, …Sn. After measuring the length of each stick Sk (1 <= k <= n), she finds...
分类:
其他好文 时间:
2015-05-15 21:31:42
阅读次数:
480
问题:
解答:
伪代码如下:
void CalcTime(double Length,// length of the stick
double *XPos,//position of an ant,
int AntNum, //number of ants
double Speed, //speed of ants
double &Min,//retu...
分类:
其他好文 时间:
2015-05-10 22:29:14
阅读次数:
185
305 . [HAOI2008] 木棍分割
★★★☆ 输入文件:stick.in 输出文件:stick.out 简单对比
时间限制:3 s 内存限制:64 MB
【问题描述】
有n根木棍,第i根木棍的长度为Li,n根木棍依次连结在一起,总共有n-1个连接处.现在允许你最多砍断m个连接处,砍完后n根木棍被分成了很多段,要求满足总长度最大的一段长度最小,并且输出有多少种砍木棍的...
分类:
其他好文 时间:
2015-04-21 14:47:33
阅读次数:
204
Problem Description
As we know, Rikka is poor at math. Yuta is worrying about this situation, so he gives Rikka some math tasks to practice. There is one of them:
Yuta have a wood stick of lengt...
分类:
其他好文 时间:
2015-04-12 09:16:26
阅读次数:
138
论文写完,感觉头脑好久没被灵感刺激了,前些天室友介绍了个小游戏,我突然来了灵感可以写的简单的android 程序实现自动运行。主要的过会为三步:1,Android 屏幕的获取。因为安全的原因,过程比较麻烦,我目前采用的是开启用户调试模式,利用adb脚本反复循环截图。2,图像分析。这部分代码中有体.....
分类:
移动开发 时间:
2015-03-30 13:06:02
阅读次数:
211
13861. Pogo-Cow
Constraints
Time Limit: 1 secs, Memory Limit: 256 MB
Description
In an ill-conceived attempt to enhance the mobility of his prize cow Bessie, Farmer John has attached...
分类:
其他好文 时间:
2015-03-30 09:33:59
阅读次数:
192
SVG画简易小猫咪:
第一幅图是别人的,图2是自己画的
-----------------------------分割线----------------------------
代码部分:
好玩的SVG---可爱的小猫咪
Cat
Stick Figure of a Cat...
分类:
其他好文 时间:
2015-03-22 09:17:05
阅读次数:
148
一、特殊权限(lsattr,chattr)二、文件隐藏权限(suid,sgid,stick)三、查看命令(which,type,whereis,locate,find)四、ln链接文件(软链接,硬链接)一、特殊权限(lsattr,chattr)1、lsattr查看隐藏权限i,a[root@localhostdir2]#lsattr-------------e-./file.txt-a显示所..
分类:
系统相关 时间:
2015-03-19 16:42:51
阅读次数:
347
Problem Description
Stan has n sticks of various length. He throws them one at a time on the floor in a random way. After finishing throwing, Stan tries to find the top sticks, that is these sticks such that there is no stick on top of them. Stan has notic...
分类:
其他好文 时间:
2015-03-10 12:09:02
阅读次数:
166
NetworkMapGOAL:PC0communicationwithPC1Environment:CiscoPacketTracerCondition1.Route12.Switch13.PC3ConnectionSwitchfa0/1------PC0Switchfa0/2------PC1Switchfa0/3------fa0/0RouteSettingsWorkstationPC0STATICIP:192.168.1.2255.255.255.0192.168.1.1PC1STATICIP:192...
分类:
其他好文 时间:
2015-02-09 11:09:34
阅读次数:
196