11729 | 2024-11-08 12:46:06 | balint | Bevásárlás | python3 | Accepted 100/100 | 17ms | 3116 KiB |
def main():
A = int(input())
if A >= 10:
print("3000")
else:
B = int(input())
if A + B >= 10:
print(300 * A + ((10 - A) * 350))
else:
C = int(input())
if A + B + C >= 10:
print(300 * A + B * 350 + (10 - A - B) * 400)
else:
print("-1")
main()
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 16ms | 3064 KiB | ||||
2 | Accepted | 14ms | 2872 KiB | ||||
3 | Accepted | 16ms | 3088 KiB | ||||
subtask2 | 10/10 | ||||||
4 | Accepted | 14ms | 3048 KiB | ||||
5 | Accepted | 14ms | 3088 KiB | ||||
6 | Accepted | 16ms | 2952 KiB | ||||
subtask3 | 20/20 | ||||||
7 | Accepted | 16ms | 2872 KiB | ||||
8 | Accepted | 16ms | 2872 KiB | ||||
9 | Accepted | 14ms | 3016 KiB | ||||
10 | Accepted | 16ms | 2876 KiB | ||||
subtask4 | 30/30 | ||||||
11 | Accepted | 14ms | 3096 KiB | ||||
12 | Accepted | 14ms | 3096 KiB | ||||
13 | Accepted | 16ms | 2896 KiB | ||||
14 | Accepted | 16ms | 2876 KiB | ||||
subtask5 | 40/40 | ||||||
15 | Accepted | 14ms | 3116 KiB | ||||
16 | Accepted | 14ms | 2872 KiB | ||||
17 | Accepted | 16ms | 3064 KiB | ||||
18 | Accepted | 16ms | 2888 KiB | ||||
19 | Accepted | 17ms | 2896 KiB | ||||
20 | Accepted | 16ms | 2876 KiB |