Last Submissions | ||||||
---|---|---|---|---|---|---|
Problem | Verdict | Lang | Time | Best | Rank | Submit Time |
| discuss10523 - | Accepted | Python | 0.520 | 0.000 | 1612 | 34 secs ago |
Problem: 10523
Suggest:
- Because python permit calc big number => Use python to slove problem
Code Python:
Code Python:
while True:
try:
n, a = map(int, input().split())
except:
break
s = 0
for i in range(n):
s += (i+1)*(a**(i+1))
print(s)
No comments:
Post a Comment