Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
68463 周奕辰 06变换四位数 C++ Accepted 0 MS 268 KB 263 2024-03-23 14:34:52

Tests(10/10):


Code:

#include<iostream> #include <cstdio> using namespace std; int main(){ int a,b,c,d; scanf("%1d%1d%1d%1d",&a,&b,&c,&d); if(b==0) { cout << a << d << c; } else { cout << b << a << d << c; } return 0; }