[编程入门]Sn的公式求和-题解(C++代码) 摘要:#include using namespace std; #include int main() { int n; cin >> n; long int Sn = 0; …… 题解列表 2020年04月04日 0 点赞 0 评论 629 浏览 评分:0.0
[编程入门]Sn的公式求和-题解(C语言代码) 摘要:```c #include int main(void) { int n; int num = 0; int Sn = 0; scanf("%d", &n); if…… 题解列表 2020年05月17日 0 点赞 0 评论 622 浏览 评分:0.0
[编程入门]Sn的公式求和-题解(C++代码) 摘要:#include using namespace std; int main() { int x = 0,y = 0,z = 0,m = 0,n = 0,p = 0,q = 0,i = …… 题解列表 2020年05月26日 0 点赞 0 评论 364 浏览 评分:0.0
[编程入门]Sn的公式求和-题解(C语言代码) 摘要:解题思路:比较复杂,用了循环嵌套,如下,内层循环是为了确定数字,外层为了累加,具体如下注意事项:参考代码:#include<stdio.h>#include<math.h>//用到了pow函数int …… 题解列表 2020年08月07日 0 点赞 0 评论 557 浏览 评分:0.0
[编程入门]Sn的公式求和-题解(C++代码) 摘要:解题思路:a,aa,aaa······的变化规律是aaa=aa*10+a=((a*10+a)*10+a)+a (秦九韶???)注意事项:参考代码:#include using namespace s…… 题解列表 2020年08月16日 0 点赞 0 评论 188 浏览 评分:0.0
[编程入门]Sn的公式求和-题解(C++代码) 摘要:解题思路:将数字理解为字符,再将字符转换为数字相加注意事项:参考代码:#include<bits/stdc++.h> #include<string> using namespace std; …… 题解列表 2020年08月16日 0 点赞 0 评论 613 浏览 评分:0.0
[编程入门]Sn的公式求和-题解(C语言代码) 摘要:#include <stdio.h>#include <stdlib.h>int main() { int n,a; int Sn=0; int i; scanf("%d",&n); for(i=0,…… 题解列表 2020年08月31日 0 点赞 0 评论 233 浏览 评分:0.0
[编程入门]Sn的公式求和-题解(C语言代码) 摘要:解题思路:注意事项:参考代码: #include <stdio.h>#include <stdlib.h>#include <math.h>int main(){ int a[1000],n,s…… 题解列表 2020年09月05日 0 点赞 0 评论 237 浏览 评分:0.0
[编程入门]Sn的公式求和-题解(C语言代码) 摘要:解题思路:注意事项://pow函数返回值是double类型。参考代码:#include <stdio.h>#include <math.h>double fun(int n){ double t…… 题解列表 2020年09月09日 0 点赞 0 评论 464 浏览 评分:0.0
[编程入门]Sn的公式求和-题解(Java代码) 摘要:解题思路:找规律注意事项:注意观察参考代码:import java.util.Scanner;public class Main { public static void main(String[]…… 题解列表 2020年09月24日 0 点赞 0 评论 256 浏览 评分:0.0