重力势能 ep=mgh, 弹性势能 et=0.5k(△l)^2 , 动能 ek=0.5mv^2
ep<0 则说明卡在空中
v^2=2*ep/m
#include"cstdlib"
#include"cstdio"
#include"cstring"
#include"cmath"
#include"queue"
#include"algorithm"
#include"iostream"
using namespace std;
int main()
{
double k,l,s,w;
double g=9.81;
while(scanf("%lf%lf%lf%lf",&k,&l,&s,&w),(k+l+s+w))
{
double ep;
ep=w*g*s;
if(s>l) ep-=0.5*k*(s-l)*(s-l);
if(ep<0)
{
puts("Stuck in the air.");
continue;
}
double v;
v=sqrt(ep*2/w);
puts(v>10?"Killed by the impact.":"James Bond survives.");
}
}