| ||||||||||
| 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 | |||||||||
这题别做了,这么写都ac#include<stdio.h>
int main()
{
double a,b,x,y,m=99999;
int n;
scanf("%d",&n);
while(n--)
{
scanf("%lf%lf",&a,&b);
if(m>a*a+b*b)
{
m=a*a+b*b;
x=a;
y=b;
}
}
printf("%.2lf %.2lf\n",x,y);
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator