拆分位数-题解(C语言代码) 摘要:```c #include int main() { int a; scanf("%d",&a); printf("%d %d %d\n",a%10,a/10%10,a/100);/…… 题解列表 2019年12月24日 0 点赞 0 评论 1887 浏览 评分:0.0
拆分位数-题解(C语言代码) publicstaticvoidmain(String[]args){Scannersc=newScanner(System.in);intnum=sc.nextInt();intmax;intge=num%10;intshi=num/10%10;intbai=num/100%10;System.ou 题解列表 2019年12月23日 0 点赞 0 评论 1322 浏览 评分:0.0
拆分位数-题解(Python代码) 利用[::-1]列表逆序输出,再循环输出逆序列表的每一个元素```pythonn=input()m=list_1[::-1]foriinm:print(i,end='')``` 题解列表 2019年11月27日 0 点赞 0 评论 3065 浏览 评分:6.0
拆分位数-题解(Python代码)python ```pythonn=int(input())#输入并字符转为整型g=s=b=0#个位十位百位g=n%10#356%10=6s=n/10%10#356/10%10=35%10=5b=n/100#356/100=3print("%d%d%d"%(g,s,b))``` 题解列表 2019年11月24日 0 点赞 0 评论 1487 浏览 评分:9.9
拆分位数-题解(C语言代码) #includeintmain(){intn[3],i;//inta,b,c;//intsum=0,x=1;for(i=0;i=0;i--){printf("%d",n[i]-48);}return0;} 题解列表 2019年11月10日 0 点赞 0 评论 1157 浏览 评分:0.0
拆分位数-题解(Python代码) 摘要:只需要简单的切片逆序输出,简单暴力,好像没有什么好讲的,都能看得懂 n=input() x=n[::-1] print(" ".join(x))…… 题解列表 2019年11月10日 0 点赞 0 评论 1555 浏览 评分:9.9
拆分位数-题解(C++代码) 摘要:##### 解题思路: 1.要将输入的一个数字进行逆序输出 ,我们先要对输入的数字 “取余10” 得到它的末位 ,之后 “除以10” 再 “取余10” 得到第二的末位数字 ,以此类推得到它的逆序数字…… 题解列表 2019年10月26日 0 点赞 0 评论 1227 浏览 评分:7.8
拆分位数 (C语言代码) 摘要:参考代码:#include<stdio.h>int main(void){ int n,r; scanf("%d", &n); while (n) …… 题解列表 2019年05月11日 1 点赞 0 评论 1427 浏览 评分:8.0
番5 拆分位数 (C++代码) 摘要:解题思路: c++学习路的第二题,直接cout输出注意事项:参考代码:#include <iostream> using namespace std; int mai…… 题解列表 2019年04月06日 0 点赞 0 评论 1718 浏览 评分:9.9
拆分位数 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] arg…… 题解列表 2019年03月10日 0 点赞 0 评论 1876 浏览 评分:9.0