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

Автор Argon_18, история, 12 дней назад, По-английски

Upon reading the question, power of primes immediately come to mind,

2, 4, 8, 16, ... works, but we hit the 1e18 constraint pretty quickly, need to include powers of more primes,

One way is to start from cube of a prime, them when this primes constraint hits, we add a link element between the powers of this prime and the next prime, Link element = p*p*q, p is the prime whose constraint we just hit and q is the next prime.

So link between 2's power's and 3's power's would be 12.

Solution: https://mirror.codeforces.com/contest/2218/submission/370051646

Полный текст и комментарии »

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

Автор Argon_18, история, 7 месяцев назад, По-английски

After each contest, we hop on vc and just discuss what we did we select like 3 questions a day, and then at night, discuss the solutions that we tried

Someone to discuss problems and concepts with basically

Полный текст и комментарии »

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