题解 1670: 拆分位数

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

筛选

拆分位数-题解(Python代码)

摘要:利用[::-1]列表逆序输出,再循环输出逆序列表的每一个元素 ```python n=input() m=list_1[::-1] for i in m: print(i,end='……

拆分位数-题解(Python代码)

摘要:只需要简单的切片逆序输出,简单暴力,好像没有什么好讲的,都能看得懂 n=input() x=n[::-1] print(" ".join(x))……

拆分位数-题解(C++代码)

摘要:##### 解题思路: 1.要将输入的一个数字进行逆序输出 ,我们先要对输入的数字 “取余10” 得到它的末位 ,之后 “除以10” 再 “取余10” 得到第二的末位数字 ,以此类推得到它的逆序数字……

拆分位数 (C语言代码)

摘要:参考代码:#include<stdio.h>int main(void){         int n,r;         scanf("%d", &n);         while (n)   ……

番5 拆分位数 (C++代码)

摘要:解题思路:                c++学习路的第二题,直接cout输出注意事项:参考代码:#include <iostream> using namespace std; int mai……

拆分位数 (Java代码)

摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] arg……
优质题解

拆分位数 (C语言代码)

摘要:解题思路:        这个三位数是365,用int定义四个变量:int a,b,c,x;        输入这个三位数数: scanf("%d",&x);        百位:365/10=36余……