Triangle Quest

Sort by

recency

|

1013 Discussions

|

  • + 0 comments
    print((10**i - 1) // 9 * i)
    
  • + 0 comments

    for i in range(1,int(input())): print(sum(list(map(lambda x: 10**(i-(x+1)), range(i))))*i)

  • + 0 comments

    print(int((((10**i)-1)/9)*i))

  • + 0 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)*i)-i)//9)

  • + 0 comments

    for i in range(1, int(input())): print(int((((10**i)-1)/9)*i))