传送门 ovo,这题我一开始竟然没看出来怎么做…… 我们不妨设a>b,那么对于每一个a,所能被看到的点的个数就是phi(a),直接求一下欧拉函数的前缀和就行。之后在对于b>a的时候是同理的,还要×2.最后我们发现(1,1)被算了两次,然后还有(0,1)和(1,0)没算,那就再+1. 欧拉函数要线性筛 ...
分类:
其他好文 时间:
2018-10-12 11:02:26
阅读次数:
143
Given n points in the plane that are all pairwise distinct, a "boomerang" is a tuple of points (i, j, k) such that the distance between i and j equals ...
分类:
其他好文 时间:
2018-10-11 18:49:07
阅读次数:
151
本文参考: https://www.cnblogs.com/GerynOhenz/p/8727415.html kuangbin的ACM模板(新) 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4347 Problem Description The ...
分类:
其他好文 时间:
2018-10-11 13:42:34
阅读次数:
151
SIFT :scale invariant feature transform HOG:histogram of oriented gradients 这两种方法都是基于图像中梯度的方向直方图的特征提取方法。 1. SIFT 特征 实现方法: SIFT 特征通常与使用SIFT检测器得到的感兴趣点一起 ...
分类:
其他好文 时间:
2018-10-09 21:43:41
阅读次数:
202
源代码如下: 报错信息如下: Exception in thread "main" java.lang.NullPointerExceptionat test.Main.zjd(Main.java:29)at test.Main.main(Main.java:9) 分析: 在变量列表中发现point ...
分类:
编程语言 时间:
2018-10-09 21:43:19
阅读次数:
182
刚完成潜水ow + aow + 高氧,一些重点记录下,以防之后潜水会忘记(好吧,我承认我记忆力不行) 组装: 潜伴检查: B:检查BCD充气放气口吹 W:检查配重 R:检查五个扣子 A:本人吹二级头 潜伴同时吹备用二级头,观察气压表是否有大变化,检查气瓶是否打开 F:检查面镜是否在脖子上,脚蹼是否准 ...
分类:
其他好文 时间:
2018-10-08 00:42:05
阅读次数:
468
一、题目 A lattice point (x, y) in the first quadrant (x and y are integers greater than or equal to 0), other than the origin, is visible from the origin ...
分类:
其他好文 时间:
2018-10-06 17:50:30
阅读次数:
149
You have a list of points in the plane. Return the area of the largest triangle that can be formed by any 3 of the points. Example: Input: points = [[ ...
分类:
其他好文 时间:
2018-10-06 14:32:55
阅读次数:
148
首先看一个问题:在这个task集合中一共有多少个OPEN状态的?计算出它们的points属性和。在Java 8之前,要解决这个问题,则需要使用foreach循环遍历task集合;但是在Java 8中可以利用steams解决:包括一系列元素的列表,并且支持顺序和并行处理。 这里有很多知识点值得说。首先 ...
分类:
编程语言 时间:
2018-10-06 13:17:57
阅读次数:
111