题解 1866: 三位数反转

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

筛选

三位数反转

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

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

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

1866: 三位数反转

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

1866: 三位数反转

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

1866: 三位数反转

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<bits/stdc++.h> using namespace std; int main() {    ……

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

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

三位数反转

摘要:解题思路:注意事项:参考代码: #includeint main(){    int a;    while(scanf("%d\n",&a)!=EOF){    int o,p,q;    o=a/……

题解 1866: 三位数反转(C代码)

摘要:解题思路:注意审题,输出3个整数(看着是n的倒叙数,但是并不是,而是3个整数挨着)注意事项:加题干中的判断条件,注意只要输入有效就可以一直输出,而不是只能输入一次用while (~scanf("%d"……

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

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