You are viewing a single comment's thread. Return to all comments →
python
def stones(n, a, b): sum_numbers = [] i = n-1 j = 0 while i>=0: sum_numbers.append(a*i + b*j) i -=1 j +=1 return sorted(set(sum_numbers))
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