Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
12533 杨振航 【基础题】求和(2) C++ Accepted 1 MS 720 KB 159 2021-05-21 13:40:28

Tests(1/1):


Code:

#include <bits/stdc++.h> using namespace std; int main() { double a=0; for(double b=1,i=100;b<=i;b++){ a+=1/b; } printf("%.3lf\n",a); }