Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
68433 sh25_ganzy 【基础题】求和(7) C++ 通过 0 MS 248 KB 288 2025-10-02 12:59:21

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int a(int i){ int r=1,j; for(j=1;j<=i;j++){ r*=j; } return r; } int main(){ double s; for(int k=1;k<=10;k++){ s+=1.0/(0.0+a(k)); } cout<<fixed<<setprecision(5)<<s; return 0; }


测评信息: