Bs problem

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

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.

Options

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

Sample input:_

2 3 5
2 2
1 3 2

Sample output:

5

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1Unihedron ユニ30.01652019/04/17 14:22:210B / 2B / 0B

Ruby2 _

RankUserSizeTimeDateStatistics
1Unihedron ユニ30.08092019/04/17 14:22:460B / 2B / 0B

Python _

RankUserSizeTimeDateStatistics
1mypetlion70.03332019/04/17 00:30:060B / 6B / 0B

Python3 _

RankUserSizeTimeDateStatistics
1mypetlion80.06912019/04/16 01:30:250B / 6B / 2B

PHP _

RankUserSizeTimeDateStatistics
1ZED.CWT10.02242019/04/14 11:43:040B / 1B / 0B
2_10.01682019/04/16 10:37:300B / 1B / 0B

Java _

RankUserSizeTimeDateStatistics
1mypetlion710.04492019/04/17 00:40:140B / 53B / 13B

Brainfuck _

RankUserSizeTimeDateStatistics
1%2050.01042019/04/17 14:35:350B / 0B / 5B
2 Unihedron ユニ50.01052019/04/17 14:36:150B / 0B / 5B
3Unihedron60.01052019/04/17 14:38:490B / 0B / 6B
4Unihedron (cheat)60.01052019/04/17 14:39:100B / 0B / 6B
5mypetlion230.01262019/04/17 00:35:090B / 0B / 23B
6Unihedron ユニ230.01142019/04/17 14:24:270B / 0B / 23B

Befunge _

RankUserSizeTimeDateStatistics
1Unihedron ユニ30.00022019/04/17 14:39:290B / 1B / 2B

Befunge-98 _

RankUserSizeTimeDateStatistics
1Unihedron30.05382019/04/17 14:39:360B / 1B / 2B
2Unihedron ユニ30.00022019/04/17 14:47:180B / 1B / 2B

Pefunge _

RankUserSizeTimeDateStatistics
1Unihedron50.01072019/04/17 14:46:290B / 2B / 3B
2Unihedron ユニ50.01102019/04/17 14:46:580B / 2B / 3B

><> _

RankUserSizeTimeDateStatistics
1Unihedron ユニ30.14782019/04/17 14:23:290B / 2B / 1B

gs2 _

RankUserSizeTimeDateStatistics
1Unihedron ユニ10.05852019/04/17 15:01:520B / 1B / 0B

goruby _

RankUserSizeTimeDateStatistics
1Unihedron ユニ30.06442019/04/17 14:22:330B / 2B / 0B

Language Ranking_

RankLangUserSizeScore
1PHPZED.CWT110000
2gs2Unihedron ユニ110000
3RubyUnihedron ユニ33333
4gorubyUnihedron ユニ33333
5Ruby2Unihedron ユニ33333
6><>Unihedron ユニ33333
7BefungeUnihedron ユニ33333
8Befunge-98Unihedron33333
9Brainfuck%2052000
10PefungeUnihedron52000
11Pythonmypetlion71428
12Python3mypetlion81250
13Javamypetlion71140

return to the top page