Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
B made a question for A:
There is an array A with length n, and an array B with length m. By choosing a number from A and a number from B and adding them, the number n*m results. He wants to know the kth number of the numbers that have this result. The index starts at 1.
A does not know how to solve this problem, so he let you solve it.
Three integers(n, m, and k) are inputted on the first line. They represent the length of A and B, and the "kth" that A wants to know.
On the second line, there are n integers, where the "i-th" number of the line represents the ith index of A.
On the third line, there are m integers, where the "i-th" number of the line represents the ith index of B.
Print an integer in a line, which is the answer.
exec is denied
rejudge feature is enabled
6day(s) and 2:25:24 before deadline (04/27 14:02:48 JST), all source codes will be revealed after the deadline
2 3 5
1 3 2
|1||ZED.CWT||1||0.0224||2019/04/14 11:43:04||0B / 1B / 0B|
|2||_||1||0.0168||2019/04/16 10:37:30||0B / 1B / 0B|
return to the top page