Bs problem
Submit
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
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 4 | 0.6789 | 2019/08/08 11:22:03 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 6 | 0.5979 | 2019/08/10 05:27:13 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 6 | 0.0501 | 2019/09/06 04:06:56 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 8 | 0.0258 | 2019/10/09 06:45:18 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 6 | 0.0131 | 2019/08/19 11:19:15 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 4 | 0.0127 | 2019/08/08 17:17:39 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 3 | 0.0002 | 2019/08/12 18:02:41 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 5 | 0.0108 | 2019/08/28 18:47:52 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 8 | 0.0001 | 2019/08/04 07:50:06 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 3 | 0.0111 | 2019/08/15 13:16:43 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 5 | 0.0142 | 2021/04/13 15:21:34 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 9 | 0.0124 | 2019/08/11 10:39:42 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 4 | 0.0232 | 2021/04/03 11:47:05 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 6 | 0.1289 | 2019/09/07 10:43:59 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | _ | 2 | 0.0117 | 2019/08/13 12:46:21 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 1 | 0.0105 | 2019/07/16 01:52:28 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 2 | 0.0108 | 2019/07/24 04:45:49 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 3 | 0.0708 | 2019/10/06 06:13:36 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 6 | 0.1050 | 2019/07/27 13:01:01 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 3 | 0.0524 | 2019/08/05 21:34:47 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 3 | 0.0205 | 2019/08/13 10:26:26 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 2 | 0.0276 | 2021/04/04 19:28:38 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 2 | 0.0132 | 2019/08/03 07:55:22 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 4 | 0.0166 | 2021/05/24 19:18:43 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 8 | 1.4070 | 2021/04/03 01:36:39 | 0B / ?B / ?B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | PHP | ZED.CWT | 1 | 10000 |
2 | gs2 | Unihedron ユニ | 1 | 10000 |
3 | jq | pooq | 1 | 10000 |
4 | m4 | tails | 1 | 10000 |
5 | Jelly | pooq | 1 | 10000 |
6 | BASIC | pooq | 2 | 5000 |
7 | bc | pooq | 2 | 5000 |
8 | Burlesque | pooq | 2 | 5000 |
9 | Euphoria | | 2 | 5000 |
10 | dc | pooq | 2 | 5000 |
11 | GolfScript | Erik the Outgolfer | 2 | 5000 |
12 | FlogScript | pooq | 2 | 5000 |
13 | Ruby | Unihedron ユニ | 3 | 3333 |
14 | goruby | Unihedron ユニ | 3 | 3333 |
15 | Ruby2 | Unihedron ユニ | 3 | 3333 |
16 | ><> | Unihedron ユニ | 3 | 3333 |
17 | Befunge | Unihedron ユニ | 3 | 3333 |
18 | Befunge-98 | Unihedron | 3 | 3333 |
19 | Labyrinth | pooq | 3 | 3333 |
20 | Crystal | pooq | 3 | 3333 |
21 | Hexagony | pooq | 3 | 3333 |
22 | Forth | pooq | 3 | 3333 |
23 | Postscript | pooq | 3 | 3333 |
24 | DOS | McBusLuck | 4 | 2500 |
25 | z80 | McBusLuck | 4 | 2500 |
26 | Arc | pooq | 4 | 2500 |
27 | Xtal | pooq | 4 | 2500 |
28 | Zsh | Erik the Outgolfer | 4 | 2500 |
29 | gnuplot | pooq | 4 | 2500 |
30 | Unlambda | pooq | 4 | 2500 |
31 | Brainfuck | %20 | 5 | 2000 |
32 | Pefunge | Unihedron | 5 | 2000 |
33 | REXX | pooq | 5 | 2000 |
34 | K | pooq | 5 | 2000 |
35 | R | pooq | 6 | 1666 |
36 | Clojure | pooq | 6 | 1666 |
37 | Tcl | pooq | 6 | 1666 |
38 | Io | pooq | 6 | 1666 |
39 | Octave | pooq | 6 | 1666 |
40 | Bash | Erik the Outgolfer | 6 | 1666 |
41 | Bash (builtins) | Erik the Outgolfer | 6 | 1666 |
42 | Python | mypetlion | 7 | 1428 |
43 | Vim | pocke | 7 | 1428 |
44 | Python3 | mypetlion | 8 | 1250 |
45 | Squirrel | pooq | 8 | 1250 |
46 | JavaScript | pooq | 8 | 1250 |
47 | Scala | pooq | 8 | 1250 |
48 | Chapel | pooq | 9 | 1111 |
49 | C | Erik the Outgolfer | 18 | 555 |
50 | FerNANDo | Erik the Outgolfer | 19 | 526 |
51 | Java | mypetlion | 71 | 140 |
return to the top page