”拆分位数”题解(不正经的解法) 摘要:解题思路:输入的数可以看做一个字符类型的数组,而逆序输出就是数组元素遍历,拆分只需在其中添加空格即可注意事项:参考代码:#include<iostream>#include<cstdio>using …… 题解列表 2022年09月12日 0 点赞 0 评论 120 浏览 评分:0.0
通过循环来来分解每位上的数 摘要:解题思路:通过对输入的数对10取余,获取这个数的最低位,然后再使这个数除以10并赋给它本身,完成对这数低位的分解并重置这个数剩下的数。注意事项:循环条件位这个数大于零。参考代码: …… 题解列表 2022年08月05日 0 点赞 0 评论 233 浏览 评分:9.9
编写题解 1670: 拆分位数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a = 0, b = 0, c = 0; int num = 0; sca…… 题解列表 2022年07月30日 0 点赞 0 评论 192 浏览 评分:0.0
简单的字符串 摘要:解题思路:用join函数即可注意事项:无参考代码:num=input() print(' '.join(num[::-1]))…… 题解列表 2022年07月14日 0 点赞 1 评论 421 浏览 评分:7.3
编写题解 1670: 拆分位数 摘要: 拆分位数,这里拿一个数用'%'除以10取余,可以获得最后一位,接下来将拿这个数用'/'除以10取整,就可以把已经取到的最后一位剔除。然后接着循环,将所有的位都取到,直至用'/'除以10取整…… 题解列表 2022年07月11日 0 点赞 1 评论 717 浏览 评分:9.9
1670——————拆分位数 摘要: for i in input()[::-1]:print(i,end=' ') n = str(input()) for i in n[::-1]:print(i,en…… 题解列表 2022年07月08日 0 点赞 0 评论 177 浏览 评分:0.0
拆分位数__C语言 摘要:运行时间: 6ms 消耗内存: 1156KB ------------ 方法一 ```c #include int main() { int num, lef…… 题解列表 2022年07月08日 0 点赞 1 评论 1767 浏览 评分:9.9
1670: 拆分位数 摘要:解题思路:先定义一个分解并输出3位数的函数,再在主函数里调用它就可以啦···注意事项:注意是取余10,不是整出10···参考代码:#include<bits/stdc++.h> using name…… 题解列表 2022年05月29日 0 点赞 0 评论 386 浏览 评分:9.9
拆分位数解法 摘要:```c #include int main() { int m, a, b, c; scanf_s("%d", &m); a = m % 10; b = m % 100 / 1…… 题解列表 2022年05月15日 0 点赞 0 评论 187 浏览 评分:0.0
1670: 拆分位数 摘要:解题思路:注意事项://合理运用%和/参考代码:#include<iostream>#include<fstream>#include<algorithm>using namespace std;lo…… 题解列表 2022年05月09日 0 点赞 0 评论 104 浏览 评分:0.0