6 条题解

  • 1
    @ 2022-10-29 10:20:35

    #include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int ge,shi,bai,num; bai=n/100; ge=n%10; shi=(n-bai100-ge)/10; num=ge100+shi*10+bai; cout<<num; return 0; }

    • 0
      @ 2023-11-30 18:39:36

      快得飞起

      #include<bits/stdc++.h>
      using namespace std;
      int main(){
      	cout<<(getchar()^'0')+(getchar()^'0')*10+(getchar()^'0')*100;
      	return 0;
      }
      
      • 0
        @ 2023-11-5 16:05:54

        #include<bits/stdc++.h> using namespace std; int main(){ int a,s,d; cin>>a; s=a/100; d=a%10; cout<<a+99d-99s; }

        • 0
          @ 2023-5-27 11:14:57
          #include<bits/stdc++.h> 
          using namespace std;
          int main(){
          	int n;
          	cin>>n;
          	if(n%100%10==0){
          	cout<<n/10%10<<n/100;
          	}else{
          	cout<<n%100%10<<n/10%10<<n/100;	
          	}
          	return 0;
          }
          
          • 0
            @ 2023-3-2 21:12:45

            #include<bits/stdc++.h> using namespace std; int main() { int x,a,s,d,f; cin>>x; a=x/100; s=x/10%10; d=x%10; x=a100+10s+d1; f=100d+10s+1a; cout<<f<<endl; return 0; }

            • 0
              @ 2022-7-29 13:02:02
              #include<bits/stdc++.h> 
              using namespace std;
              int main(){
              	int n;
              	cin>>n;
              	if(n%100%10==0){
              	cout<<n/10%10<<n/100;
              	}else{
              	cout<<n%100%10<<n/10%10<<n/100;	
              	}
              	return 0;
              }
              
              • 1

              【入门】输入一个三位数,把个位和百位对调后输出

              信息

              ID
              21
              时间
              1000ms
              内存
              16MiB
              难度
              2
              标签
              递交数
              149
              已通过
              93
              上传者