| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 75809 | 刘慕莀 | 12自由落体 | C++ | Wrong Answer | 0 MS | 272 KB | 256 | 2024-05-29 19:48:52 |
#include <bits/stdc++.h> using namespace std; int main() { double h, sum; cin >> h; for(int i = 1; i <= 9; ++i) { sum += h; h /= 2; sum += h; } cout << sum+h << endl << h/2 << endl; return 0; }
------Input------
3 12
------Answer-----
0.097656
------Your output-----
-nan 0.00292969