Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
129655 梁煜然 计算球弹跳高度 C++ 通过 100 0 MS 248 KB 220 2024-01-27 09:30:20

Tests(2/2):


#include<iostream> using namespace std; int main(){ int n; double sn; cin>>sn; double h=sn/2; for(n=2;n<=10;n++){ sn+=h*2; h/=2;} cout.precision(3); cout<<fixed<<sn<<fixed<<" "<<h; return 0; }


测评信息: