| ||||||||||
| 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 | |||||||||
怎么OLE啊?#include<iostream>
#include<math.h>
using namespace std;
int main()
{
double a0,b0,a1,b1,a2,b2,a3,b3,a4,b4;
while(1)
{
cin>>a0>>b0>>a1>>b1>>a2>>b2>>a3>>b3;
a4=a3+a0-a1;
b4=b3-sqrt((a1-a0)*(a1-a0)+(b1-b0)*(b1-b0)-(a3-a4)*(a3-a4));
printf("%0.3lf %0.3lf\n",a4,b4);
}
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator