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
3Erik the Outgolfer70.06392020/11/14 08:50:540B / 6B / 0B

Python3 _

RankUserSizeTimeDateStatistics
1mypetlion80.06912019/04/16 01:30:250B / 6B / 2B
2domperor80.11122019/04/23 18:01:250B / ?B / ?B
3Erik the Outgolfer80.15342020/11/14 08:51:030B / 6B / 2B

PHP _

RankUserSizeTimeDateStatistics
1ZED.CWT10.02242019/04/14 11:43:040B / 1B / 0B
2_10.01682019/04/16 10:37:300B / 1B / 0B
3Erik the Outgolfer10.09892020/11/14 08:55:110B / 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
2#c0ffee :((80.02992025/01/30 20:44:550B / ?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
2Erik the Outgolfer20.05162020/11/14 08:53:070B / 1B / 1B

K _

RankUserSizeTimeDateStatistics
1pooq50.01422021/04/13 15:21:340B / ?B / ?B

Jelly _

RankUserSizeTimeDateStatistics
1pooq10.14912021/03/22 06:12:560B / ?B / ?B
2Erik the Outgolfer10.15542021/05/19 16:57:030B / 1B / 0B

iogii _

RankUserSizeTimeDateStatistics
1#c0ffee :((10.02082025/01/30 20:44:130B / ?B / ?B

C _

RankUserSizeTimeDateStatistics
1Erik the Outgolfer180.02222020/11/14 08:52:190B / 9B / 9B

Java _

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

Chapel _

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

gnuplot _

RankUserSizeTimeDateStatistics
1pooq40.02322021/04/03 11:47:050B / ?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

Bash _

RankUserSizeTimeDateStatistics
1Erik the Outgolfer60.01452020/11/14 08:51:190B / 5B / 0B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1Erik the Outgolfer60.01442020/11/14 08:55:290B / 5B / 0B

Zsh _

RankUserSizeTimeDateStatistics
1Erik the Outgolfer40.01452020/11/14 08:53:250B / 1B / 3B

bc _

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

dc _

RankUserSizeTimeDateStatistics
1pooq20.01082019/10/15 09:34:370B / ?B / ?B
2Erik the Outgolfer20.01422020/11/14 08:52:500B / 2B / 0B
3#c0ffee ( sorry )20.01372024/10/03 16:31:560B / ?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
7#c0ffee ( sorry )50.01382024/10/03 16:31:460B / ?B / ?B
8#c0ffee50.01462024/12/08 17:45:180B / ?B / ?B

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
2Erik the Outgolfer30.09012020/11/14 08:51:100B / 2B / 1B

GolfScript _

RankUserSizeTimeDateStatistics
1Erik the Outgolfer20.01962020/11/14 08:49:110B / 1B / 1B

gs2 _

RankUserSizeTimeDateStatistics
1Unihedron ユニ10.05852019/04/17 15:01:520B / 1B / 0B
2Erik the Outgolfer10.09792020/11/14 08:55:180B / 1B / 0B

FlogScript _

RankUserSizeTimeDateStatistics
1pooq20.02762021/04/04 19:28:380B / ?B / ?B

Burlesque _

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

FerNANDo _

RankUserSizeTimeDateStatistics
1Erik the Outgolfer190.07792020/11/14 08:51:320B / 10B / 0B

Unlambda _

RankUserSizeTimeDateStatistics
1pooq40.01662021/05/24 19:18:430B / ?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

Scala _

RankUserSizeTimeDateStatistics
1pooq81.40702021/04/03 01:36:390B / ?B / ?B

Language Ranking_

RankLangUserSizeScore
1PHPZED.CWT110000
2gs2Unihedron ユニ110000
3jqpooq110000
4m4tails110000
5Jellypooq110000
6iogii#c0ffee :((110000
7BASICpooq25000
8bcpooq25000
9Burlesquepooq25000
10Euphoria25000
11dcpooq25000
12GolfScriptErik the Outgolfer25000
13FlogScriptpooq25000
14RubyUnihedron ユニ33333
15gorubyUnihedron ユニ33333
16Ruby2Unihedron ユニ33333
17><>Unihedron ユニ33333
18BefungeUnihedron ユニ33333
19Befunge-98Unihedron33333
20Labyrinthpooq33333
21Crystalpooq33333
22Hexagonypooq33333
23Forthpooq33333
24Postscriptpooq33333
25DOSMcBusLuck42500
26z80McBusLuck42500
27Arcpooq42500
28Xtalpooq42500
29ZshErik the Outgolfer42500
30gnuplotpooq42500
31Unlambdapooq42500
32Brainfuck%2052000
33PefungeUnihedron52000
34REXXpooq52000
35Kpooq52000
36Rpooq61666
37Clojurepooq61666
38Tclpooq61666
39Iopooq61666
40Octavepooq61666
41BashErik the Outgolfer61666
42Bash (builtins)Erik the Outgolfer61666
43Pythonmypetlion71428
44Vimpocke71428
45Python3mypetlion81250
46Squirrelpooq81250
47JavaScriptpooq81250
48Scalapooq81250
49Chapelpooq91111
50CErik the Outgolfer18555
51FerNANDoErik the Outgolfer19526
52Javamypetlion71140

return to the top page