REGRESSION MODELLING(STAT2008/STAT4038/STAT6014/STAT6038)Assignment 1 for Semester 1, 2019INSTRUCTIONS: This assignment is worth 15% of your overall m ...
分类:
其他好文 时间:
2019-04-05 19:36:50
阅读次数:
140
题目链接 题目大意:每次给你一个点,如果这个点已经存在, 那么就删除这个点,如果这个点不存在,那么就加入这个点。每次询问当前集合的扩展集合中点的个数。 扩展集合是这么得到的,如果当前集合中存在矩形的3个点,那么第4个点就会被放到扩展集合中,不断这样拓展。 思路: 首先我们要建图,横坐标相同的点连一条 ...
分类:
其他好文 时间:
2019-04-04 17:20:58
阅读次数:
168
Extending Set of Points 我们能发现, 如果把x轴y轴看成点, 那么答案就是在各个连通块里面的x轴的个数乘以y轴的个数之和。 然后就变成了一个并查集的问题, 但是这个题目里面有撤销的操作, 所以我们要把加入和撤销操作变成 这个点影响(L , R)之间的询问, 然后把它丢到线段树 ...
分类:
其他好文 时间:
2019-03-27 12:49:13
阅读次数:
175
Homography,即单应性,该函数用于求src_points转换为dst_poinsts的单应性矩阵; 为了理解单应性,必须先引入透视变换的概念;把空间坐标系中的三维物体或对象转变为二维图像表示的过程称为投影变换,根据视点(投影中心)与投影平面之间距离的不同,投影可分为平行投影和透视投影,透视投 ...
分类:
其他好文 时间:
2019-03-25 23:10:15
阅读次数:
154
Optimal Point on a Line CodeForces - 710B You are given n points on a line with their coordinates xi. Find the point x so the sum of distances to the ...
分类:
其他好文 时间:
2019-03-23 19:49:06
阅读次数:
147
原题链接在这里:https://leetcode.com/problems/k-closest-points-to-origin/ 题目: We have a list of points on the plane. Find the K closest points to the origin ( ...
分类:
其他好文 时间:
2019-03-19 01:08:47
阅读次数:
170
1.在k8s集群使用过程中,总是遇到各种rbac的权限问题.记录了几个报错,见下:报错1:"message":"podsisforbidden:User\"kubernetes\"cannotlistresource\"pods\"inAPIgroup\"\"attheclusterscope""message":"pservicesisforbidden:User\"kubernetes\"ca
分类:
其他好文 时间:
2019-03-18 17:01:42
阅读次数:
353
Random random = new Random(); // Color SeriesColor; int SeriesIndex=0; tChart1.Series.Clear(); Steema.TeeChart.Styles.Points pieSeries; for (int t = 0 ...
分类:
其他好文 时间:
2019-03-18 01:43:24
阅读次数:
150
题目大意:求 $$\sum\limits_{i=2}^n\phi(i)$$ 题解:利用与埃筛类似的操作,可在 $O(nlogn)$ 时间求出结果。 代码如下 cpp include using namespace std; const int maxn=3010; int kase,n,phi[ma ...
分类:
其他好文 时间:
2019-03-17 23:15:08
阅读次数:
134
Practical 1: HTTP Web Proxy Server Programming PracticalDue Mar 29 by 17:00 Points 24Adapted from Kurose & Ross - Computer Networking: a top-down appr ...
分类:
Web程序 时间:
2019-03-17 19:55:26
阅读次数:
138