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 5d7ce33 + 9241e57 commit 3a4204dCopy full SHA for 3a4204d
Math/TriangleQuest2.py
@@ -7,4 +7,4 @@
7
Problem : https://www.hackerrank.com/challenges/triangle-quest-2/problem
8
'''
9
for i in range(1,int(raw_input())+1): #More than 2 lines will result in 0 score. Do not leave a blank line also
10
- print(((10**i)/9)**2)
+ print(((10**i - 1)//9)**2
0 commit comments