题解 2818: 分离整数的各个数位 摘要:解题思路:首先读取输入的整数 n。使用循环,当 n 不为 0 时执行以下步骤。在循环中,将 n 对 10 取余数,得到当前的个位数字。输出该数字,并在后面加上一个空格。将 n 除以 10,去掉已经处理…… 题解列表 2024年01月16日 0 点赞 0 评论 165 浏览 评分:6.0
2818 while解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; int x,y; scanf("%d",&a); x=a; whil…… 题解列表 2024年10月19日 0 点赞 0 评论 125 浏览 评分:0.0
旧物有情 #2818: 分离整数的各个数位 字符串翻转法 和 模拟法 摘要:[TOC] 这道题目的数据范围比较弱,不存在类似于10000 这种需要我们考虑前导0的问题 不过大家可以思考一下如何去除前导0 # 字符串翻转法 ``` #include u…… 题解列表 2024年10月17日 0 点赞 0 评论 103 浏览 评分:0.0
2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:n = str(input())for i in range(len(n)-1,-1,-1): print(n[i],end=" ")…… 题解列表 2024年07月30日 0 点赞 0 评论 164 浏览 评分:0.0
编写题解 2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){long long a; cin>>a;while(a){co…… 题解列表 2024年05月26日 0 点赞 0 评论 135 浏览 评分:0.0
分离整数的各个数位 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; while(…… 题解列表 2023年07月12日 0 点赞 0 评论 116 浏览 评分:0.0
编写题解 2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:n=input()for i in range(len(n)-1,-1,-1): print(n[i],end=' ')…… 题解列表 2024年03月02日 0 点赞 0 评论 125 浏览 评分:0.0
题解 2818: 分离整数的各个数位 c++ 摘要:解题思路:自己想注意事项:别抄我的,抄我的人我诅咒他电脑10秒关机参考代码:#include<bits/stdc++.h>#include<windows.h>using namespace std;…… 题解列表 2024年02月26日 0 点赞 0 评论 197 浏览 评分:0.0
编写题解 2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n; cin>>n; …… 题解列表 2024年02月26日 0 点赞 0 评论 127 浏览 评分:0.0