
几何
「已注销」
这个作者很懒,什么都没留下…
展开
-
挑战程序设计 CGL_2_A
/*Aoj CGL_2_A题意 T组数据 每次给出4个点 p1,p2,p3,p4p1与p2的向量是p_1p3与p4的向量是p_2;当p_1与p_2平行时输出2,正交输出1,其他输出0可以用向量的内积和外积做这题 */#include<bits/stdc++.h>#define eps (1e-10)using namespace std;class Point...原创 2019-05-30 17:37:12 · 302 阅读 · 0 评论 -
挑战程序设计 CGL_1_A:Projection
#include<bits/stdc++.h>#define eps (1e-10)using namespace std;class Point{ public: double x,y; Point(double _x=0,double _y=0):x(_x),y(_y){} Point operator + (Point p){ return Point(x+p....原创 2019-05-30 19:27:02 · 356 阅读 · 0 评论 -
挑战程序设计 CGL_1+B:Reflection
#include<bits/stdc++.h>#define eps (1e-10)using namespace std;class Point{ public: double x,y; Point(double _x=0,double _y=0):x(_x),y(_y){} Point operator + (Point p){ return Point(x+p....原创 2019-05-30 19:47:53 · 223 阅读 · 0 评论 -
挑战程序设计 CGL_1_C :Counter-Clockwise
#include<bits/stdc++.h>#define eps (1e-10)using namespace std;class Point{ public: double x,y; Point(double _x=0,double _y=0):x(_x),y(_y){} Point operator + (Point p){ return Point(x+p....原创 2019-05-30 20:59:40 · 249 阅读 · 0 评论 -
挑战程序设计 CGL_2_B:Intersection
#include<bits/stdc++.h>#define eps (1e-10)using namespace std;class Point{ public: double x,y; Point(double _x=0,double _y=0):x(_x),y(_y){} Point operator + (Point p){ return Point(x+p....原创 2019-05-30 22:00:09 · 300 阅读 · 0 评论 -
挑战程序设计 CGL_2_D:Distance
#include<bits/stdc++.h>#define eps (1e-10)using namespace std;class Point{ public: double x,y; Point(double _x=0,double _y=0):x(_x),y(_y){} Point operator + (Point p){ return Point(x+p....原创 2019-05-30 22:23:11 · 213 阅读 · 0 评论 -
挑战程序设计 CGL_2_C:Cross Point
/*向量a ,向量bc=a-b c的方向指向的是a 指向的是被减数 */#include<bits/stdc++.h>#define eps (1e-10)using namespace std;class Point{ public: double x,y; Point(double _x=0,double _y=0):x(_x),y(_y){} Poin...原创 2019-05-31 10:46:15 · 240 阅读 · 0 评论 -
挑战程序设计 CGL_7_D:Cross Points of aCircle and a Line
/*向量a ,向量bc=a-b c的方向指向的是a 指向的是被减数 */#include<bits/stdc++.h>#define eps (1e-10)using namespace std;class Point{ public: double x,y; Point(double _x=0,double _y=0):x(_x),y(_y){} Poin...原创 2019-05-31 14:24:17 · 247 阅读 · 0 评论 -
挑战程序设计 CGL_7_E:Cross Points of Circle
/*向量a ,向量bc=a-b c的方向指向的是a 指向的是被减数 pai=3.1415926=acos(-1.0); C++中cos,sin,asin,acos这些三角函数操作的是弧度,而非角度,你需要把角度转化为弧度.弧度=角度*Pi/180;例子1:比如对边和邻边分别为a,b 设角度为x,则 x=atan(a/b); 其中x为弧度制 如需转换为角度值,则x*1...原创 2019-05-31 19:36:56 · 273 阅读 · 0 评论