fork download
  1. #include <iostream>
  2. #include <fstream>
  3. #include <sstream>
  4. #include <string>
  5. using namespace std ;
  6.  
  7. int main()
  8. {
  9. string line ;
  10.  
  11. int noOfVar,noOfCubes ;
  12.  
  13. getline(cin,line) ;
  14. istringstream iss(line) ;
  15. iss >> noOfVar ;
  16.  
  17. getline(cin,line) ;
  18. iss.str(line) ;
  19. iss >> noOfCubes ;
  20.  
  21. cout << noOfCubes ;
  22. cout << noOfVar ;
  23.  
  24. return 0 ;
  25. }
Success #stdin #stdout 0s 3432KB
stdin
6 
4
stdout
46