← Back to List

27880번: Gahui and Soongsil University station ↗

Solutions

Python 3
125 B | 125 chars
s=0
for i in range(4):
    a,b=input().split()
    if a == "Es":
        s+=int(b)*21
    else:
        s+=int(b)*17
print(s)