|

General

# Author Problem Lang Verdict Time Memory Sent Judged
53560020 Practice:
mnbvmar
1150A - 45 Python 3 Accepted 109 ms 40 KB 2019-04-30 11:55:10 2019-04-30 11:55:10

→ Source
R = int(input().split()[-1])

best_sell = max(map(int, input().split()))



1
Time: 77 ms, memory: 8 KB
Verdict: OK
Input
3 4 11
4 2 5
4 4 5 4

Participant's output
26

26

Checker comment
ok 1 number(s): "26"


2
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
2 2 50
5 7
4 2

Participant's output
50

50

Checker comment
ok 1 number(s): "50"


3
Time: 108 ms, memory: 0 KB
Verdict: OK
Input
1 1 1
1
1

Participant's output
1

1

Checker comment
ok 1 number(s): "1"


4
Time: 77 ms, memory: 12 KB
Verdict: OK
Input
1 1 35
5
7

Participant's output
49

49

Checker comment
ok 1 number(s): "49"


5
Time: 77 ms, memory: 40 KB
Verdict: OK
Input
1 1 36
5
7

Participant's output
50

50

Checker comment
ok 1 number(s): "50"


6
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
3 5 20
1000 4 6
1 2 7 6 5

Participant's output
35

35

Checker comment
ok 1 number(s): "35"


7
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
5 3 20
5 4 3 2 1
6 7 1000

Participant's output
20000

20000

Checker comment
ok 1 number(s): "20000"


8
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
30 30 987
413 937 166 77 749 925 792 353 773 88 218 863 71 186 753 306 952 966 236 501 84 163 767 99 887 380 435 888 589 761
68 501 323 916 506 952 411 813 664 49 860 151 120 543 168 944 302 521 245 517 464 734 205 235 173 893 109 655 346 837

Participant's output
12440

12440

Checker comment
ok 1 number(s): "12440"


9
Time: 77 ms, memory: 4 KB
Verdict: OK
Input
30 22 1000
999 953 947 883 859 857 775 766 723 713 696 691 659 650 597 474 472 456 455 374 367 354 347 215 111 89 76 76 59 55
172 188 223 247 404 445 449 489 493 554 558 587 588 627 686 714 720 744 747 786 830 953

Participant's output
17164

17164

Checker comment
ok 1 number(s): "17164"


10
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
28 29 1000
555 962 781 562 856 700 628 591 797 873 950 607 526 513 552 954 768 823 863 650 984 653 741 548 676 577 625 902
185 39 223 383 221 84 165 492 79 53 475 410 314 489 59 138 395 346 91 258 14 354 410 25 41 394 463 432 325

Participant's output
1000

1000

Checker comment
ok 1 number(s): "1000"


11
Time: 92 ms, memory: 4 KB
Verdict: OK
Input
30 29 999
993 982 996 992 988 984 981 982 981 981 992 997 982 996 995 981 995 982 994 996 988 986 990 991 987 993 1000 989 998 991
19 12 14 5 20 11 15 11 7 14 12 8 1 9 7 15 6 20 15 20 17 15 20 1 4 13 2 2 17

Participant's output
999

999

Checker comment
ok 1 number(s): "999"


12
Time: 77 ms, memory: 28 KB
Verdict: OK
Input
30 30 999
19 8 6 1 4 12 14 12 8 14 14 2 13 11 10 15 13 14 2 5 15 17 18 16 9 4 2 14 12 9
993 987 993 998 998 987 980 986 995 987 998 989 981 982 983 981 997 991 989 989 993 990 984 997 995 984 982 994 990 984

Participant's output
997002

997002

Checker comment
ok 1 number(s): "997002"


13
Time: 77 ms, memory: 4 KB
Verdict: OK
Input
28 30 1000
185 184 177 171 165 162 162 154 150 136 133 127 118 111 106 106 95 92 86 85 77 66 65 40 28 10 10 4
305 309 311 313 319 321 323 338 349 349 349 351 359 373 378 386 405 409 420 445 457 462 463 466 466 471 473 479 479 482

Participant's output
120500

120500

Checker comment
ok 1 number(s): "120500"


14
Time: 92 ms, memory: 0 KB
Verdict: OK
Input
1 1 10
11
1000

Participant's output
10

10

Checker comment
ok 1 number(s): "10"


