#P1631. 序列合并
序列合并
Description
There are two length- non-decreasing sequences . Taking one number from and one number from and adding them yields sums. Find the smallest sums among these sums.
Input Format
The first line contains a positive integer .
The second line contains integers .
The third line contains integers .
Output Format
Output one line with integers, from smallest to largest, representing these smallest sums.
3
2 6 6
1 4 8
3 6 7
Hint
For of the testdata, .
For of the testdata, , .
Translated by ChatGPT 5
京公网安备 11011102002149号