10 条题解
-
1
#include <cmath> #include <iomanip> #include <cstring> #include <stdio.h> #include <queue> #include <algorithm> #include <string> #include <stack> using namespace std; const int N=1e5+10; double h,a,s; int main() { cin>>h; for(int i=1;i<=10;i++) { s+=h; // 下落路程 h/=2; // 重新弹起 s+=h; // 弹起路程 } s-=h; cout<<s<<endl<<h; return 0; }
信息
- ID
- 938
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 5
- 标签
- 递交数
- 325
- 已通过
- 130
- 上传者