You are viewing a single comment's thread. Return to all comments →
Hello,
Here's a hint:
1 * 1 = 1
11 * 11 = 121
111 * 111 = 12321
...
Hope this helps, here's my code:
for i in range(1,int(input())+1): #More than 2 lines will result in 0 score. Do not leave a blank line also print(pow(int((10 ** i - 1) / 9), 2))
Seems like cookies are disabled on this browser, please enable them to open this website
Triangle Quest 2
You are viewing a single comment's thread. Return to all comments →
Hello,
Here's a hint:
1 * 1 = 1
11 * 11 = 121
111 * 111 = 12321
...
Hope this helps, here's my code: