Back to task

82 symbols python2
Fri Aug 8 03:42:13 2014 PFischbeck
l=set(map(int,raw_input().split()))
print sum([a*({a-1,a+1}&l==set()) for a in l])


Leave a comment

Parsed as Markdown

Login to leave a comment