题解 1866: 三位数反转

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

筛选

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

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

三位数反转

摘要:解题思路:注意事项:参考代码:while True:    try:        num = int(input())        a = num % 10        b=num//10%10……

编写题解 1866: 三位数反转

摘要:解题思路:注意事项:参考代码:import java.util.*;public class Main {    public static void main(String[] args) {   ……

三位数反转 (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 <<……

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

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