2 solutions

  • 0
    @ 2026-6-10 17:52:38
    #include <bits/stdc++.h>
    using namespace std;
    int main(){ 
    	char a,b,c;
        cin>>a>>b>>c;
        cout<<c<<b<<a;
    	return 0;
    }
    

    最简单方法,没有之一。

    • 0
      @ 2025-12-17 17:57:44

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

      • 1

      Information

      ID
      1271
      Time
      1000ms
      Memory
      128MiB
      Difficulty
      8
      Tags
      # Submissions
      18
      Accepted
      6
      Uploaded By