yoshi_avx's blog

By yoshi_avx, history, 2 weeks ago, In English

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

Full text and comments »

  • Vote: I like it
  • +4
  • Vote: I do not like it

By yoshi_avx, history, 2 months ago, In English

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.

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By yoshi_avx, history, 4 months ago, In English

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?

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By yoshi_avx, history, 4 months ago, In English
  • Vote: I like it
  • 0
  • Vote: I do not like it

By yoshi_avx, history, 7 months ago, In English

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

Full text and comments »

  • Vote: I like it
  • +1
  • Vote: I do not like it

By yoshi_avx, history, 12 months ago, In English

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

Full text and comments »

  • Vote: I like it
  • +3
  • Vote: I do not like it