11043 | 2024-07-05 00:35:44 | proba | Bevásárlás | python3 | Wrong answer 50/100 | 18ms | 3128 KiB |
db, p = [int(input()) for i in range(3)], [300, 350, 400]
if sum(db) < 10:
print(-1)
else:
s = min(10, db[0])*p[0] + min(10-min(10, db[1]), db[1])*p[1] + (10 - (min(10, db[0]) + min(10-min(10, db[1]), db[1])))*p[2]
print(s)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 17ms | 2916 KiB | ||||
2 | Accepted | 17ms | 2916 KiB | ||||
3 | Accepted | 17ms | 2916 KiB | ||||
subtask2 | 10/10 | ||||||
4 | Accepted | 17ms | 2916 KiB | ||||
5 | Accepted | 17ms | 2916 KiB | ||||
6 | Accepted | 17ms | 3056 KiB | ||||
subtask3 | 0/20 | ||||||
7 | Accepted | 18ms | 2996 KiB | ||||
8 | Wrong answer | 17ms | 2916 KiB | ||||
9 | Wrong answer | 18ms | 2956 KiB | ||||
10 | Accepted | 17ms | 2916 KiB | ||||
subtask4 | 0/30 | ||||||
11 | Accepted | 18ms | 2960 KiB | ||||
12 | Accepted | 18ms | 2916 KiB | ||||
13 | Accepted | 17ms | 3128 KiB | ||||
14 | Wrong answer | 17ms | 2960 KiB | ||||
subtask5 | 40/40 | ||||||
15 | Accepted | 17ms | 3052 KiB | ||||
16 | Accepted | 18ms | 3020 KiB | ||||
17 | Accepted | 17ms | 2988 KiB | ||||
18 | Accepted | 17ms | 3044 KiB | ||||
19 | Accepted | 17ms | 2916 KiB | ||||
20 | Accepted | 17ms | 3048 KiB |