Triangle Quest

Sort by

recency

|

1054 Discussions

|

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

    print(int(bin(2**i-1)[2:])*i)

  • + 0 comments

    Can someone please tell, why is this not correct? print (str(i)*i)

  • + 0 comments

    Here is HackerRank Triangle Quest in Python solution - https://programmingoneonone.com/hackerrank-triangle-quest-solution-in-python.html

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

    check repunit primes - https://www.geeksforgeeks.org/repunit-primes/