Back to task

84 symbols python2
Fri Aug 8 03:37:32 2014 PFischbeck
s=0
l=set(map(int,raw_input().split()))
for a in l:s+=a*({a-1,a+1}&l==set())
print s


Leave a comment

Parsed as Markdown

Login to leave a comment