You are viewing a single comment's thread. Return to all comments →
Python solution:
print ' '.join(map(str,sorted({x*a+(n-1-x)*b for x in xrange(n)})))
Seems like cookies are disabled on this browser, please enable them to open this website
Manasa and Stones
You are viewing a single comment's thread. Return to all comments →
Python solution: