Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
70663 伍思语 13自由落体 C++ Accepted 1 MS 268 KB 177 2024-04-16 19:56:40

Tests(1/1):


Code:

#include<iostream> using namespace std; int main(){ double n=100,s=100; for(int i=0;i<=9;i++){ n=n/2.0; s=s+n*2; } printf("%.6lf %.6lf",s,n); return 0; }