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

now post-mortem time, all source codes will be revealed

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
2domperor30.13792019/04/23 18:05:290B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1mypetlion70.03332019/04/17 00:30:060B / 6B / 0B
2test70.04772019/04/25 17:06:340B / 6B / 0B

Python3 _

RankUserSizeTimeDateStatistics
1mypetlion80.06912019/04/16 01:30:250B / 6B / 2B
2domperor80.11122019/04/23 18:01:250B / ?B / ?B

PHP _

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

Arc _

RankUserSizeTimeDateStatistics
1pooq40.67892019/08/08 11:22:030B / ?B / ?B

Clojure _

RankUserSizeTimeDateStatistics
1pooq60.59792019/08/10 05:27:130B / ?B / ?B

Io _

RankUserSizeTimeDateStatistics
1pooq60.05012019/09/06 04:06:560B / ?B / ?B

JavaScript _

RankUserSizeTimeDateStatistics
1pooq80.02582019/10/09 06:45:180B / ?B / ?B

Tcl _

RankUserSizeTimeDateStatistics
1pooq60.01312019/08/19 11:19:150B / ?B / ?B

Xtal _

RankUserSizeTimeDateStatistics
1pooq40.01272019/08/08 17:17:390B / ?B / ?B

Crystal _

RankUserSizeTimeDateStatistics
1pooq30.00022019/08/12 18:02:410B / ?B / ?B

REXX _

RankUserSizeTimeDateStatistics
1pooq50.01082019/08/28 18:47:520B / ?B / ?B

Squirrel _

RankUserSizeTimeDateStatistics
1pooq80.00012019/08/04 07:50:060B / ?B / ?B

Forth _

RankUserSizeTimeDateStatistics
1pooq30.01112019/08/15 13:16:430B / ?B / ?B

BASIC _

RankUserSizeTimeDateStatistics
1pooq20.02832019/07/16 15:40:460B / ?B / ?B

Java _

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

Chapel _

RankUserSizeTimeDateStatistics
1pooq90.01242019/08/11 10:39:420B / ?B / ?B

Octave _

RankUserSizeTimeDateStatistics
1pooq60.12892019/09/07 10:43:590B / ?B / ?B

Euphoria _

RankUserSizeTimeDateStatistics
1_20.01172019/08/13 12:46:210B / ?B / ?B

jq _

RankUserSizeTimeDateStatistics
1pooq10.01052019/07/16 01:52:280B / ?B / ?B

bc _

RankUserSizeTimeDateStatistics
1pooq20.01082019/07/24 04:45:490B / ?B / ?B

dc _

RankUserSizeTimeDateStatistics
1pooq20.01082019/10/15 09:34:370B / ?B / ?B

m4 _

RankUserSizeTimeDateStatistics
1tails10.02322019/07/16 02:08:510B / 1B / 0B

Postscript _

RankUserSizeTimeDateStatistics
1pooq30.07082019/10/06 06:13:360B / ?B / ?B

R _

RankUserSizeTimeDateStatistics
1pooq60.10502019/07/27 13:01:010B / ?B / ?B

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

Labyrinth _

RankUserSizeTimeDateStatistics
1pooq30.05242019/08/05 21:34:470B / ?B / ?B

Hexagony _

RankUserSizeTimeDateStatistics
1pooq30.02052019/08/13 10:26:260B / ?B / ?B

><> _

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

gs2 _

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

Burlesque _

RankUserSizeTimeDateStatistics
1pooq20.01322019/08/03 07:55:220B / ?B / ?B

z80 _

RankUserSizeTimeDateStatistics
1McBusLuck40.00012019/07/27 17:05:481B / 2B / 1B

DOS _

RankUserSizeTimeDateStatistics
1McBusLuck42.73422019/05/18 05:39:472B / ?B / ?B

Vim _

RankUserSizeTimeDateStatistics
1pocke70.00992019/09/26 12:59:050B / 7B / 0B

goruby _

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

Language Ranking_

RankLangUserSizeScore
1PHPZED.CWT110000
2gs2Unihedron ユニ110000
3jqpooq110000
4m4tails110000
5BASICpooq25000
6bcpooq25000
7Burlesquepooq25000
8Euphoria25000
9dcpooq25000
10RubyUnihedron ユニ33333
11gorubyUnihedron ユニ33333
12Ruby2Unihedron ユニ33333
13><>Unihedron ユニ33333
14BefungeUnihedron ユニ33333
15Befunge-98Unihedron33333
16Labyrinthpooq33333
17Crystalpooq33333
18Hexagonypooq33333
19Forthpooq33333
20Postscriptpooq33333
21DOSMcBusLuck42500
22z80McBusLuck42500
23Arcpooq42500
24Xtalpooq42500
25Brainfuck%2052000
26PefungeUnihedron52000
27REXXpooq52000
28Rpooq61666
29Clojurepooq61666
30Tclpooq61666
31Iopooq61666
32Octavepooq61666
33Pythonmypetlion71428
34Vimpocke71428
35Python3mypetlion81250
36Squirrelpooq81250
37JavaScriptpooq81250
38Chapelpooq91111
39Javamypetlion71140

return to the top page