fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n , a , b , c , s;
  6. cin >> n;
  7. a = n / 100;
  8. b = ( n / 10 ) % 10;
  9. c = n % 10;
  10. s = c*11 + b*1100 + a*110000;
  11. cout << s;
  12. return 0;
  13. }
Success #stdin #stdout 0s 15232KB
stdin
123
stdout
112233