1 <!DOCTYPE html> 2 3 <head> 4 <meta charset="UTF-8"> 5 <title>404</title> 6 <meta content="telephone=no" name="format-detection"> 7 <meta name="viewp... ...
分类:
移动开发 时间:
2019-10-14 14:32:58
阅读次数:
208
题面 比较显然的,题干问的是第k+1长的路最短; 那么二分答案是正确的方向; 但是怎么验证? 我们可以将所有边权大于二分的答案的边视为边权是1,否则看成0; 然后从1~n跑最短路,如果答案大于二分的答案那么就不成立,否则成立; 这种思维比较重要,代码还是很简单的; ...
分类:
其他好文 时间:
2019-10-10 20:51:27
阅读次数:
98
myBatis增删改查入门 增(insert) 在Mapper.xml文件中加入<mappers>标签 里面加入<insert>标签来添加sql语句 例:insert into t_customer ( NAME, gender, telephone, address ) VALUES ( #{na ...
分类:
其他好文 时间:
2019-09-15 00:38:57
阅读次数:
109
Description A Telephone Line Company (TLC) is establishing a new telephone cable network. They are connecting several places numbered by integers from ...
分类:
其他好文 时间:
2019-08-22 11:25:18
阅读次数:
92
While skimming his phone directory in 1982, Albert Wilansky, a mathematician of Lehigh University,noticed that the telephone number of his brother-in- ...
分类:
其他好文 时间:
2019-08-13 00:34:23
阅读次数:
101
1016 Phone Bills (25 分) 1016 Phone Bills (25 分) 1016 Phone Bills (25 分) A long-distance telephone company charges its customers by the following rules ...
分类:
编程语言 时间:
2019-08-04 01:35:10
阅读次数:
152
多年以后,笨笨长大了,成为了电话线布置师。由于地震使得某市的电话线全部损坏,笨笨是负责接到震中市的负责人。该市周围分布着N(1<=N<=1000)根据1……n顺序编号的废弃的电话线杆,任意两根线杆之间没有电话线连接,一共有p(1<=p<=10000)对电话杆可以拉电话线。其他的由于地震使得无法连接。 ...
分类:
其他好文 时间:
2019-06-01 14:07:59
阅读次数:
91
POJ3662 Telephone Lines 一共有N个电线杆,有P对电线杆是可以连接的,用几条线连接在一起的电线杆之间都可相互通信,现在想要使得电线杆1和电线杆N能相互通信,并且电线公司提出K条电线是可以免费使用的,当使用电线的数量超过K条,超出的电线要收费,收的总费用为去掉免费使用的K条电线之 ...
分类:
其他好文 时间:
2019-05-23 13:11:57
阅读次数:
96
链接:https://codeforces.com/contest/1167/problem/A 题意: A telephone number is a sequence of exactly 11 digits, where the first digit is 8. For example, t ...
分类:
其他好文 时间:
2019-05-21 15:54:36
阅读次数:
176
题目描述 FarmerJohn打算将电话线引到自己的农场,但电信公司并不打算为他提供免费服务。于是,FJ必须为此向电信公司支付一定的费用。FJ的农场周围分布着N(1ans的路径数可能大于k,如果过大则得不到最优解。所以我们可以二分答案,对于每个二分出的limitation,把边长大于它的路线的代价改 ...
分类:
其他好文 时间:
2019-05-11 16:04:08
阅读次数:
109