mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
12 lines
205 B
Python
12 lines
205 B
Python
def problem_p03781(input_data):
|
|
X = int(eval(input_data))
|
|
|
|
for n in range(1000000):
|
|
|
|
# return ((n * (n - 1) // 2))
|
|
|
|
if (n * (n - 1) // 2) >= X:
|
|
|
|
break
|
|
|
|
return n - 1
|