hdu-2368-Alfredo's Pizza Restaurant

来源:互联网 发布:苹果自动关机软件哪个 编辑:程序博客网 时间:2024/05/29 08:31
#include<stdio.h>
#include<math.h>
int main()
{
int a,b,c,i=1;
while(scanf("%d",&a)&&a)
{
double t;
scanf("%d%d",&b,&c);
t=sqrt(b*b+c*c);
if(2*a>=t)
printf("Pizza %d fits on the table.\n",i++);
else
printf("Pizza %d does not fit on the table.\n",i++);
}
return 0;
}