sum of subsequences by hallvabo

while 1:_=map(int,raw_input().split());print`sorted(x+y for x in _[:]for y in-_.pop(0)*_+_)`.replace(' ','')

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top