TGViewer
Pythonist.ru - образование по питону Pythonist.ru - образование по питону @pythonist_ru · 24K subscribers
Post #1877 4.56K
Ответ к предыдущей задаче для новичков

def arrangeCoins(n: int) -> int:
counter = 0
m = 0
row = 1
while m <= n:
m += row
row += 1
counter += 1

return counter if counter == row else counter - 1

#задача #coding
  • 💩 6
  • 👍 2
  • ❤ 1
More from @pythonist_ru
  1. Oct 1, 2026photo post
  2. Sep 28, 2026🔥 Вакансии по Python за неделю: 📥 Middle+ Python/Django-разработчик Ведомости Middle · R…
  3. Sep 22, 2026Задача с кодом. Сложное упорядочивание Упорядочивание слов в ступенчатом лексикографическо…
  4. Sep 22, 2026Бустани свою карьеру на бесплатном фесте Ozon ON! Думаешь, как попасть в топовую компанию…
  5. Sep 22, 2026photo post
  6. Sep 21, 2026🔔 Вакансии по Python за неделю: 📥 Backend Developer Python i-Line Part time · Middle · R…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →