fork(2) download
  1. #include<iostream>
  2. #include<cstdio>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int n,m;
  8. scanf("%d%d", &n, &m);
  9. const int max=1005;
  10. char t1[max], t2[max];
  11. gets(t1);
  12. gets(t2);
  13. printf("%s\n%s", t1, t2);
  14. return 0;
  15. }
Success #stdin #stdout 0s 2744KB
stdin
3 5
abc
xaybz
stdout
abc