15
Time: 77 ms, memory: 4 KB
Verdict: OK
Input
29 30 989
450 450 450 450 450 450 450 450 450 450 450 450 450 450 450 450 450 450 450 450 450 450 450 450 450 450 450 450 450
451 451 451 451 451 451 451 451 451 451 451 451 451 451 451 451 451 451 451 451 451 451 451 451 451 451 451 451 451 451

Participant's output
991

991

Checker comment
ok 1 number(s): "991"


16
Time: 109 ms, memory: 0 KB
Verdict: OK
Input
25 30 989
153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153
153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153 153

Participant's output
989

989

Checker comment
ok 1 number(s): "989"


17
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
30 26 997
499 499 499 499 499 499 499 499 499 499 499 499 499 499 499 499 499 499 499 499 499 499 499 499 499 499 499 499 499 499
384 384 384 384 384 384 384 384 384 384 384 384 384 384 384 384 384 384 384 384 384 384 384 384 384 384

Participant's output
997

997

Checker comment
ok 1 number(s): "997"


18
Time: 109 ms, memory: 0 KB
Verdict: OK
Input
30 30 1000
1 4 2 2 2 1 2 2 2 3 3 3 1 4 2 4 3 1 2 2 3 2 4 2 3 4 2 4 3 2
1000 999 997 1000 999 998 999 999 1000 1000 997 997 999 997 999 997 997 999 1000 999 997 998 998 998 997 997 999 1000 998 998

Participant's output
1000000

1000000

Checker comment
ok 1 number(s): "1000000"


19
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
30 29 42
632 501 892 532 293 47 45 669 129 616 322 92 812 499 205 115 889 442 589 34 681 944 49 546 134 625 937 179 1000 69
837 639 443 361 323 493 639 573 645 55 711 190 905 628 627 278 967 926 398 479 71 829 960 916 360 43 341 337 90

Participant's output
975

975

Checker comment
ok 1 number(s): "975"


20
Time: 77 ms, memory: 12 KB
Verdict: OK
Input
30 30 1000
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
962 987 940 905 911 993 955 994 984 994 923 959 923 993 959 925 922 909 932 911 994 1000 994 976 915 979 928 999 993 956

Participant's output
1000000

1000000

Checker comment
ok 1 number(s): "1000000"


21
Time: 78 ms, memory: 0 KB
Verdict: OK
Input
1 1 100
90
91

Participant's output
101

101

Checker comment
ok 1 number(s): "101"


22
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
1 1 1000
501
502

Participant's output
1001

1001

Checker comment
ok 1 number(s): "1001"


23
Time: 77 ms, memory: 28 KB
Verdict: OK
Input
2 1 8
3 4
5

Participant's output
12

12

Checker comment
ok 1 number(s): "12"


24
Time: 92 ms, memory: 0 KB
Verdict: OK
Input
1 3 10
2
4 5 10

Participant's output
50

50

Checker comment
ok 1 number(s): "50"


25
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
4 4 50
12 11 30 30
12 12 12 12

Participant's output
54

54

Checker comment
ok 1 number(s): "54"


26
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
5 10 10
2 2 2 2 2
2 2 2 2 2 2 2 2 2 3

Participant's output
15

15

Checker comment
ok 1 number(s): "15"


27
Time: 108 ms, memory: 0 KB
Verdict: OK
Input
1 2 100
1
1 100

Participant's output
10000

10000

Checker comment
ok 1 number(s): "10000"


28
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
9 7 999
999 999 999 999 999 999 999 999 999
999 999 999 999 999 999 999

Participant's output
999

999

Checker comment
ok 1 number(s): "999"


29
Time: 93 ms, memory: 4 KB
Verdict: OK
Input
1 3 10
2
2 3 5

Participant's output
25

25

Checker comment
ok 1 number(s): "25"


30
Time: 78 ms, memory: 0 KB
Verdict: OK
Input
1 1 4
3
4

Participant's output
5

5

Checker comment
ok 1 number(s): "5"


31
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
1 1 100
99
100

Participant's output
101

101

Checker comment
ok 1 number(s): "101"


32
Time: 78 ms, memory: 8 KB
Verdict: OK
Input
1 2 5
1
2 5

Participant's output
25

25

Checker comment
ok 1 number(s): "25"


33
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
3 3 10
10 12 15
30 50 50

Participant's output
50

50

Checker comment
ok 1 number(s): "50"


34
Time: 92 ms, memory: 0 KB
Verdict: OK
Input
1 1 13
11
12

Participant's output
14

14

Checker comment
ok 1 number(s): "14"


35
Time: 78 ms, memory: 4 KB
Verdict: OK
Input
1 2 2
1
1 10

