题解 2818: 分离整数的各个数位 c++ 摘要:解题思路:自己想注意事项:别抄我的,抄我的人我诅咒他电脑10秒关机参考代码:#include<bits/stdc++.h>#include<windows.h>using namespace std;…… 题解列表 2024年02月26日 0 点赞 0 评论 329 浏览 评分:0.0
编写题解 2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:n=input()for i in range(len(n)-1,-1,-1): print(n[i],end=' ')…… 题解列表 2024年03月02日 0 点赞 0 评论 237 浏览 评分: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 评论 251 浏览 评分:0.0
2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:n = str(input())for i in range(len(n)-1,-1,-1): print(n[i],end=" ")…… 题解列表 2024年07月30日 0 点赞 0 评论 281 浏览 评分:0.0
旧物有情 #2818: 分离整数的各个数位 字符串翻转法 和 模拟法 摘要:[TOC] 这道题目的数据范围比较弱,不存在类似于10000 这种需要我们考虑前导0的问题 不过大家可以思考一下如何去除前导0 # 字符串翻转法 ``` #include u…… 题解列表 2024年10月17日 0 点赞 0 评论 211 浏览 评分:0.0
2818 while解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; int x,y; scanf("%d",&a); x=a; whil…… 题解列表 2024年10月19日 0 点赞 0 评论 264 浏览 评分:0.0
2025/8/1刷题记录 摘要:解题思路:通过%10取出个位数 通过/10消除个位数注意事项:参考代码:#include<stdio.h>int main(){ //y记录最后一位数字 …… 题解列表 2025年08月01日 0 点赞 0 评论 34 浏览 评分:0.0
分离整数的各个数位 摘要:解题思路:注意事项:参考代码:#include <stdio.h>void func(long long n);int main() { long long a; scanf("%lld", &a…… 题解列表 2023年07月24日 0 点赞 0 评论 208 浏览 评分:0.0
分离整数的各个数位(两种解法) 摘要:1亿还是比较小的数,简单点用long long即可 代码如下: \#include using namespace std; int main() { long long n; ci…… 题解列表 2023年03月23日 0 点赞 0 评论 198 浏览 评分:0.0