编写题解 1009: [编程入门]数字的处理与判断(简单易看) 摘要:解题思路:阿巴~阿巴~阿巴~阿巴~注意事项:阿巴~阿巴~阿巴~阿巴~(简单易看)参考代码:#include<stdio.h>int main(){ int a,b,c,d,t[5],i=0,s=0,e…… 题解列表 2023年11月05日 0 点赞 0 评论 135 浏览 评分:0.0
1009c语言代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,t,k,i=0,j,a[5]; scanf("%d",&n); while(n!=0){ t=n…… 题解列表 2023年11月05日 0 点赞 0 评论 263 浏览 评分:0.0
最无脑解法:if 摘要:解题思路:题目要求五位数,还好不算多,直接无脑if判断a>0 and a<10就能确定为一位数,以此类推,再通过除法及取模抽取位数。参考代码:#include <stdio.h> int main(…… 题解列表 2023年11月08日 0 点赞 0 评论 189 浏览 评分:0.0
初学者用if暴力解法 摘要:解题思路:定义一个变量a,其中:if条件a/10000!=0表示a为一个五位数,以此类推注意事项:注意else if 的用法,不要丢了else 第二个问题不要用else参考代码:#include <s…… 题解列表 2023年11月22日 0 点赞 0 评论 147 浏览 评分:0.0
[编程入门]数字的处理与判断 摘要:a = input()print(len(a))b = list(a)for i in b: print(i,end=' ')print()print(a[::-1])…… 题解列表 2023年11月23日 0 点赞 0 评论 214 浏览 评分:0.0
C++利用指针重复遍历输出 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string.h>using namespace std;int main(){ char str[20] =…… 题解列表 2023年12月21日 0 点赞 0 评论 152 浏览 评分:0.0
递归函数法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int b[5],i=0,mask2=1,n=0;int fun(int a ,int w){ if…… 题解列表 2023年12月21日 0 点赞 0 评论 136 浏览 评分:0.0
1009: [编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int num = 0; cin >> num; s…… 题解列表 2024年01月23日 0 点赞 0 评论 435 浏览 评分:0.0
输出数字位数,并按位输出,再逆序输出。 摘要:解题思路:注意事项:参考代码:void main(){ int a; int i=0,divisor = 10; int array[5]; int trunNum = 0; …… 题解列表 2024年01月31日 0 点赞 0 评论 158 浏览 评分:0.0
求最大公约数和最小公倍数 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m, n,min=1,max=1,i; cin >…… 题解列表 2024年02月08日 0 点赞 0 评论 656 浏览 评分:0.0