?? 2105.cpp
字號:
/* This Code is Submitted by wywcgs for Problem 2105 on 2006-06-24 at 11:04:59 */
#include <cstdio>
#include <cmath>
const double G = 9.81;
const double SV = 10;
const double eps = 1e-3;
int main()
{
double k, l, s, w;
while(scanf("%lf %lf %lf %lf", &k, &l, &s, &w) != EOF && fabs(k) > eps) {
double v;
if(l-s > eps) v = 2*G*s;
else v = 2*G*s-k*(s-l)*(s-l)/w;
if(v < -eps) printf("Stuck in the air.\n");
else if(sqrt(v)-SV < eps) printf("James Bond survives.\n");
else printf("Killed by the impact.\n");
}
return 0;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -