Given two numbers represented by two different arrays **A** and **B**. The task is to find the sum array. The sum array is an array representation of addition of two input arrays.

**Input:**

The first line of input contains an integer T denoting the number of test cases. The first line of each test case contains two integers **N** and **M** separated by a space denoting the size of A and B respectively. The second line of each test case contains N elements and next line contains M elements.

**Output:**

Output the sum array.

**Constraints:**

1 ≤ T ≤ 100

1 ≤ N ≤ M ≤ 10^{6}

0 ≤ A_{i}, B_{i}≤ 9

**Example:
Input:**

2

3 3

5 6 3

8 4 2

6 4

2 2 7 5 3 3

4 3 3 8

**Output:**

1 4 0 5

2 3 1 8 7 1

**Explanation:
Testcase 2:** Sum of each elements of both arrays A and B gives an array equals 2, 3, 1, 8, 7, 1.

If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.

the_coder95 | 465 |

thanuvinu94 | 384 |

ShivayLamba | 256 |

adityasuman2025 | 249 |

PrakharBansal1 | 236 |

the_coder95 | 1691 |

RishabhTanwar1 | 1110 |

thanuvinu94 | 1060 |

samay_kam_hai | 724 |

themanhasnoname | 620 |

blackshadows | 5331 |

Ibrahim Nash | 5219 |

akhayrutdinov | 5111 |

mb1973 | 4897 |

Quandray | 4547 |

Login to report an issue on this page.