题解 1866: 三位数反转

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

筛选

三位数反转顶位有无零方法

摘要:解题思路:将一个的百位、十位、个位分别求出,并判断十位与个位是否为零并将其逆序输出。注意事项:顶位可能为零。这道题并不要求顶位不能为零!参考代码:一、顶位不出现零:1.装逼式方法#include<st……

1866: 三位数反转

摘要:解题思路:这题有多行输入,可能会造成错误注意事项:参考代码:while True:    try:        a = list(input())        b = a[::-1]       ……

1866: 三位数反转

摘要:解题思路:切片注意事项:参考代码:while True:    try:        a = input()        print(a[::-1])    except:        brea……

2025.7.19刷题记录

摘要:解题思路:通过while循环实现多组数据的输入 循环条件为 scanf("%d",&num)!=EOF 取出个位数十位数百位数就可以了注意事项:当scanf输入的数据和规定……

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

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

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

摘要:解题思路:注意事项:参考代码:简单点#include<iostream>using namespace std;int main(){ int n; while (cin >> n) cout <<……