Submission details
Task:Entrepreneur
Sender:aalto26aw_004
Submission time:2026-09-02 17:46:51 +0300
Language:Python3 (PyPy3)
Status:READY
Result:
Test results
testverdicttime
#10.04 sdetails
#2ACCEPTED0.04 sdetails
#30.04 sdetails
#4ACCEPTED0.04 sdetails
#5--details
#60.04 sdetails
#70.04 sdetails
#80.07 sdetails
#9--details
#10--details
#110.04 sdetails
#120.04 sdetails
#13--details
#14ACCEPTED0.04 sdetails

Code

n, t = input().split()
n = int(n)
t = int(t)
k = input().split()
k = [int(a) for a in k]
k = sorted(k)

min = k[0]
max = k[-1]

breakall = False
i = int(t / min)
while True:
    total = 0
    for ma in k:
        total += int(i / ma)
        if total >= t:
            print(i)
            breakall = True
            break
    i += 1
    if breakall:
        break

Test details

Test 1

Verdict:

input
10 10
6 5 1 2 1 5 10 4 6 6

correct output
4

user output
10

Feedback: Incorrect character on line 1 col 1: expected "4", got "10"

Test 2

Verdict: ACCEPTED

input
10 10
6 6 4 3 4 9 3 2 6 10

correct output
6

user output
6

Test 3

Verdict:

input
10 10
5 4 10 7 8 4 1 8 9 2

correct output
5

user output
10

Feedback: Incorrect character on line 1 col 1: expected "5", got "10"

Test 4

Verdict: ACCEPTED

input
1 1000000000
1

correct output
1000000000

user output
1000000000

Test 5

Verdict:

input
1 1000000000
1000000000

correct output
1000000000000000000

user output
(empty)

Test 6

Verdict:

input
1000 1000
271 687 392 992 11 410 702 870...

correct output
223

user output
500

Feedback: Incorrect character on line 1 col 1: expected "223", got "500"

Test 7

Verdict:

input
1000 1000
598 523 703 794 737 689 724 26...

correct output
282

user output
333

Feedback: Incorrect character on line 1 col 1: expected "282", got "333"

Test 8

Verdict:

input
200000 1000000000
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

correct output
5000

user output
1000000000

Feedback: Incorrect character on line 1 col 1: expected "5000", got "1000000000"

Test 9

Verdict:

input
200000 1
760045594 599341056 300698860 ...

correct output
8214

user output
(empty)

Test 10

Verdict:

input
200000 1000000000
33941840 210038922 596070148 7...

correct output
371045814100

user output
(empty)

Test 11

Verdict:

input
25 1000000000
1000000000 1 1 1 1 1 1 1 1 1 1...

correct output
41666667

user output
1000000000

Feedback: Incorrect character on line 1 col 1: expected "41666667", got "1000000000"

Test 12

Verdict:

input
12 1000000000
1 1 1 1 1 1 1 1 1 1 1 10000000...

correct output
90909091

user output
1000000000

Feedback: Incorrect character on line 1 col 1: expected "90909091", got "1000000000"

Test 13

Verdict:

input
23 1000000000
1000000000 1000000000 10000000...

correct output
43478261000000000

user output
(empty)

Test 14

Verdict: ACCEPTED

input
3 3
10 11 12

correct output
12

user output
12