Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
436372 王璟源 【C2-2】 编程求1+1/2+1/3+...+1/n C++ 编译错误 0 0 MS 0 KB 175 2026-04-12 17:02:56

Tests(0/0):


#include<iostream> using namespace std; int main(){ int n; cin>>n; int i=1,s=0; while(i<=n){ s=s/1; cout<<fixed<<setprecision(3)<<1.0*s/1<<endl; return 0; }


测评信息: