fork download
  1. #include <algorithm>
  2. #include <iterator>
  3. #include <iostream>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. copy(istreambuf_iterator<char>(cin),
  9. istreambuf_iterator<char>(),
  10. ostreambuf_iterator<char>(cout));
  11. return 0;
  12. }
Success #stdin #stdout 0s 2900KB
stdin
2 3 4
5 6 7
8 9 10
stdout
2 3 4
5 6 7
8 9 10