高中物理...
output limited exceed是用整型在读取
...读题读题
#include<stdio.h>
#include<math.h>
int main()
{
double k,l,s,w;
while (1)
{
double e;
scanf("%lf%lf%lf%lf",&k,&l,&s,&w);
if (k==0&&l==0&&s==0&&w==0) break;
if (s>l) e=w*9.81*s-0.5*(s-l)*(s-l)*k;else e=w*9.81*s;
if (e<0)
{
printf("Stuck in the air.\n");
continue;
}
if (sqrt(2*e/w)>10)
printf("Killed by the impact.\n");
else printf("James Bond survives.\n");
}
}