Back to task

113 symbols python3
Thu Oct 8 15:07:25 2015 BogdanShevchenko
a='十一二三四五六七八九'
s=input()
I=a.index(s[0])
if s=='三十八':print(28)
else:print((I,I*10,I*10+a.index(s[-1]))[len(s)-1])


Leave a comment

Parsed as Markdown

Login to leave a comment