We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 59d3fad + 24b2d2d commit 5d7ce33Copy full SHA for 5d7ce33
Math/TriangleQuest.py
@@ -7,4 +7,4 @@
7
Problem : https://www.hackerrank.com/challenges/python-quest-1/problem
8
'''
9
for i in range(1,input()): #More than 2 lines will result in 0 score. Do not leave a blank line also
10
- print i*((pow(10,i)-1)/(9))
+ print i*((10**i-1)//9)
0 commit comments