Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
68703 彭林江 04四位数移位 C++ Wrong Answer 1 MS 268 KB 264 2024-03-24 13:35:58

Tests(5/8):


Code:

#include<iostream> using namespace std; int main(){ int n; cin >> n; int g = n % 10; // 123 % 10 int s = n / 10 % 10; int b = n / 100 %10; int q = n / 1000 % 10; // 23456/1000=23 cout << g * 1000 + q * 100 + b * 10 + s << endl; return 0; }


Run Info:

------Input------
7980
------Answer-----
0798
------Your output-----
798