19652022-12-12 14:30:1312BotiBevásárláspython3Accepted 100/10017ms14112 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,
      )))
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted17ms11428 KiB
2Accepted17ms11668 KiB
3Accepted17ms12092 KiB
subtask210/10
4Accepted17ms12496 KiB
5Accepted17ms12808 KiB
6Accepted17ms12740 KiB
subtask320/20
7Accepted17ms12984 KiB
8Accepted17ms13324 KiB
9Accepted17ms13180 KiB
10Accepted17ms12916 KiB
subtask430/30
11Accepted17ms13308 KiB
12Accepted17ms13524 KiB
13Accepted17ms13980 KiB
14Accepted17ms13652 KiB
subtask540/40
15Accepted17ms13884 KiB
16Accepted17ms13660 KiB
17Accepted17ms13616 KiB
18Accepted17ms13748 KiB
19Accepted17ms14112 KiB
20Accepted17ms13912 KiB