#K15891. Total Stamps by Country
Total Stamps by Country
Total Stamps by Country
You are given a number of test cases T. In each test case, there is an integer C representing the number of countries, followed by C lines each containing a country name and the number of stamps Bob has from that country.
Your task is to read the input from stdin, process each test case, and output for each entry the country name followed by the corresponding number of stamps. The output should list the results in the same order as they are provided in the input.
Formally, if a test case contains an integer C and C lines of the form:
then you should output each line as it is read. All outputs from all test cases should be printed sequentially.
inputFormat
The first line of input contains an integer T representing the number of test cases.
For each test case, the first line contains an integer C representing the number of country entries. This is followed by C lines, each line containing a string (the country name) and an integer (the number of stamps), separated by space.
For example:
2 3 USA 100 Canada 150 Mexico 200 2 Japan 300 SouthKorea 400
outputFormat
Output the country and the number of stamps for each entry in the same order they are provided in the input. Each output should be on its own line.
For the sample input above, the output will be:
USA 100 Canada 150 Mexico 200 Japan 300 SouthKorea 400## sample
1
3
USA 100
Canada 150
Mexico 200
USA 100
Canada 150
Mexico 200
</p>