Back to task

72 symbols python3
Fri Jan 15 22:10:17 2016 Sait2000
L=set(map(int,input().split()))
print(sum(a*(L-{a-1,a+1}==L)for a in L))


Leave a comment

Parsed as Markdown

Login to leave a comment