[编程入门]求和训练(一次循环实现)[C语言代码] 摘要:解题思路: 思路:for循环的条件判断这里,可以很好的利用下,for(double i=1; i<=a||i<=b||i<=c; i++) 逻辑或判断可…… 题解列表 2023年07月05日 0 点赞 0 评论 238 浏览 评分:9.9
[编程入门]阶乘求和 摘要:解题思路: t记录算出的当前数的阶乘,(n-1)!*n=n! s是各个数的阶乘的和。 注意事项: 注意结果类型,不要溢出。参考代码:   题解列表 2023年07月05日 0 点赞 0 评论 238 浏览 评分:9.9
很简单的python代码 摘要:解题思路:注意事项:参考代码:for i in range(2,1000): total_sum = 0 array1 = list(str(i)) for digit in arr…… 题解列表 2023年07月05日 0 点赞 0 评论 466 浏览 评分:9.9
1120: C语言训练-"水仙花数"问题2(c语言) 摘要: #include int main() { int i; int a,b,c; for(i=100;i…… 题解列表 2023年07月05日 0 点赞 2 评论 279 浏览 评分:9.9
机器翻译(队列写法) 摘要:解题思路:按照队列的思想依次引入单词,并附加st来记录单词是否已经学过。注意事项:参考代码:#include<iostream>#include<algorithm>#include<queue>#i…… 题解列表 2023年07月05日 0 点赞 0 评论 289 浏览 评分:0.0
[编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码: #include <stdio.h> #include <string.h> /* 输入一行字符,分别统计出其中英文字母、数字、空格和其他字符的…… 题解列表 2023年07月05日 0 点赞 0 评论 189 浏览 评分:0.0
[编程入门]最大公约数与最小公倍数(三种方法) 摘要:解题思路:注意事项:参考代码: 方法一:#include <stdio.h>/*输入两个正整数m和n,求其最大公约数和最小公倍数。*/int m1011(){ int m,n; int mm=0,ss…… 题解列表 2023年07月05日 0 点赞 0 评论 220 浏览 评分:0.0
数字处理代码 摘要:解题思路:给出一个不多于5位的整数,要求 1、求出它是几位数 2、分别输出每一位数字 3、按逆序输出各位数字,例如原数为321,应输出123注意事项:参考代码:#include<stdio.h>int…… 题解列表 2023年07月05日 0 点赞 0 评论 197 浏览 评分:9.9
三个数字排序 (原始/三目运算/空瓶) 摘要:解题思路:注意事项:参考代码:原始#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if (a>…… 题解列表 2023年07月05日 0 点赞 0 评论 190 浏览 评分:9.9
分段函数求值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d",&x); if (x<1) y=x; else …… 题解列表 2023年07月05日 0 点赞 0 评论 254 浏览 评分:9.9