这个题就是组三角形,从给出的数组里任选两个和未知的边组三角形。 任意两边之和大于第三边,记住这个就可以了。 代码: ...
分类:
其他好文 时间:
2018-09-25 20:39:05
阅读次数:
139
Bob intends to color the nodes of a tree with a pen. The tree consists of NN nodes. These nodes are numbered 1,2,...,N1,2,...,N. The root of the tree ...
分类:
其他好文 时间:
2018-09-24 22:18:43
阅读次数:
182
+ Manager中进程数据不安全 + 通过加锁解决 ...
分类:
编程语言 时间:
2018-09-24 21:46:09
阅读次数:
129
描述 《Journey to the West》(also 《Monkey》) is one of the Four Great Classical Novels of Chinese literature. It was written by Wu Cheng'en during the Ming ...
分类:
其他好文 时间:
2018-09-24 17:46:40
阅读次数:
165
Allen wants to enter a fan zone that occupies a round square and has nn entrances. There already is a queue of aiai people in front of the ii-th entra ...
分类:
其他好文 时间:
2018-09-24 11:15:04
阅读次数:
187
在用re(正则表达式)模块匹配掉文本中的括号时,总是出现各种各样的问题,经过将近一个小时的摸索,终于找到了问题的所在。 案例: 将 txt = 'Linux系统安装 - 1.1(Av20994127,P1).Flv' 中的(Av20994127,P1)匹配出来,再用re.sub()去掉。 初次尝试: ...
分类:
编程语言 时间:
2018-09-24 00:33:44
阅读次数:
292
# View more python learning tutorial on my Youtube and Youku channel!!! # Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXT... ...
分类:
其他好文 时间:
2018-09-23 18:27:50
阅读次数:
188
最近在写一个网站项目,使用的是Django2.1.1和xadmin0.6.0,遇到一些坑,写下来分享。
分类:
其他好文 时间:
2018-09-23 13:46:20
阅读次数:
1084
题意:n个人要运动ll长,有个bus带其中几个人,问最短时间 最后所有人在同一时间到终点是用时最少的。由于搭bus相当于加速,每个人的加速时间应该一样。先计算bus走过的路程route。看第一个人被搭t分钟(也就是所有人以后都搭t分钟),剩余的人走t分钟,route+=v2*t。bus到了v2*t的 ...
分类:
其他好文 时间:
2018-09-23 13:39:05
阅读次数:
208