上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页
摘要: struct EDGE { int u, v, w, next; EDGE() {} EDGE(int _u, int _v, int _w, int _next) { u = ... 阅读全文
posted @ 2018-03-27 14:49 LandingGuys 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 从廖雪峰网站get:https://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c0001.__slots__可以限制实例的属性 比如class Student(... 阅读全文
posted @ 2018-03-25 20:25 LandingGuys 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 从廖雪峰网站get:https://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000 1.__slots__可以限制实例的属性 比如 2.给class绑定方法: def func(...).... 阅读全文
posted @ 2018-03-25 20:25 LandingGuys 阅读(92) 评论(0) 推荐(0) 编辑
摘要: int pnpoly(int nvert, float *vertx, float *verty, float testx, float testy) //testx,testy 是要判断的点{ int i, j, c = 0; for (i = 0, j = n... 阅读全文
posted @ 2018-03-24 20:41 LandingGuys 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 转自https://www.cnblogs.com/jbelial/archive/2011/08/05/2128625.htmldouble Multiply(POINT p1 , POINT p2 , POINT p3) // 叉积 { return ... 阅读全文
posted @ 2018-03-24 10:25 LandingGuys 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 挑战程序设计P258代码https://blog.csdn.net/sepnine/article/details/46804299将圆的x左边左端和右端存储起来 for(int i=0;i >::iterator it=outers.lower_bound(make... 阅读全文
posted @ 2018-03-24 09:52 LandingGuys 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 题目说给出a和b其中a,其基本用途是查找有序区间中第一个大于或等于某给定值的元素的位置,其中排序规则可以通过二元关系来表示。#include #include using namespace std; int main() { int a[4] = { 2, ... 阅读全文
posted @ 2018-03-23 18:58 LandingGuys 阅读(124) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #define N 1028#define lowbit(x) x&(-x)using namespace std;int num,n,q,x1,x2,y3,y2;int c[N][N];void add(int ... 阅读全文
posted @ 2018-03-22 21:02 LandingGuys 阅读(91) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=2155没有想到c数组用来记录改变次数 ,我一开始是记录了改变 如果c[x][y]=1 c[x][y]=0 这样子 行不通,因为c[x][y]管的不仅是一个点,无法确定 c的改变是因为哪个点改变而得到的。可以参考论文... 阅读全文
posted @ 2018-03-22 20:14 LandingGuys 阅读(116) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=23521.没有注意读题 已经给好y的顺序排列,不用自己再sort了2.在使用qsort(a+1,num,sizeof(a[1]),cmp)要注意sizeof(a[1]) 还有cmp 要将const void*... 阅读全文
posted @ 2018-03-19 18:42 LandingGuys 阅读(90) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页