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

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

Preparing a lookup table in binary GCD can be somewhat effective if the inputs are small. I've seen a 30% time reduction with a 512x512 table (which consumes almost no memory and time) for inputs less than $$$2\times10^9$$$. It scales quite linearly with the log.

Code

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

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

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

It comes to my mind that while some problems have obviously wrong solutions, they're still accepted in an algorithmic contest. E.g. https://mirror.codeforces.com/blog/entry/147991, or (possibly) https://qoj.ac/contest/1901/problem/8614, https://dmoj.ca/problem/coci16c4p4. Would this be regarded as an error, or actually acceptable? (Output only, or partial scoring problems are excluded from this).

A common "excuse" is to generate weak tests to deliberately make the intended etc. solutions pass.

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

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

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

It seemed that this problem got not much more development going to it since its introduction, so my solution is still the fastest after nearly a year: https://judge.yosupo.jp/submission/268155.

There're only two main optimizations: AVX input, and back-substitution using Method of Four Russians (this is how I became the fastest over adamant's lead.)

Would there be a faster solution to this problem?

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

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

Автор yoshi_avx, история, 4 месяца назад, По-английски
  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

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

Please respect the function $$$dmax(n)$$$ by actually using it, instead of masquerading it for a random function that serves as a very rough approximation. Context: $$$dmax(n)$$$ is $$$max_{1\leq i \leq n}\tau(n)$$$.

Fact

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

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

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

Hey MikeMirzayanov, can you fix the mirror website of codeforces, it's useful for many people. Thanks!
UPDATE: mirror codeforces is back!!

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

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