Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
335795 李俞家骅 【C2-4】小玉在游泳 C++ 解答错误 0 1 MS 244 KB 197 2025-07-24 09:01:26

Tests(0/2):


#include<bits/stdc++.h> using namespace std; int main() { double n,a=2,s; int i=1; cin>>a; while(i<=n){ s+=a; a*=0.98; i++; } cout<<int(s+3); return 0; }


测评信息: