Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Блог пользователя cohadar

Автор cohadar, история, 13 месяцев назад, По-русски

Problem D in recent div3 contest uses lcm function.

This function exists in math library in python 3.9 but NOT in codeforces python 3.8

It is of course easy to define it with gcd function: lcm(a, b) == a * b // gcd(a, b)

  • Проголосовать: нравится
  • -11
  • Проголосовать: не нравится

»
13 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Why are people negative rating this? It is just a description of a language discrepancy? And is useful if you are solving problems with python.