2 solutions

  • 0
    @ 2025-8-21 15:55:40
    #include<bits/stdc++.h>
    using namespace std;
    int n;
    int main(){
    	cin>>n;
    	int res=0;
    	while(n){
    		
    		int ge=n%10;
    		res=res*10+ge;
    		n/=10;
    		 
    	}
    	cout<<res;
    	
    	return 0;
    }
    

    Information

    ID
    868
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    213
    Accepted
    75
    Uploaded By