标签:src scan aik width get jpg NPU ati str
1.两点间距离(10min)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2001
题解:
此题需要知道两点间距离公式:|
#include<stdio.h> #include<math.h> int main(void) { double x1,x2,y1,y2; double dis; double temp; while(~scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2)) { dis=0; temp=(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2); dis=sqrt(temp); printf("%0.2lf\n",dis); } return 0; }
2.
标签:src scan aik width get jpg NPU ati str
原文地址:https://www.cnblogs.com/ping2yingshi/p/12243098.html