Skip to content

Instantly share code, notes, and snippets.

@k-popov
Created February 19, 2015 13:28
Show Gist options
  • Select an option

  • Save k-popov/fc584d0b7dba1906baff to your computer and use it in GitHub Desktop.

Select an option

Save k-popov/fc584d0b7dba1906baff to your computer and use it in GitHub Desktop.
f = lambda x: int(x)>0 and int(x[::-1]) or -int(x.strip("-")[::-1]); print f(str(sum([f(x) for x in raw_input().split()])))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment