题解 1866: 三位数反转

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

三位数反转-题解(C++代码)

摘要:# 题解 **以后每周五都会更新一个小程序源代码,敬请期待!** **这个是一个可以翻转所有数字的程序** ```cpp #include using namespace std; in……

三位数反转-题解(Java代码)

摘要: //总是错误50% 原因在这。题目中写道有:多组输入数据 Scanner sc=new Scanner(System.in); while(sc.hasNext()){ int ……

三位数反转

摘要:#include<stdio.h>int main(){int n,a,b,c,t;while(scanf("%d",&n)==1){a=n/100;b=n%100/10;c=n%10;t=c*100……

用字符串进行反转

摘要:```java import java.util.*; public class Main { public static void main(String[] args) { ……

1866: 三位数反转(Python)

摘要:解题思路:注意事项:参考代码:while True:     try:         n = input()         m = n[::-1]         

三位数反转 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int main(){   int a,b,c,n;  ……

1866: 三位数反转

摘要:解题思路:首先,通过scanf函数获取一个整数作为输入,存储在变量n中。然后,将n除以100,得到百位数字,存储在变量a中。使用取余操作获取十位数字,即n % 100,再除以10,得到十位数字,存储在……