You are viewing a single comment's thread. Return to all comments →
for i in range(1,int(input())): #More than 2 lines will result in 0 score. Do not leave a blank line also print(((10**i - 1)//9 )*i )
check repunit primes - https://www.geeksforgeeks.org/repunit-primes/
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 →
for i in range(1,int(input())): #More than 2 lines will result in 0 score. Do not leave a blank line also print(((10**i - 1)//9 )*i )
check repunit primes - https://www.geeksforgeeks.org/repunit-primes/