题目:http://vj.bit-studio.cn/contest/209424#problem/D

方法:物理题目,就是题目太啰嗦,而且英语有点看不懂,一个能量守恒就搞定了

代码:

#include<iostream>
#include<math.h>
using namespace std;
int main()
{
    double k, l, s, w;
    while (cin >> k >> l >> s >> w )
    {
        if ((w == 0 && s == 0 && k == 0 && l == 0))break;
        double dl = sqrt(2 * w*9.81*s / k);
        if (dl<s-l)
        {
            cout << "Stuck in the air." << endl;
        }
        else
        {
            if (0.5*k*(l - s)*(l - s) + 0.5*w * 10 * 10 < w*9.81*s)
            {
                cout << "Killed by the impact." << endl;
            }
            else
                cout << "James Bond survives." << endl;
        }
    }
}