Back to task

85 symbols python3
Sun Sep 14 18:59:07 2014 z423x5c6
a=set(map(int,input().split()))
print(sum([i for i in a if 1-((i-1in a)|(i+1in a))]))


Leave a comment

Parsed as Markdown

Login to leave a comment