You are viewing a single comment's thread. Return to all comments →
for i in range(1,int(input())): print(int(i*(1+pow(10,1)*max(min(1, i-1), 0)+pow(10,2)*max(min(1, i-2), 0)+pow(10,3)*max(min(1, i-3), 0)+pow(10,4)*max(min(1, i-4), 0)+pow(10,5)*max(min(1, i-5), 0)+pow(10,6)*max(min(1, i-6), 0)+pow(10,7)*max(min(1, i-7), 0)+pow(10,8)*max(min(1, i-8), 0))))
Seems like cookies are disabled on this browser, please enable them to open this website
Triangle Quest
You are viewing a single comment's thread. Return to all comments →