题解 1670: 拆分位数

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

简单的字符串

摘要:解题思路:用join函数即可注意事项:无参考代码:num=input() print(' '.join(num[::-1]))……

编写题解 1670: 拆分位数

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a = 0, b = 0, c = 0; int num = 0; sca……

通过循环来来分解每位上的数

摘要:解题思路:通过对输入的数对10取余,获取这个数的最低位,然后再使这个数除以10并赋给它本身,完成对这数低位的分解并重置这个数剩下的数。注意事项:循环条件位这个数大于零。参考代码:           ……

”拆分位数”题解(不正经的解法)

摘要:解题思路:输入的数可以看做一个字符类型的数组,而逆序输出就是数组元素遍历,拆分只需在其中添加空格即可注意事项:参考代码:#include<iostream>#include<cstdio>using ……

数组的解法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int digits[3],n,i;    scanf("%d",&n);    for(i=0;i<3;……

用函数的方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>void Leftmove(int *n);//左移一位void getmin_print(int *n);//得到最小的那一位数并打印……

1670: 拆分位数

摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int main() {     int n = 0;      cin >>……

拆分位数(投机版)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    char a,b,c;    scanf("%c%c%c",&a,&b,&c);    printf("%……

: 拆分位数(超简C++)

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() {     int n;     cin>>n;    ……