2 solutions

  • 1
    @ 2025-9-21 16:26:31
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int n,g,s,b,q;
        cin>>n;
        g=n%10;
        s=n/10%10;
        b=n/100;
        cout<<g*100+s*10+b;
    	return 0;
    }
    
    
    
    • -1
      @ 2026-4-1 11:59:39
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
      	int n;
      	cin>>n;
      	while(n){
      		int t=n%10;
      		if(t) cout<<t;
      		n/=10;
      	}
      	return 0;
      }
      
      • 1

      Information

      ID
      2821
      Time
      1000ms
      Memory
      64MiB
      Difficulty
      1
      Tags
      # Submissions
      100
      Accepted
      60
      Uploaded By