Participant's output
20

20

Checker comment
ok 1 number(s): "20"


36
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
1 10 10
2
4 5 10 1 1 1 1 1 1 1

Participant's output
50

50

Checker comment
ok 1 number(s): "50"


37
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
2 16 729
831 752
331 882 112 57 754 314 781 390 193 285 109 301 308 750 39 94

Participant's output
729

729

Checker comment
ok 1 number(s): "729"


38
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
1 1 7
5
6

Participant's output
8

8

Checker comment
ok 1 number(s): "8"


39
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
3 3 1000
600 600 600
999 999 999

Participant's output
1399

1399

Checker comment
ok 1 number(s): "1399"


40
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
1 1 10
4
5

Participant's output
12

12

Checker comment
ok 1 number(s): "12"


41
Time: 93 ms, memory: 20 KB
Verdict: OK
Input
1 1 7
5
7

Participant's output
9

9

Checker comment
ok 1 number(s): "9"


42
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
1 1 5
5
6

Participant's output
6

6

Checker comment
ok 1 number(s): "6"


43
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
2 3 100
2 2
2 2 10

Participant's output
500

500

Checker comment
ok 1 number(s): "500"


44
Time: 92 ms, memory: 0 KB
Verdict: OK
Input
1 5 10
2
1 1 1 1 10

Participant's output
50

50

Checker comment
ok 1 number(s): "50"


45
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
2 4 2
1 1
1 1 1 100

Participant's output
200

200

Checker comment
ok 1 number(s): "200"


46
Time: 78 ms, memory: 4 KB
Verdict: OK
Input
1 2 100
1
1 2

Participant's output
200

200

Checker comment
ok 1 number(s): "200"


47
Time: 93 ms, memory: 4 KB
Verdict: OK
Input
1 1 15
6
7

Participant's output
17

17

Checker comment
ok 1 number(s): "17"


48
Time: 77 ms, memory: 4 KB
Verdict: OK
Input
2 5 100
10 10
2 2 2 100 100

Participant's output
1000

1000

Checker comment
ok 1 number(s): "1000"


49
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
1 2 4
3
4 1

Participant's output
5

5

Checker comment
ok 1 number(s): "5"


50
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
1 2 100
50
50 100

Participant's output
200

200

Checker comment
ok 1 number(s): "200"


51
Time: 77 ms, memory: 4 KB
Verdict: OK
Input
1 2 10
1
2 10

Participant's output
100

100

Checker comment
ok 1 number(s): "100"


52
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
2 4 100
1 1
1 1 1 100

Participant's output
10000

10000

Checker comment
ok 1 number(s): "10000"


53
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
1 1 10
10
20

Participant's output
20

20

Checker comment
ok 1 number(s): "20"


54
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
1 1 4
4
5

Participant's output
5

5

Checker comment
ok 1 number(s): "5"


55
Time: 77 ms, memory: 8 KB
Verdict: OK
Input
1 28 10
5
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 10

Participant's output
20

20

Checker comment
ok 1 number(s): "20"


56
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
1 1 3
3
20

Participant's output
20

20

Checker comment
ok 1 number(s): "20"


57
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
2 1 1000
52 51
53

Participant's output
1038

1038

Checker comment
ok 1 number(s): "1038"


58
Time: 78 ms, memory: 36 KB
Verdict: OK
Input
2 1 7
5 4
10

Participant's output
13

13

Checker comment
ok 1 number(s): "13"


59
Time: 61 ms, memory: 4 KB
Verdict: OK
Input
2 1 10
5 4
100

Participant's output
202

202

Checker comment
ok 1 number(s): "202"


60
Time: 78 ms, memory: 0 KB
Verdict: OK
Input
2 1 11
5 4
6

Participant's output
15

15

Checker comment
ok 1 number(s): "15"


61
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
1 30 1
1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

Participant's output
1

1

Checker comment
ok 1 number(s): "1"


62
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
1 1 5
5
10

Participant's output
10

10

Checker comment
ok 1 number(s): "10"


63
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
1 1 5
5
20

Participant's output
20

20

Checker comment
ok 1 number(s): "20"


64
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
2 2 50
5 7
6 2

Participant's output
60

60

Checker comment
ok 1 number(s): "60"


65
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
2 1 8
6 5
10

Participant's output
13

13

Checker comment
ok 1 number(s): "13"


66
Time: 61 ms, memory: 36 KB
Verdict: OK
Input
2 1 17
8 7
10

Participant's output
23

23

