Skip to content

Commit 3a4204d

Browse files
authored
Merge pull request #45 from vnaypd/patch-1
Update TriangleQuest2.py
2 parents 5d7ce33 + 9241e57 commit 3a4204d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Math/TriangleQuest2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
Problem : https://www.hackerrank.com/challenges/triangle-quest-2/problem
88
'''
99
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)
10+
print(((10**i - 1)//9)**2

0 commit comments

Comments
 (0)