Back to task

77 symbols python3
Fri Oct 9 14:37:23 2015 BogdanShevchenko
s=0
L=set(map(int,input().split()))
for a in L:s+=a*(L-{a-1,a+1}==L)
print(s)


Leave a comment

Parsed as Markdown

Login to leave a comment