| ||||||||||
| 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 | |||||||||
数据都对了啊,但是却是Output Limit Exceeded是。include "stdio.h"
#include <math.h>
#define P 3.141592653589793
main(){
double a,b,a1,b1,a2,b2,a3,b3,s,R,r,c,zhou;
char aa;
while(scanf("%c",&aa)&&(aa!=EOF))
{
scanf("%lf %lf %lf %lf %lf %lf",&a1,&b1,&a2,&b2,&a3,&b3);
a=sqrt(pow((a1-a2),2)+pow((b1-b2),2));
b=sqrt(pow((a1-a3),2)+pow((b1-b3),2));
c=sqrt(pow((a2-a3),2)+pow((b3-b2),2));
R=(a+b+c)/2;
s=sqrt(R*(R-a)*(R-b)*(R-c));
r=a*b*c/4/s;
zhou=P*r*2;
printf("%.2lf\n",zhou);
}
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator