Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
147069 赵奕杰 06变换四位数 C++ Accepted 1 MS 268 KB 194 2026-02-02 16:45:27

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int a,b,c,d; int main(){ scanf("%1d%1d%1d%1d",&a,&b,&c,&d); if (b>0) printf("%d%d%d%d",b,a,d,c); else printf("%d%d%d",a,d,c); return 0; }