计算几何+SPFA
我已经不想看我的提交记录了。。。。
HDU 我起码WA了2页。。。。
都是浮点数惹的祸。
const double eps=1e-4;
a-b
这样来判断相等。
总共 n 条鳄鱼,最多有 n*(n+1)/2 条路。
抽象化处理。
把 中心的起点当作 起点0 ; 最多有 n+1 条路。
把鳄鱼和周围的边界的终点都当作 n+1 ; 最多有...
分类:
其他好文 时间:
2014-06-29 23:23:25
阅读次数:
217
在这介绍的Linux双网卡绑定实现就是使用两块网卡虚拟成为一块网卡,这个聚合起来的设备看起来是一个单独的以太网接口设备,通俗点讲就是两块网卡具有相同的IP地址而并行链接聚合成一个逻辑链路工作。其实这项技术在Sun和Cisco中早已存在,被称为Trunking和Etherchannel技术,在Linu...
分类:
系统相关 时间:
2014-06-28 14:59:17
阅读次数:
312
#!/usr/bin/envpython#Filename:helloworld.py#Theuseof‘and"print‘hello,world!‘print"hello,world!"#Theuseof‘‘‘and"""print‘‘‘Thisisamulti-linestring.Thisisthefirstline.Thisisthesecondline."What‘syourname?"Iasked.Hesaid"Bond,JamesBond."‘‘‘print"""Thisisamulti-li..
分类:
编程语言 时间:
2014-06-24 17:05:23
阅读次数:
239
我们这一节来看Port 一般来说一个Port就是一个Interface,当然也有一个Port对应多个Interface的情况,成为Bond VLAN Configuration Port的一个重要的方面就是VLAN Configuration,有两种模式: trunk port,这个port不配置t...
分类:
其他好文 时间:
2014-06-24 10:30:41
阅读次数:
427
1. DIE is dieDIE.CPB1DIE.CPB2...DIE.CPB7Stacked die
in die BGA package;chip bond
pads2.DIE.CBPAssignment1Assignment1CountHeightLengthWidthDIE.FormatId...
分类:
其他好文 时间:
2014-05-29 11:44:10
阅读次数:
844