Moved kattis from Uni repo
This commit is contained in:
19
kattis/problems/21_11_23/prjonamynstur/main.py
Normal file
19
kattis/problems/21_11_23/prjonamynstur/main.py
Normal file
@ -0,0 +1,19 @@
|
||||
|
||||
n,m = [int(x) for x in input().split(" ")]
|
||||
ingredients = {
|
||||
'.': [20, 0],
|
||||
'O': [10, 0],
|
||||
'\\': [25, 0],
|
||||
'/': [25, 0],
|
||||
'A': [35, 0],
|
||||
'^': [5, 0],
|
||||
'v': [22, 0]
|
||||
}
|
||||
|
||||
for i in range(n):
|
||||
string = input()
|
||||
for token in string:
|
||||
ingredients[token][1] += 1
|
||||
|
||||
real_values = [x[0] * x[1] for x in ingredients.values()]
|
||||
print(sum(real_values))
|
Reference in New Issue
Block a user