2819: 数字反转 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n,ans = 0; ci…… 题解列表 2024年01月16日 0 点赞 0 评论 249 浏览 评分:9.9
编写题解 2819: 数字反转(while循环)超简单方法! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,f=0; scanf("%d",&n); while(n!=0){ f=f*…… 题解列表 2024年11月10日 2 点赞 0 评论 594 浏览 评分:9.9
对题2819:利用函数倒序输出数字 摘要:解题思路:本题要求将输入的数字倒序之后再输出,如果输入的数为0的话,则输出0;如果输入的为其他数字,则倒序再输出。需要注意的是,如果输入数字像2030400之类的,则输出的为40302,倒序之后如果0…… 题解列表 2024年09月10日 0 点赞 0 评论 482 浏览 评分:9.9
数字反转(不用在意什么样例2,其实就是如果是120,反转了之后就是21) 摘要:参考代码: ```c #include int main() { int n; scanf("%d",&n); int a,k=1,b=0;//a用来存n的每一位 if(n…… 题解列表 2023年09月13日 0 点赞 0 评论 516 浏览 评分:9.9
题解 2819: 数字反转 摘要: #include using namespace std; int main() { int a, ans = 0; …… 题解列表 2023年11月15日 0 点赞 0 评论 344 浏览 评分:9.9
java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年01月12日 0 点赞 0 评论 324 浏览 评分:9.9
2819: 数字反转 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int n, s = 0; cin >> n; while (n) …… 题解列表 2024年01月15日 0 点赞 3 评论 211 浏览 评分:9.9