摘要:
#include <math.h> //平方 pow()int a = pow(4,2);// 4的平方=16//开方int b = pow(4,0.5);// 4的平方根=2int c = sqrt(4);// 4的平方根=2//整数绝对值int c = abs(b-c);//浮点数绝对值doub 阅读全文
posted @ 2020-02-12 14:04
Tomorrow1126
阅读(2595)
评论(0)
推荐(0)
摘要:
1、先输入再求勾股定理会超时 2、需要一边输入一边求。 #include<iostream> #include<cmath>#include<cstdio> using namespace std; struct node{ int x,y; }p[100001]; int n; double di 阅读全文
posted @ 2020-02-12 14:03
Tomorrow1126
阅读(206)
评论(0)
推荐(0)