1 条题解

  • 0
    @ 2024-12-24 9:54:30

    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

    信息

    ID
    1177
    时间
    1000ms
    内存
    128MiB
    难度
    (无)
    标签
    (无)
    递交数
    0
    已通过
    0
    上传者