fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. const int TEN = 10;
  5.  
  6. int main() {
  7. int no, discountCode;
  8. cin >> no >> discountCode;
  9. const int COPY_NO = no;
  10. while (no > 0) {
  11. discountCode *= TEN;
  12. no /= TEN;
  13. }
  14. cout << discountCode + COPY_NO << " " << (discountCode + COPY_NO) * 2;
  15. return 0;
  16. }
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
-1612380153 1070206990