Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
335606 李俞家骅 【C2-4】小玉在游泳 C++ 解答错误 0 1 MS 252 KB 189 2025-07-23 15:32:22

Tests(0/2):


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


测评信息: