Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
325302 | 顾子丞 | 【C2-4】小玉在游泳 | C++ | 通过 | 100 | 1 MS | 256 KB | 201 | 2025-06-05 16:47:37 |
#include<iostream> using namespace std; int main(){ double x,speed=2,lon=0; int c=0; cin>>x; while(lon<x){ lon=lon+speed; speed=speed*(1.0*98/100); c++; } cout<<c; return 0; }