此题目来源于LZOI
#include <iostream> using namespace std; int main() { int n; cin >> n; int hundreds = n / 100; int tens = (n / 10) % 10; int ones = n % 10; int transformed = ones * 100 + tens * 10 + hundreds; cout << transformed << endl; return 0; }
标签:10,数字,变形,hundreds,int,ones,tens,100 From: https://www.cnblogs.com/Dreamin0910/p/17625311.html