Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
zehengl committed Feb 1, 2024
1 parent 9c7b66b commit d066826
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/treirad.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import math

n = int(input())

t = 0
for i in range(1, math.ceil(n ** (1 / 3))):
if i * (i + 1) * (i + 2) < n:
t += 1
print(t)

0 comments on commit d066826

Please sign in to comment.