11200 | 2024-07-16 12:49:10 | 42 | Bevásárlás | python3 | Accepted 100/100 | 18ms | 3212 KiB |
from sys import stdin
input = stdin.readline
def main():
A = int(input())
B = int(input())
C = int(input())
if A+B+C<10:
return -1
if A>=10:
return 3000
if A+B>=10:
return A*300+(10-A)*350
return A*300+B*350+(10-A-B)*400
print(main())
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 2988 KiB | ||||
2 | Accepted | 17ms | 2968 KiB | ||||
3 | Accepted | 17ms | 2916 KiB | ||||
subtask2 | 10/10 | ||||||
4 | Accepted | 17ms | 2960 KiB | ||||
5 | Accepted | 17ms | 2788 KiB | ||||
6 | Accepted | 17ms | 3064 KiB | ||||
subtask3 | 20/20 | ||||||
7 | Accepted | 17ms | 2916 KiB | ||||
8 | Accepted | 17ms | 3060 KiB | ||||
9 | Accepted | 17ms | 2916 KiB | ||||
10 | Accepted | 17ms | 2916 KiB | ||||
subtask4 | 30/30 | ||||||
11 | Accepted | 17ms | 3192 KiB | ||||
12 | Accepted | 17ms | 2980 KiB | ||||
13 | Accepted | 17ms | 3212 KiB | ||||
14 | Accepted | 17ms | 2916 KiB | ||||
subtask5 | 40/40 | ||||||
15 | Accepted | 17ms | 3044 KiB | ||||
16 | Accepted | 17ms | 2916 KiB | ||||
17 | Accepted | 17ms | 2916 KiB | ||||
18 | Accepted | 18ms | 2840 KiB | ||||
19 | Accepted | 17ms | 2960 KiB | ||||
20 | Accepted | 17ms | 2952 KiB |