Back to task

81 symbols python3
Fri Feb 27 05:14:13 2015 bluebear94
s=0
l=set(map(int,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