1 solutions

  • 0
    @ 2025-11-5 17:51:04

    C :

    #include <stdio.h>
    #include <stdlib.h>
    
    /* run this program using the console pauser or add your own getch, system("pause") or input loop */
    
    int main(int argc, char *argv[]) {
        int a;
    	scanf("%d",&a);
    	printf("%d",a%10*10000+(a%100-a%10)*100+a%1000-a%100+(a%10000-a%1000)/100+(a-a%10000)/10000);
    	return 0;
    }
    

    C++ :

    #include <iostream>
    #include <cstdio>
    using namespace std;
    int main()
    {
    	int n;
    	cin>>n;
    	do
    	{
    		cout<<n%10;
    		n=n/10;
    	}while(n!=0);
    	return 0;
    }
    
    • 1

    Information

    ID
    18626
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    (None)
    # Submissions
    0
    Accepted
    0
    Uploaded By