Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
128380 唐钧 不等式 C++ 通过 100 0 MS 248 KB 230 2024-01-25 17:06:05

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main() { float sum,value; int n; scanf("%f",&value); sum=0.0; n=0; do { ++n; sum+=1.0/(float)n; } while(sum<value); printf("%d",n); return 0; }


测评信息: