题解 2817: 级数求和

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

筛选

一个while循环

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

2817: 级数求和

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

题解 2817: 级数求和

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

题解 2817: 级数求和

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

编写题解 2817: 级数求和

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

2817: 级数求和

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

编写题解 2817: 级数求和

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

2817: 级数求和

摘要:``` #include using namespace std; int main(){ int k; double sn=0; cin>>k; for( int i=1; ;……