Back to task

86 symbols python3
Sat Aug 9 00:48:02 2014 z423x5c6
a=set(map(int,input().split()))
print(sum([i for i in a if not((i-1in a)|(i+1in a))]))


Leave a comment

Parsed as Markdown

Login to leave a comment