Concatenation of files

Given two files:
  1. names.txt which contains the first names of the customers,
  1. surnames.txt which contains the surnames of those people in the same order,
You are asked to merge those files and create a new one named fullnames.txt which would contain the names and the surnames separated by a space. It’s guaranteed that the names.txt and the surnames.txt contain the same number of lines.
names.txt
surnames.txt
fullnames.txt
Arthur Anna
Brown Black
Arthur Brown Anna Black
 

Constraints

Time limit: 2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue