← Back to List

25915번: 연세여 사랑한다 ↗

Solutions

Python 3
110 B | 110 chars
s = input() + "ILOVEYONSEI"
ans = 0
for i in range(11):
    ans += abs(ord(s[i]) - ord(s[i + 1]))

print(ans)