Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
47148 | jiabokai | 练32.2 种植竹笋 | C++ | No Test Data | 0 MS | 0 KB | 206 | 2024-05-12 17:04:22 |
#include<bits/stdc++.h> using namespace std; int main(){ int h; double s,ss; cin>>h; s=h*1.0; ss=h*1.0; for(int i=0;i<10;i++){ s/=2; ss+=(s*2); } cout<<ss<<endl<<s; return 0; }