Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
6527 | 刘逸杭 | 04四位数移位 | C++ | Wrong Answer | 0 MS | 208 KB | 326 | 2025-03-01 20:54:49 |
#include<cstdio> using namespace std; int main(){ int a,b,c,d; //方法1: /* scanf("%1d%1d%1d%1d",&a,&b,&c,&d); printf("%d%d%d%d",d,a,b,c); */ //方法2: /* scanf("%3d%1d",&a,&b); printf("%d%d",b,a); //方法3: */ scanf("%d",&a); printf("%d",a%10*1000+a/10); return 0; }
------Input------
7980
------Answer-----
0798
------Your output-----
798