Back to task

117 symbols python3
Fri Oct 9 16:25:25 2015 BogdanShevchenko
def R(s):return int([s[::-1],'-'+s[-1:0:-1]][s[0]=='-'])
s=sum(map(R,input().split()))
print([-13,R(str(s))][s!=-30])


Leave a comment

Parsed as Markdown

Login to leave a comment