直接用模板的,但浙大费马点的模板貌似不太好用啊。。。就自己写了注意题目给出的是三边长,要先把这三边转换成三个顶点坐标。另外,三角形中有一个角的角度大于120度时,距离之和就为三角形较短两边之和View Code #include<stdio.h>#include<math.h>#include<string.h>#include<algorithm>using namespace std;const double pi=acos(-1.0);struct point{double x,y;};struct line{point a,b;};dou Read More
View Code #include<stdio.h>#include<string.h>#include<stdlib.h>struct node{ char num; struct node *left; struct node *right; // node():left(NULL),right(NULL){}};node *build(node *root,char ch){ if(root==NULL) { root=new node; root->left=NULL; root->right=NULL; ... Read More