题目描述 有家动物收容所只收留猫和狗,但有特殊的收养规则,收养人有两种收养方式,第一种为直接收养所有动物中最早进入收容所的,第二种为选择收养的动物类型(猫或狗),并收养该种动物中最早进入收容所的。 给定一个操作序列int[][2] ope(C++中为vector )代表所有事件。若第一个元素为1,则 ...
分类:
其他好文 时间:
2019-07-14 00:14:37
阅读次数:
142
1046 Shortest Distance (20 分) 1046 Shortest Distance (20 分) 1046 Shortest Distance (20 分) The task is really simple: given N exits on a highway which ...
分类:
其他好文 时间:
2019-07-14 00:08:02
阅读次数:
109
servlet是sun公司制定的一种用来拓张web服务器功能的一个组件规范。 组件: 为了实现特定的规范并且可以进行单独部署的软件模块,组件一般是用来实现具体的业务逻辑的,而且组件必须依赖容器而运行。 容器: 为了实现特定的规范的程序,他提供了组件运行的环境,并且可用来管理组件的生命周期,一般常见的 ...
分类:
其他好文 时间:
2019-07-13 18:37:41
阅读次数:
96
We have a list of points on the plane. Find the K closest points to the origin (0, 0). (Here, the distance between two points on a plane is the Euclid ...
分类:
其他好文 时间:
2019-07-13 09:30:20
阅读次数:
124
1 var dog = { 2 // 属性 3 name: "旺财", 4 age: 10, 5 dogFriends: ["阿黄", "阿菜", "飞毛腿"], 6 7 // 方法 8 eat: function () { 9 console.log(... ...
分类:
其他好文 时间:
2019-07-12 23:42:57
阅读次数:
222
最近看了两篇关于 " C++ 20 Modules " 很有意思的文章,戳: " 《Understanding C++ Modules: Part 1: Hello Modules, and Module Units》 " " 《Understanding C++ Modules: Part 2: ...
分类:
编程语言 时间:
2019-07-12 17:01:36
阅读次数:
135
DJI RM论坛资料from:raymon DJI 第七课时 控制技术 PID控制中的I与D: 一、https://bbs.robomaster.com/thread-6194-1-1.html 二、https://bbs.robomaster.com/thread-6210-1-1.html 三、 ...
分类:
其他好文 时间:
2019-07-12 12:52:33
阅读次数:
115
RoutingInformationProtocol路由信息协议距离矢量Distance-Vector算法的意思就是指距离值相加,只不过距离可以用命令设定。【以前我总因为"距离矢量"这个词高大上而不懂使用UDP报文,端口号520。本篇要讨论的是水平分割、毒性反转、有类无类、广播组播、计时器、Metric。RIPv1在RFC1058、RIPv2在RFC2453、RIPng在RFC
分类:
其他好文 时间:
2019-07-10 11:13:20
阅读次数:
111
编写带有 main() 方法的类 Java 中的所有东西都会属于某个类 1、建立源文件(拓展名为 xxx.java) 2、编译成新的类文件(xxx.class) 真正被执行的是类 main() 是程序的起点 能在方法中做什么? 1、做某件事 声明、设定、调用方法等普通语句 2、反复做某件事 for ...
分类:
其他好文 时间:
2019-07-09 19:31:22
阅读次数:
169