Skip to content

Commit 9241e57

Browse files
authored
Update TriangleQuest2.py
1 parent 59d3fad commit 9241e57

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)