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