题解 1866: 三位数反转

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

筛选

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

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

1866: 三位数反转

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

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

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

三位数反转 (C语言代码)

摘要:解题思路:    循环分离各位数。参考代码:#include<stdio.h> int main() {     int i, n, a[3] = {0};          while……