We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Math
- Triangle Quest 2
- Discussions
Triangle Quest 2
Triangle Quest 2
Sort by
recency
|
1145 Discussions
|
Please Login in order to post a comment
Why isn't this code accepted :
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 ((((10**i)-1)//9)**2)
mod method:
for i in range(1,int(input())): #More than 2 lines will result in 0 score. Do not l print(((10*(1-10**(i-1))//-9)+1)*i)