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
题解 模拟水题。 代码 #include<bits/stdc++.h> using namespace std; struct node { string name; int final_rank,loc_num,loc_rank,grade; node(string name,int loc_nu ...
分类:
其他好文 时间:
2020-01-21 13:31:06
阅读次数:
63
简单操作: # 单行注释:# Ctrl+/ """ 这是多行注释:3对双引号 """ ''' 这是多行注释:3对单引号 ''' print("hello world") # 定义变量 # 语法格式: 变量名 = 变量值 name = "张三" age = 22 salary = 2222.25 nu ...
分类:
编程语言 时间:
2020-01-20 14:52:30
阅读次数:
103
s中的数据类型有几个特殊的,其中NaN就是一个,今天来说一下NaN的特点以及和isNaN的区别。 JS中的数据类型:数字(NaN)、字符串、布尔、函数、对象(obj、[]、{}、null)、未定义。 一、那么NaN在以下几种情况中会比较特殊: 复制代码 1 <script> 2 var a = Nu ...
分类:
其他好文 时间:
2020-01-20 10:00:33
阅读次数:
67
Given three integers A, B and C in [?], you are supposed to tell whether A+B>C. Input Specification: The first line of the input gives the positive nu ...
分类:
其他好文 时间:
2020-01-20 09:30:50
阅读次数:
92
// java时间获取类 public class DateUtil { // 获取当前时间 public static Date getNowTime() { Calendar calendar = Calendar.getInstance(); return calendar.getTime() ...
分类:
编程语言 时间:
2020-01-19 09:43:30
阅读次数:
112
任务流程: 1.读取图片文件 2.用knn识别图片文件并用k折交叉验证调参 3.用PCA对文件降维,用knn识别文件 4.抽取图片特征然后交给knn训练 一、文件的读取、可视化、以及采样 数据的初始化及其读取: from load_data import load_CIFAR10 import nu ...
分类:
其他好文 时间:
2020-01-19 00:03:13
阅读次数:
108
A. Lorenzo Von Matterhorn B.Minimum spanning tree for each edge C.Misha, Grisha and Underground D.Fools and Roads E.City Driving 题意:给你一颗基环树(有n条边,n个点的连 ...
分类:
其他好文 时间:
2020-01-18 15:00:58
阅读次数:
97
题目如下: You have a keyboard layout as shown above in the XY plane, where each English uppercase letter is located at some coordinate, for example, the l ...
分类:
其他好文 时间:
2020-01-17 11:45:26
阅读次数:
67
public int minTimeToVisitAllPoints(int[][] points) { int rowLength = points.length; //获取行数 int count = 0; for (int i = 0; i < rowLength - 1; i++) { in ...
分类:
其他好文 时间:
2020-01-17 09:42:05
阅读次数:
76