Problem Description Give you two numbers A and B, if A is equal to B, you should print "YES", or print "NO". Input each test case contains two numbers ...
分类:
其他好文 时间:
2020-04-14 20:21:08
阅读次数:
70
题意: 给出n个蚂蚁和苹果的坐标,对每个蚂蚁和苹果进行匹配(之间连一条线段),要求:任意两条线段不相交,输出一种方案。 思路: 因为三角形的两边之和大于第三边, 所有他们连线的所有线段和最小的时候线段一定不会相交, 所以这道题目就变成了二分图最小权值匹配,把任意两点间权值即为他们的距离,跑一遍KM即 ...
分类:
其他好文 时间:
2020-04-14 14:06:05
阅读次数:
62
错误信息: ERROR 2019-09-05 10:29:05,700 NetUtil.py:96 - EOF occurred in violation of protocol (_ssl.c:579)ERROR 2019-09-05 10:29:05,700 NetUtil.py:97 - SS ...
分类:
其他好文 时间:
2020-04-14 11:04:38
阅读次数:
116
之前一直使用json转换map对象,因为公司统一使用gson,我按照网上转换map对象的方式转换: Map<String, Object> params = gson.fromJson(gson.toJson(payMentResultDto), Map.class); 结果对象里Integer类型 ...
分类:
其他好文 时间:
2020-04-14 10:33:39
阅读次数:
216
Vasya And Array 题意: 给你一个序列,再给你一些区间 t = 1时说明这些区间时非递减的 t = 0 时说明这些区间至少有一对数字 arr[i] > arr[i - 1] 思路: 只要左边的区间必然右边的区间大就好了 , 非递减区间中的数字都赋值为一样的数字 因为n只有1000 , ...
分类:
其他好文 时间:
2020-04-13 23:04:18
阅读次数:
71
#!/bin/sh./etc/rc.d/init.d/functionsexportLANG=zh_CN.UTF-8#一级菜单menu1(){clearcat<<EOF----------------------------------------|****欢迎使用cetnos6.5优化脚本****----------------------------------------1.一键
分类:
其他好文 时间:
2020-04-13 15:29:24
阅读次数:
80
#!/bin/sh./etc/rc.d/init.d/functionsexportLANG=zh_CN.UTF-8#一级菜单menu1(){clearcat<<EOF----------------------------------------|****欢迎使用cetnos7.5优化脚本****----------------------------------------1.一键
分类:
其他好文 时间:
2020-04-13 15:23:32
阅读次数:
71
let obj1 = { a:111, b:"hahah", c:{ name:"qaz", age:45 }, d:[1,2,3,4] } let obj2 = { a: 111, b: "hahah", c: { name: "qaz", age: 45 }, d: [1, 2, 3, 5] } ...
分类:
其他好文 时间:
2020-04-13 10:37:02
阅读次数:
57
1.instanceof 运算符 它可以用来检测是否为数组 var arr = []; var obj = {}; console.log(arr instanceof Array); // true console.log(obj instanceof Array); // false 2.Arr ...
分类:
编程语言 时间:
2020-04-13 01:13:33
阅读次数:
230
JAVA 关键字 ? Java 的关键字,这些关键字不能用于常量,变量以及任何标识符的名称 访问控制 private protected public 类,方法和变量修饰符 abstract class extends final implements interface native new st ...
分类:
编程语言 时间:
2020-04-12 23:00:27
阅读次数:
104