greateric's blog

By greateric, history, 4 days ago, In English

Might wanna update your computer if you run linux. (and probably also codeforces servers)

https://copy.fail/

Also maybe I don't fully understand the kernel and am complaining too much but still who decided it was a good idea to let page cache be overwritten

Full text and comments »

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

By greateric, history, 4 weeks ago, In English

Think FFT doesn't matter? You're probably right I found an unintended extra speedup to a div 2 E that I thought was funny.

I was practicing and came across 2025E while practicing, a 2200 problem from an educational div2.

If you want, try the problem yourself. Then suppose $$$m = 1000, n = 1000$$$, and see if you can solve it in faster than cubic time.


This is my cubic solution (read this even if you've solved it yourself/seen the editorial since I thought of a slightly different way to do it)

Answer

Now for the fun part.

FFT

Full text and comments »

Tags fft
  • Vote: I like it
  • +26
  • Vote: I do not like it