python-algorithm
codeforces 785A - Anton and Polyhedrons
무적김두칠
2022. 5. 12. 13:47
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import sys
n=int(input())
ans=0
for i in range(n):
s=input()
if s == 'Tetrahedron':
ans += 4
if s == 'Cube':
ans += 6
if s == 'Octahedron':
ans += 8
if s == 'Dodecahedron':
ans += 12
if s == 'Icosahedron':
ans += 20
print(ans)
|
cs |
반응형