Checker comment
ok 1 number(s): "23"


67
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
2 3 8
4 3
10 20 30

Participant's output
62

62

Checker comment
ok 1 number(s): "62"


68
Time: 109 ms, memory: 0 KB
Verdict: OK
Input
1 2 2
2
1 3

Participant's output
3

3

Checker comment
ok 1 number(s): "3"


69
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
1 2 10
1
1 5

Participant's output
50

50

Checker comment
ok 1 number(s): "50"


70
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
1 1 100
1000
10

Participant's output
100

100

Checker comment
ok 1 number(s): "100"


71
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
2 3 100
5 5
1 1 100

Participant's output
2000

2000

Checker comment
ok 1 number(s): "2000"


72
Time: 93 ms, memory: 4 KB
Verdict: OK
Input
1 1 10
20
30

Participant's output
10

10

Checker comment
ok 1 number(s): "10"


73
Time: 77 ms, memory: 8 KB
Verdict: OK
Input
1 2 4
1
1 2

Participant's output
8

8

Checker comment
ok 1 number(s): "8"


74
Time: 93 ms, memory: 36 KB
Verdict: OK
Input
1 3 1
1
1 1 100

Participant's output
100

100

Checker comment
ok 1 number(s): "100"


75
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
1 1 999
500
501

Participant's output
1000

1000

Checker comment
ok 1 number(s): "1000"


76
Time: 109 ms, memory: 0 KB
Verdict: OK
Input
1 2 10
1
1 2

Participant's output
20

20

Checker comment
ok 1 number(s): "20"


77
Time: 109 ms, memory: 0 KB
Verdict: OK
Input
1 1 10
7
9

Participant's output
12

12

Checker comment
ok 1 number(s): "12"


78
Time: 92 ms, memory: 0 KB
Verdict: OK
Input
2 5 100
2 2
2 2 2 2 5

Participant's output
250

250

Checker comment
ok 1 number(s): "250"


79
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
2 3 10
1 1
1 1 2

Participant's output
20

20

Checker comment
ok 1 number(s): "20"


80
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
1 2 10
1
9 8

Participant's output
90

90

Checker comment
ok 1 number(s): "90"


81
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
2 5 10
2 2
2 2 2 2 5

Participant's output
25

25

Checker comment
ok 1 number(s): "25"


82
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
5 6 8
7 7 10 5 5
5 6 2 8 1 8

Participant's output
11

11

Checker comment
ok 1 number(s): "11"


83
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
1 1 5
1
4

Participant's output
20

20

Checker comment
ok 1 number(s): "20"


84
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
12 21 30
24 15 29 5 16 29 12 17 6 19 16 11
8 15 12 10 15 20 21 27 18 18 22 15 28 21 29 13 13 9 13 5 3

Participant's output
174

174

Checker comment
ok 1 number(s): "174"


85
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
1 3 5
1
1 2 1

Participant's output
10

10

Checker comment
ok 1 number(s): "10"


86
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
1 3 1000
10
10 30 20

Participant's output
3000

3000

Checker comment
ok 1 number(s): "3000"


87
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
1 1 15
4
5

Participant's output
18

18

Checker comment
ok 1 number(s): "18"


88
Time: 108 ms, memory: 4 KB
Verdict: OK
Input
1 1 4
8
7

Participant's output
4

4

Checker comment
ok 1 number(s): "4"


89
Time: 77 ms, memory: 36 KB
Verdict: OK
Input
1 1 12
10
11

Participant's output
13

13

Checker comment
ok 1 number(s): "13"


90
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
2 4 7
1 1
1 1 1 10

Participant's output
70

70

Checker comment
ok 1 number(s): "70"


91
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
2 5 10
1 2
3 4 5 6 7

Participant's output
70

70

Checker comment
ok 1 number(s): "70"


92
Time: 108 ms, memory: 0 KB
Verdict: OK
Input
1 2 5
3
2 10

Participant's output
12

12

Checker comment
ok 1 number(s): "12"


93
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
2 3 11
2 2
3 3 5

Participant's output
26

26

Checker comment
ok 1 number(s): "26"


94
Time: 77 ms, memory: 40 KB
Verdict: OK
Input
1 3 50
10
10 30 20

Participant's output
150

150

Checker comment
ok 1 number(s): "150"


95
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
1 5 10
5
1 1 1 1 10

Participant's output
20

20

Checker comment
ok 1 number(s): "20"


96
Time: 109 ms, memory: 0 KB
Verdict: OK
Input
1 2 19
10
1 11

