3 solutions

  • 1
    @ 2025-7-2 15:25:57
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int n;
        cin>>n;
        cout<<n%10<<n%100/10<<n/100;
        return 0;
    }
    
    • 0
      @ 2025-4-12 19:40:40

      #include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; cout<<(n%10)<<((n/10)%10)<<(n/100)<<endl; return 0; }

      • 0
        @ 2024-8-20 14:59:37

        解析

        Python可以用字符串倒序输出来解决,关键代码n[::-1]

        答案

        最终代码如下:

        n=input()
        print(n[::-1])
        
        • 1

        Information

        ID
        25
        Time
        1000ms
        Memory
        256MiB
        Difficulty
        1
        Tags
        # Submissions
        215
        Accepted
        93
        Uploaded By