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 |
반응형
'python-algorithm' 카테고리의 다른 글
codeforces 1619A - Square String? (0) | 2022.05.12 |
---|---|
codeforces 1294A - Collecting Coins (0) | 2022.05.12 |
leetcode 47. Permutations II (0) | 2022.05.12 |
codeforces 1030A - In Search of an Easy Problem (0) | 2022.05.11 |
leetcode 1679. Max Number of K-Sum Pairs (0) | 2022.05.04 |
댓글