java--study||O.o 摘要:参考代码:import java.math.BigInteger; import java.util.Scanner; public class Main { public static…… 题解列表 2024年01月16日 0 点赞 0 评论 514 浏览 评分:9.9
编写题解 2819: 数字反转编写题解 2819: 数字反转编写题解 2819: 数字反转编写题解 2819: 数字反转编写题解 2819: 数字反转 摘要:解题思路:1. 首先定义一个变量 ans 并将其初始化为 0,用于存储反转后的数字。2. 通过循环遍历给定的整数 n,直到 n 变为 0。3. 在循环中,将 ans 左移一位(乘以 10),并加上 n…… 题解列表 2024年01月16日 1 点赞 0 评论 260 浏览 评分:0.0
题解 2819: 数字反转 摘要:解题思路:注意事项:参考代码:#include <iostream>//忘用万能头了using namespace std;int main(){ long long a;//数大,int装不下…… 题解列表 2024年01月16日 1 点赞 0 评论 257 浏览 评分:0.0
1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n; cin>>n; …… 题解列表 2024年01月16日 0 点赞 0 评论 198 浏览 评分:9.9
数字反转 2819: 摘要:解题思路:#include <iostream>using namespace std;int main(){ long long n, s=0; cin>>n; while(n) …… 题解列表 2024年01月16日 0 点赞 0 评论 246 浏览 评分:0.0
2819: 数字反转 摘要:解题思路:注意事项:参考代码:include <bits/stdc++.h>using namespace std;int main(){ long long n=0,a,b,sum=0;//s…… 题解列表 2024年01月16日 0 点赞 0 评论 272 浏览 评分:0.0
2819: 数字反转 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int n,h = 0; cin>>n; whil…… 题解列表 2024年01月16日 0 点赞 1 评论 190 浏览 评分:2.0
分离整数的各个数位 2818 摘要:解题思路:#include <iostream>using namespace std;int main(){ long long n; cin>>n; while(n) { …… 题解列表 2024年01月16日 0 点赞 0 评论 235 浏览 评分:0.0
题解 2818: 分离整数的各个数位 摘要:解题思路:首先读取输入的整数 n。使用循环,当 n 不为 0 时执行以下步骤。在循环中,将 n 对 10 取余数,得到当前的个位数字。输出该数字,并在后面加上一个空格。将 n 除以 10,去掉已经处理…… 题解列表 2024年01月16日 0 点赞 0 评论 361 浏览 评分:6.0
题解 2818: 分离整数的各个数位(十分硬核) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ long long n; cin>>n; whil…… 题解列表 2024年01月16日 0 点赞 0 评论 242 浏览 评分:0.0