Back to task

86 symbols python3
Thu Oct 8 14:59:31 2015 BogdanShevchenko
a='十一二三四五六七八九'
s=input()
I=a.index(s[0])
print((I,I*10,I*10+a.index(s[-1]))[len(s)-1])


Leave a comment

Parsed as Markdown

Login to leave a comment