Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
335796 李俞家骅 【C2-4】小玉在游泳 C++ 通过 100 1 MS 244 KB 191 2025-07-24 09:08:26

Tests(2/2):


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


测评信息: