Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7222 刘逸杭 04四位数移位 C++ Accepted 0 MS 212 KB 330 2025-04-05 19:59:12

Tests(8/8):


Code:

#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; }