地址:https://leetcode-cn.com/problems/hamming-distance/ <?php /** 两个整数之间的汉明距离指的是这两个数字对应二进制位不同的位置的数目。 给出两个整数 x 和 y,计算它们之间的汉明距离。 注意: 0 ≤ x, y < 231. 示例: 输 ...
分类:
其他好文 时间:
2020-07-15 22:55:36
阅读次数:
57
题目链接:http://poj.org/problem?id=2482 给出每个点框定的区域,求区域叠加的最大值,可以通过如下算法: 将每个可行点都标记,记录这些点上的权值,维护一个叶结点是一个权值点的线段树,更新的时候注意,由于所有的点都是可行点,所以右边界要在最后删除,遇到同样的x坐标的,优先叠 ...
分类:
编程语言 时间:
2020-07-15 15:23:49
阅读次数:
68
面向对象学习的三条主线 1.java类及成员变量;类的成员:属性、方法,构造器、代码块,内部类 2.面向对象的三大特征:封装性、继承性、多态性 3.其他关键字:this super static final abstract interfae package import 一、面向对象:简言之,将功 ...
分类:
其他好文 时间:
2020-07-15 15:16:02
阅读次数:
62
https://www.luogu.com.cn/problem/P1036 方法二:二进制枚举+素数筛 1 #include<bits/stdc++.h> 2 using namespace std; 3 int a[25]; 4 const int max_n=10000005; 5 int b ...
分类:
其他好文 时间:
2020-07-15 01:26:17
阅读次数:
76
Math方法 // 常量数据不能修改 console.log(Math.PI); console.log(Math.SQRT2); console.log(Math.SQRT1_2); // Math.PI/180*60 ? // abs 绝对值 非负值 console.log(Math.abs(- ...
分类:
Web程序 时间:
2020-07-14 18:47:02
阅读次数:
82
1 let url = "https://xxx.arcgis.com/arcgis/rest/services/line_0706_3857/FeatureServer/0"; //此处为地址样式,不是完整的地址,请填写服务的完整地址。 2 3 var LineLayer = esri.featu ...
分类:
其他好文 时间:
2020-07-14 16:33:40
阅读次数:
152
https://www.luogu.com.cn/problem/P2089 1 #include<bits/stdc++.h> 2 using namespace std; 3 int n, cnt=0, ans[60000][10];//最多情况是3^10= 59049,所以开这么大二维数组,用 ...
分类:
其他好文 时间:
2020-07-14 15:05:48
阅读次数:
388
import base64 str1 = "你好" b = base64.b64encode(str1.encode('utf-8')).decode("utf-8") print(b) print(type(b)) c = base64.b64decode(b.encode("utf-8")).d ...
分类:
编程语言 时间:
2020-07-14 13:19:48
阅读次数:
69
论文链接:https://arxiv.org/abs/1910.03151 代码地址:https://github.com/BangguWu/ECANet 讲解:https://mp.weixin.qq.com/s/LOOhcmyMIVJugER0wJkDhg ...
分类:
Web程序 时间:
2020-07-14 13:02:26
阅读次数:
173
题目链接:https://codeforces.com/contest/1380/problem/C 题意 给 $n$ 个数分组,要求每组的最小值乘以该组数的个数不小于 $x$ 。 题解 从大到小依次分即可。 代码 #include <bits/stdc++.h> using ll = long l ...
分类:
其他好文 时间:
2020-07-14 00:45:36
阅读次数:
83