题意 有$N$头牛,序号为1-N(来自不同牛场),他们要去序号为$X$x的地方参加派对, 问去+返的最少时间。(但是我有疑惑的是:题目的输出给的是“the maximum of time”???) 每组数据给出N、M、X,接下来M条边,是有向图。 思路 先用Dijkstra跑一遍最短路,接着讲该邻接 ...
分类:
其他好文 时间:
2020-07-26 15:01:15
阅读次数:
70
A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by directed edges between ...
分类:
其他好文 时间:
2020-07-26 02:05:42
阅读次数:
102
/** * @desc 金额转换成大写 * @param {Number} n 需要转换成大写的金额 * @return {String} 转换后的大写中文金额 * @example convertIntegerToChineseCash('123') =>'壹百贰拾叁元整' */ function ...
分类:
其他好文 时间:
2020-07-26 01:55:47
阅读次数:
162
Delphi 2007安装程序根据不同的序列号(许可文件)来判断安装版本,一般ISO中自带的许可文件是专业版的。 下载了N天,终于把Delphi 2007 for Win32的ISO搬到了硬盘上,谁知安装时提示“Invalid Serial Number”。 不知哪位先人曰过:“内事不决问老婆,外事 ...
基本的表格 table表示HTML文档的表格;tr表示表格中的行;td表示表格中的单元格 表头单元格 th元素表示表头单元格,用来区分数据和对数据的说明。可以在一行中混合使用td和th元素,也可以让一行包含清一色的th元素 表头和表格主体 tbody元素表示构成表格主体的全体行 thead元素用来标 ...
分类:
其他好文 时间:
2020-07-26 01:12:15
阅读次数:
104
1. 批量重命名文件为数字编号 进入所需要重命名的数据集的文件夹,在终端运行 $ i=k; for x in ./*; do mv $x $i.mp4; let i=i+1; done # 'k' is the start number you want, such as 1 or 1000; '. ...
分类:
系统相关 时间:
2020-07-26 00:44:57
阅读次数:
112
递归函数# 了解什么事递归 :在函数中调用自身就是递归函数 # 最大递归深度默认的最大深度为997 / 997 是python从内存角度出发做得限制# 能知道递归# 能知道递归的应用场景# 初始递归# 算法--二分查找算法# 三级菜单--递归实现# RecursionError: maximum r ...
分类:
编程语言 时间:
2020-07-26 00:35:10
阅读次数:
72
##题面 he length of the longest common prefix of two strings s=s1s2…sn and t=t1t2…tm is defined as the maximum integer k (0≤k≤min(n,m)) such that s1s2…s ...
分类:
其他好文 时间:
2020-07-26 00:15:56
阅读次数:
106
//引入命名空间 xmlns:th="http://www.thymeleaf.org" //用th:<prop>替换<prop>属性的值 <h4 th:text="${hello}" ></h4> 1 Fragment inclusion th:insert th:replace 2 Fragme ...
分类:
其他好文 时间:
2020-07-26 00:03:15
阅读次数:
114
1.主库 [oracle@xag1124a ~]$ sqlplus / as sysdba SQL> select protection_mode,protection_level,log_mode,open_mode,flashback_on from v$database; PROTECTION ...
分类:
数据库 时间:
2020-07-25 23:57:18
阅读次数:
177