题解 2817: 级数求和

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

jishuqiuhegggggggg

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    int K;    cin>>K;    double……

2817: 级数求和

摘要:解题思路:注意事项:参考代码:k = int(input())s = 0n = 0while k >= s:    n += 1    s += 1/nprint(n)……

编写题解 2817: 级数求和

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int k,i=1;double s=0;cin>>k;whi……

2817: 级数求和

摘要:参考代码:k = int(input()) Sn = 0 number = 1 while True:     Sn += 1 / number     if Sn > k:       ……

编写题解 2817: 级数求和

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int k = 0; scanf("%d", &k); double sn = 0; int i = 0; w……

题解 2817: 级数求和

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    long long k;    double sum……

题解 2817: 级数求和

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    short k;    double sn=0;  ……

2817: 级数求和

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() {     int n;     int pos=0; ……

一个while循环

摘要:解题思路:一个while循环注意事项:y<=k参考代码:#include<stdio.h>int main(){    double a,b,y;    int k; scanf("%d",&k); ……