#include <iostream> using namespace std; int main() { int n; cin >> n; // 计算每一位数字 int units = n; int tens = n + 1; int hundreds = n + 2; int thousands = n + 3; int tenThousands = n + 4; // 组合成五位数 int fiveDigit = tenThousands * 10000 + thousands * 1000 + hundreds * 100 + tens * 10 + units; cout << fiveDigit << endl; return 0; } /************************************************************** Problem: 1621 User: fuyijun Language: C++ Result: Accepted Time:7 ms Memory:2072 kb ****************************************************************/