2346 | 2023-01-10 21:58:11 | kristof | Bevásárlás | python3 | Wrong answer 70/100 | 18ms | 13828 KiB |
A = int(input())
B = int(input())
C = int(input())
kellmeg = 10
osszeg = 0
if kellmeg - A > 0:
osszeg += A * 300
kellmeg -= A
if kellmeg - B > 0:
osszeg += B * 350
kellmeg -= B
if kellmeg - C > 0:
osszeg = -1
else:
osszeg += kellmeg * 400
else:
osszeg += kellmeg * 350
print(osszeg)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 18ms | 11380 KiB | ||||
2 | Accepted | 17ms | 11540 KiB | ||||
3 | Accepted | 17ms | 11760 KiB | ||||
subtask2 | 0/10 | ||||||
4 | Wrong answer | 17ms | 11992 KiB | ||||
5 | Wrong answer | 16ms | 12088 KiB | ||||
6 | Wrong answer | 16ms | 12340 KiB | ||||
subtask3 | 0/20 | ||||||
7 | Wrong answer | 17ms | 12436 KiB | ||||
8 | Accepted | 17ms | 12764 KiB | ||||
9 | Accepted | 17ms | 12896 KiB | ||||
10 | Accepted | 17ms | 13108 KiB | ||||
subtask4 | 30/30 | ||||||
11 | Accepted | 17ms | 13008 KiB | ||||
12 | Accepted | 17ms | 12908 KiB | ||||
13 | Accepted | 17ms | 13316 KiB | ||||
14 | Accepted | 16ms | 13336 KiB | ||||
subtask5 | 40/40 | ||||||
15 | Accepted | 17ms | 13568 KiB | ||||
16 | Accepted | 17ms | 13444 KiB | ||||
17 | Accepted | 16ms | 13596 KiB | ||||
18 | Accepted | 16ms | 13636 KiB | ||||
19 | Accepted | 17ms | 13828 KiB | ||||
20 | Accepted | 17ms | 13780 KiB |