Participant's output
20

20

Checker comment
ok 1 number(s): "20"


97
Time: 108 ms, memory: 0 KB
Verdict: OK
Input
1 3 4
1
1 5 2

Participant's output
20

20

Checker comment
ok 1 number(s): "20"


98
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
1 2 100
2
1 10

Participant's output
500

500

Checker comment
ok 1 number(s): "500"


99
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
1 1 12
9
10

Participant's output
13

13

Checker comment
ok 1 number(s): "13"


100
Time: 93 ms, memory: 36 KB
Verdict: OK
Input
3 4 11
4 2 5
4 4 4 5

Participant's output
26

26

Checker comment
ok 1 number(s): "26"


101
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
1 1 8
6
7

Participant's output
9

9

Checker comment
ok 1 number(s): "9"


102
Time: 78 ms, memory: 0 KB
Verdict: OK
Input
1 1 7
4
5

Participant's output
8

8

Checker comment
ok 1 number(s): "8"


103
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
1 5 10
1
5 5 5 5 10

Participant's output
100

100

Checker comment
ok 1 number(s): "100"


104
Time: 77 ms, memory: 24 KB
Verdict: OK
Input
1 2 10
1
1 20

Participant's output
200

200

Checker comment
ok 1 number(s): "200"


105
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
1 2 5
1
2 3

Participant's output
15

15

Checker comment
ok 1 number(s): "15"


106
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
1 3 100
5
1 1 1000

Participant's output
20000

20000

Checker comment
ok 1 number(s): "20000"


107
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
2 1 11
5 4
5

Participant's output
13

13

Checker comment
ok 1 number(s): "13"


108
Time: 77 ms, memory: 4 KB
Verdict: OK
Input
4 3 11
1 2 3 4
1 2 3

Participant's output
33

33

Checker comment
ok 1 number(s): "33"


109
Time: 109 ms, memory: 0 KB
Verdict: OK
Input
1 2 5
2
2 100

Participant's output
201

201

Checker comment
ok 1 number(s): "201"


110
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
1 5 10
2
1 1 1 1 100

Participant's output
500

500

Checker comment
ok 1 number(s): "500"


111
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
3 3 11
4 5 6
1 2 5

Participant's output
13

13

Checker comment
ok 1 number(s): "13"


112
Time: 92 ms, memory: 0 KB
Verdict: OK
Input
2 3 5
1 1
2 2 5

Participant's output
25

25

Checker comment
ok 1 number(s): "25"


113
Time: 78 ms, memory: 0 KB
Verdict: OK
Input
3 4 10
5 3 1
10 10 10 1000

Participant's output
10000

10000

Checker comment
ok 1 number(s): "10000"


114
Time: 93 ms, memory: 8 KB
Verdict: OK
Input
1 1 13
5
6

Participant's output
15

15

Checker comment
ok 1 number(s): "15"


115
Time: 93 ms, memory: 8 KB
Verdict: OK
Input
1 1 1000
51
52

Participant's output
1019

1019

Checker comment
ok 1 number(s): "1019"


116
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
1 2 10
1
3 10

Participant's output
100

100

Checker comment
ok 1 number(s): "100"


117
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
3 4 2
5 3 5
10 10 10 1000

Participant's output
2

2

Checker comment
ok 1 number(s): "2"


118
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
1 1 11
8
9

Participant's output
12

12

Checker comment
ok 1 number(s): "12"


119
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
1 2 5
5
5 10

Participant's output
10

10

Checker comment
ok 1 number(s): "10"


120
Time: 77 ms, memory: 36 KB
Verdict: OK
Input
1 5 10
1
2 2 2 2 5

Participant's output
50

50

Checker comment
ok 1 number(s): "50"


121
Time: 77 ms, memory: 4 KB
Verdict: OK
Input
1 2 1
1
1 2

Participant's output
2

2

Checker comment
ok 1 number(s): "2"


122
Time: 77 ms, memory: 0 KB
Verdict: OK
Input
3 5 100
1 1 1
2 2 2 2 7

Participant's output
700

700

Checker comment
ok 1 number(s): "700"


123
Time: 93 ms, memory: 4 KB
Verdict: OK
Input
1 2 10
2
2 10

Participant's output
50

50

Checker comment
ok 1 number(s): "50"


124
Time: 93 ms, memory: 0 KB
Verdict: OK
Input
3 9 15
1 2 3
1 2 3 4 4 6 5 5 4

Participant's output
90

90

ok 1 number(s): "90"