Skip to content

Commit

Permalink
solution
Browse files Browse the repository at this point in the history
  • Loading branch information
sabira-khan committed Apr 10, 2022
1 parent 29af4df commit 7421e16
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions PythonSolutions/Beecrowd1323_uri.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
n = int(input())
while n != 0:
print(int((n * (n + 1) * ((2 * n) + 1)) / 6))
n = int(input())

0 comments on commit 7421e16

Please sign in to comment.