分离整数的各个数位(两种解法) 摘要:1亿还是比较小的数,简单点用long long即可 代码如下: \#include using namespace std; int main() { long long n; ci…… 题解列表 2023年03月23日 0 点赞 0 评论 157 浏览 评分:0.0
旧物有情 #2818: 分离整数的各个数位 字符串翻转法 和 模拟法 摘要:[TOC] 这道题目的数据范围比较弱,不存在类似于10000 这种需要我们考虑前导0的问题 不过大家可以思考一下如何去除前导0 # 字符串翻转法 ``` #include u…… 题解列表 2024年10月17日 0 点赞 0 评论 193 浏览 评分: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 评论 226 浏览 评分:0.0
编写题解 2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n; cin>>n; …… 题解列表 2024年02月26日 0 点赞 0 评论 208 浏览 评分:0.0
题解 2818: 分离整数的各个数位(十分硬核) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ long long n; cin>>n; whil…… 题解列表 2024年01月16日 0 点赞 0 评论 102 浏览 评分:0.0
2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long a; cin>>a; …… 题解列表 2024年01月16日 0 点赞 0 评论 105 浏览 评分:0.0
题解 2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long a; cin>>a; …… 题解列表 2024年01月16日 0 点赞 0 评论 138 浏览 评分:0.0
2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { string str; cin>>st…… 题解列表 2024年01月02日 0 点赞 0 评论 286 浏览 评分:0.0
2818: 分离整数的各个数位 摘要:``` #include using namespace std; int main(){ int a,b=0; cin>>a; if( a%10==0 ){ a=a/10; …… 题解列表 2023年11月13日 0 点赞 0 评论 178 浏览 评分:0.0
2818: 分离整数的各个数位(for循环) 摘要:``` #include using namespace std; int main(){ int a,b=0; cin>>a; for( int i=1;;i++ ){ b=…… 题解列表 2023年11月13日 0 点赞 0 评论 155 浏览 评分:0.0