3 条题解

  • 0
    @ 2024-2-6 21:21:16
    #include<bits/stdc++.h>
    using namespace std;
    
    int main()
    {
        int num,b,g,s;
        cin>>num;
        g=num%10;
        s=num/10%10;
        b=num/100%10%10;
        if(g==0 && s!=0)
        {
            cout<<s<<b;
        }
        else if(g==0 && s==0)
        {
            cout<<b%10;
        }
        else
        {
            cout<<g<<s<<b;
        }
        retrun 0;
    }
    
    • 0
      @ 2023-7-6 17:33:39
      #include<iostream>
      #include<iostream>
      #include<cstdlib>
      using namespace std;
      int main()
      {
      	int y;
      	int x;
      	cin>>x;
      	y=(x/100)+(x/10%10*10)+(x%10*100);
      	cout<<y<<endl; 
      	return 0 ;
      }
      
      • 0
        @ 2023-7-6 15:33:01
        #include<iostream>
        #include<cstdlib>
        using namespace std;
        int main()
        {
        	int y;
        	int x;
        	cin>>x;
        	y=(x/100)+(x/10%10*10)+(x%10*100);
        	cout<<y<<endl; 
        	return 0 ;
        }
        
        • 1

        信息

        ID
        431
        时间
        1000ms
        内存
        64MiB
        难度
        5
        标签
        递交数
        41
        已通过
        16
        上传者