| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
wa到让人怀疑自己的人品,想象不到什么样的合法数据过不了。#include <stdio.h>
#include <math.h>
double abs(double a){if(a<0)return -a;return a;}
int main(){double a,b,c,d,e,f,g;
while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)!=EOF)
printf("%.2lf\n",3.141592653589793
*sqrt((a-e)*(a-e)+(b-f)*(b-f))
*sqrt((a-c)*(a-c)+(b-d)*(b-d))
*sqrt((c-e)*(c-e)+(d-f)*(d-f))
/abs((a-c)*(b-f)-(a-e)*(b-d)));
return 0;
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator