一、题目说明 11.Container With Most Water,这个题目难度是 Medium 。 二、我的做法 乍一看,简单啊,两个for循环就可以了,我在本地写的。 真是亮瞎我的钛合金狗眼啊。醉了! ...
分类:
其他好文 时间:
2020-01-28 09:18:29
阅读次数:
339
勇者斗恶龙(The Dragon of Loowater, UVa 11292) 你的王国里有一条n个头的恶龙,你希望雇一些骑士把它杀死(即砍掉所有头)。村里有m个骑士可以雇佣,一个能力值为x的骑士可以砍掉恶龙一个直径不超过x的头,且需要支付x个金币。如何雇佣骑士才能砍掉恶龙的所有头,且需要支付的金 ...
分类:
其他好文 时间:
2020-01-27 23:37:40
阅读次数:
104
前言 在网络传输中有两种特别出名,一种是tcp,一种是udp。 他们都是基于套接字,tcp 属于sock_stream 类型,udp 属于sock_dgram。 sock_steam: 1. 传输过程不会有数据丢失。 2. 按序传输数据。 3. 传输的数据不存在数据边界。 sock_dgram 1. ...
分类:
其他好文 时间:
2020-01-27 18:59:37
阅读次数:
117
1 #include<cstdio> 2 #include<cstring> 3 #include<queue> 4 using namespace std; 5 typedef struct state STA; 6 struct state 7 { 8 int cup[3],water; 9 b ...
分类:
其他好文 时间:
2020-01-26 19:26:27
阅读次数:
54
第一篇 "终结Linked List(一)" 、 "终结Linked List(二)" 主要讲了单链表的基础知识,接下来的第二篇主要讲一些比较经典的问题。 一、 给一个单链表和一个整数,返回这个整数在链表中出现了多少次。 也可以用 循环实现。 二、 给一个单链表和一个index,返回index位置上 ...
分类:
其他好文 时间:
2020-01-26 17:38:28
阅读次数:
85
No enclosing instance of type Stu is accessible. Must qualify the allocation with an enclosing instance of type Stu (e.g. x.new A() where x is an inst ...
分类:
数据库 时间:
2020-01-24 00:14:19
阅读次数:
114
42. Trapping Rain Water we need to find how many waters can each block[i] trap. So we need to find the left peak from block_0 to block[i-1] and find t ...
分类:
其他好文 时间:
2020-01-23 09:32:11
阅读次数:
89
There is a one-dimensional garden on the x-axis. The garden starts at the point 0 and ends at the point n. (i.e The length of the garden is n). There ...
分类:
其他好文 时间:
2020-01-22 10:45:04
阅读次数:
78
位置控制原理 最近一段时间一直在忙着写官方的C型板教程,这个教程咕了两个多月没写了,现在回来把坑填完。 RM机器人上最复杂的控制计构就是双轴云台了,赛场上的情况对双轴云台的控制稳定度与响应灵敏度双方面都提出了很高的要求,云台控制的好坏在一定程度上就能够代表一支队伍的实力。 双轴云台采用的控制算法依然 ...
分类:
其他好文 时间:
2020-01-22 10:34:09
阅读次数:
135
摘自:https://www.cnblogs.com/APeng2019/p/10719288.html#3、TFTP穿越NAT 目录 1、环境拓扑配置 2、TFTP协议学习 2.1、协议概述 2.2、TFTP报文类型 2.3、TFTP端口号分配 2.4、TFTP报文格式 2.4.1、Read re ...
分类:
其他好文 时间:
2020-01-22 01:03:51
阅读次数:
141