27 条题解

  • -5
    @ 2022-8-26 10:31:19

    #include using namespace std; int main(){ int n; cin>>n; int ge=n%10; int shi=n/10%10; int bai=n/100; cout<<ge<<shi<<bai; }

    • -5
      @ 2022-8-24 21:19:28
      #include <bits/stdc++.h>
      
      using namespace std;
      
      int main(void)
      {
      	int a;
      
      	cin >> a;
      
      	int x, y, z;
      
      	x = a % 100 % 10;
      	y = (a % 100 - x) / 10;
      	z = (a - y * 10 - x) / 100;
      
      	cout << x << y << z;
      
      	return 0;
      }
      
      • -5
        @ 2022-8-13 19:05:23
        #include <iostream>
        #include <algorithm>
        #include <cstdio>
        #include <cstring>
        #include <string>
        #include <iomanip>
        #include <cmath>
        #include <queue>
        #include <map>
        #include <stack>
        #include <vector>
        using namespace std;
        #define long long LL
        const int N = 1e6+6;
        const int INF = 0x3f3f3f3f;
        int main(){
            string s;
            cin >> s;
            for (int i = 2;i>=0;i--){
                cout << s[i];
            }
            return 0;
        }
        
        • -5
          @ 2022-7-2 8:20:15
          /*****************************************
          备注:
          ******************************************/
          #include <queue>
          #include <math.h>
          #include <stack>
          #include <stdio.h>
          #include <iostream>
          #include <vector>
          #include <iomanip>
          #include <string.h>
          #include <algorithm>
          using namespace std;
          #define LL long long
          const int N = 1e5 + 10;
          const int INF = 0x3f3f3f3f;
          int main(){
          	int n;
          	cin>>n;
          	int ge=n%10;
          	int shi=n/10%10;
          	int bai=n/100;
          	cout<<ge<<shi<<bai;
          	return 0;
          }
          • -5
            @ 2022-4-24 14:39:45

            #include #include using namespace std; int main() { int a,b,c,d; cin>>d; a=d/100; b=d%100/10; c=d%10; cout<<c100+b10+a; return 0; }

            • -5
              @ 2022-1-24 9:32:51
              #include <stdio.h>
              #include <iostream>
              using namespace std;
              int main()
              {
              	int a;
              	cin >> a;
              	int b,g,s;
              	g = a%10;
              	b = a/100;
              	s = (a/10)%10;
              	// int t = s;
              	// s = t%10;
              	// s = s%10;
              	cout << g  << s  << b << endl;
              
              }
              
              • -7
                @ 2022-10-17 17:31:29
                #include <iostream>
                using namespace std;
                int main()
                {
                  int n,a,b,c;
                  cin>>n;
                  a=n%10;
                  b=n/10%10;
                  c=n/100;
                  cout<<a<<b<<c<<endl; 
                  return 0;
                }
                

                信息

                ID
                837
                时间
                1000ms
                内存
                128MiB
                难度
                5
                标签
                递交数
                1889
                已通过
                714
                上传者