编写题解 1013: [编程入门]Sn的公式求和--解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ int n,An=0,Sn=0; scanf("%d",&n); while(n!=0){ …… 题解列表 2022年03月04日 0 点赞 0 评论 619 浏览 评分:0.0
Sn的公式求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> …… 题解列表 2022年02月21日 0 点赞 0 评论 500 浏览 评分:0.0
1013: [编程入门]Sn的公式求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a=2, Sn=0, n, i; scanf("%d\n",&n); …… 题解列表 2022年02月13日 0 点赞 0 评论 551 浏览 评分:0.0
[编程入门]Sn的公式求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,sum=0,a=0; scanf("%d",&n); for(i=0;i<n;i++){ a=…… 题解列表 2022年02月06日 0 点赞 0 评论 499 浏览 评分:0.0
最短代码解决 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,n; scanf("%d",&n); a = 24690; printf("…… 题解列表 2022年02月03日 0 点赞 0 评论 571 浏览 评分:0.0
Sn的公式求和 摘要:解题思路:S0 = 0; A0 = 0A1 = A0 * 10 + 2 = 2; S1 = A1 + S0 = 2 ;A2 = A1 * 10 + 2 = 22; …… 题解列表 2022年01月18日 0 点赞 0 评论 630 浏览 评分:9.9
小白可看懂的一个for解决的最简单的暴力算法 摘要:解题思路:简简单单,一看就懂,不需要过多解释,巧妙的用一个if解决首项不能用for打出来的情况,暴力算法。注意事项:vs2019的scanf要加_s,其他的看情况吧参考代码:#include <std…… 题解列表 2021年12月10日 0 点赞 0 评论 622 浏览 评分:9.9
[编程入门]Sn的公式求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,Sn = 0,i,a = 0; scanf("%d",&n); for(i=0; …… 题解列表 2021年11月10日 0 点赞 0 评论 562 浏览 评分:0.0
简单易懂的sn求和 摘要:解题思路:如下代码注意事项:参考代码:#include<stdio.h>#include<math.h>int main() { int a, s, n, i, b; a = 2; s = 0;…… 题解列表 2021年11月05日 0 点赞 0 评论 637 浏览 评分:9.9