Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
536 张弛 倒序输出一个四位整数 C++ Accepted 100 0 MS 252 KB 226 2019-09-20 22:11:27

Tests(9/9):


#include<iostream> int main(){ int a,b,c,d,e,f; scanf("%d",&a); b=a/1000; c=a/100%10*10; d=a/10%100%10*100; e=a%1000%100%10*1000; f=b+c+d+e; printf("%.4d",f); return 0; }


Judgement Protocol: