Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

wa到让人怀疑自己的人品,想象不到什么样的合法数据过不了。

Posted by huicpc0860 at 2009-08-24 23:13:42 on Problem 2242
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator