Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
163112 冉骏杰 13自由落体 C++ Accepted 1 MS 260 KB 227 2026-10-24 14:14:07

Tests(1/1):


Code:

#include<iostream> using namespace std; double a = 0,b = 100; int main (){ for(double i = 1;i<=10;i++){ a += (b + b/2); b =b/2; } a+=b; printf("%.6lf",a); cout<<" "; printf("%.6lf",b); return 0; }