```kotlin package a import java.io.IOException import java.nio.file.* import java.nio.file.attribute.BasicFileAttributes fun main(args: Array) { val p... ...
分类:
编程语言 时间:
2019-02-11 18:38:08
阅读次数:
370
题目要求 A website domain like "discuss.leetcode.com" consists of various subdomains. At the top level, we have "com", at the next level, we have "leetcod ...
分类:
其他好文 时间:
2019-02-07 23:54:35
阅读次数:
318
Sample Input 2 5 20 1 3 12 2 4 10 3 5 8 1 4 6 5 7 19 6 8 17 4 7 9 8 10 16 3 9 11 10 12 15 2 11 13 12 14 20 13 15 18 11 14 16 9 15 17 7 16 18 14 17 19 ...
分类:
其他好文 时间:
2019-02-05 16:56:08
阅读次数:
191
Description Bessie has moved to a small farm and sometimes enjoys returning to visit one of her best friends. She does not want to get to her old home ...
分类:
数据库 时间:
2019-01-28 00:59:48
阅读次数:
166
"link" ms是莫比乌斯反演里最水的题。。。 题意:对于给定的整数a,b和d,有多少正整数对x,y,满足x include using namespace std; bool visit[50010]; int prime[50010], mu[50010], tot, fuck = 50000 ...
分类:
其他好文 时间:
2019-01-25 20:25:14
阅读次数:
192
``` mysql help For information about MySQL products and services, visit: http://www.mysql.com/ For developer information, including the MySQL Referenc ...
分类:
数据库 时间:
2019-01-24 13:19:36
阅读次数:
241
1030 Travel Plan (30 分) A traveler's map gives the distances between cities along the highways, together with the cost of each highway. Now you are su ...
分类:
其他好文 时间:
2019-01-21 16:10:29
阅读次数:
163
Problem Description Chiaki is interested in an infinite sequence a1,a2,a3,..., which is defined as follows: an={1an?an?1+an?1?an?2n=1,2n≥3 Chiaki woul ...
分类:
其他好文 时间:
2019-01-20 22:54:51
阅读次数:
410
When FJ's friends visit him on the farm, he likes to show them around. His farm comprises N (1 <= N <= 1000) fields numbered 1..N, the first of which ...
分类:
其他好文 时间:
2019-01-20 18:56:22
阅读次数:
148
一.生成树(SpanningTree)及最小生成树(MST) 定义:给定无向图,若它的某个子图任意两个顶点都互相连通且为一棵树,那么这棵树成为生成树,如果边上有权值,那么可以使边权值和最小的生成树称为最小生成树。 二.相关算法 1.Prim算法 算法描述:假设有一棵只包含一个顶点v的树T,贪心地选取 ...
分类:
其他好文 时间:
2019-01-19 12:12:57
阅读次数:
153