1 solutions

  • 0
    @ 2024-11-2 11:27:53
    #include<stdio.h>
    int main(){
    	int a,i=0,j,t;
    	scanf("%d",&a);
    	t=a;
    	if(a<0) a=-a;
    	while(a>0){
    		i*=10;
    		i+=a%10;
    		a/=10;
    	}
    	if(t<0) i=-i; 
    	printf("%d",i);
    }
    
    
    • 1

    Information

    ID
    525
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    7
    Tags
    (None)
    # Submissions
    18
    Accepted
    9
    Uploaded By