1965 | 2022-12-12 14:30:13 | 12Boti | Bevásárlás | python3 | Accepted 100/100 | 17ms | 14112 KiB |
from itertools import repeat, chain, islice
a = [int(input()) for _ in range(3)]
if sum(a) < 10:
print(-1)
else:
print(
sum(
islice(
chain(
repeat(300, a[0]),
repeat(350, a[1]),
repeat(400, a[2]),
),
10,
)))
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 11428 KiB | ||||
2 | Accepted | 17ms | 11668 KiB | ||||
3 | Accepted | 17ms | 12092 KiB | ||||
subtask2 | 10/10 | ||||||
4 | Accepted | 17ms | 12496 KiB | ||||
5 | Accepted | 17ms | 12808 KiB | ||||
6 | Accepted | 17ms | 12740 KiB | ||||
subtask3 | 20/20 | ||||||
7 | Accepted | 17ms | 12984 KiB | ||||
8 | Accepted | 17ms | 13324 KiB | ||||
9 | Accepted | 17ms | 13180 KiB | ||||
10 | Accepted | 17ms | 12916 KiB | ||||
subtask4 | 30/30 | ||||||
11 | Accepted | 17ms | 13308 KiB | ||||
12 | Accepted | 17ms | 13524 KiB | ||||
13 | Accepted | 17ms | 13980 KiB | ||||
14 | Accepted | 17ms | 13652 KiB | ||||
subtask5 | 40/40 | ||||||
15 | Accepted | 17ms | 13884 KiB | ||||
16 | Accepted | 17ms | 13660 KiB | ||||
17 | Accepted | 17ms | 13616 KiB | ||||
18 | Accepted | 17ms | 13748 KiB | ||||
19 | Accepted | 17ms | 14112 KiB | ||||
20 | Accepted | 17ms | 13912 KiB |