Powered by Starship v1.3

Tag: codeforces

main page
Should I use normal binlift
Aug 22 2024
8:42 PM

Up until about now I've been using the binlift from this cf blog, which is linear in space and build complexity, but has a higher constant factor. This has really never been useful to me, and it's a little more complicated to write, too..

tags: programming codeforces

Bad CF Practices, part 2
Jul 19 2024
11:43 AM

Today I was working through another simulated CCC contest and noticed how codeforces/speedforces has shaped my problem triage process - as CF doesn't award partials, my brain has gotten used to this decision tree:

...

read more

tags: programming codeforces

Bad CF Practices
Jul 18 2024
12:06 PM

So today I was working on this problem on DMOJ.

First, some observations:

  • We're dealing with a tree of max size 2e5
  • Result is the count of some type of paths
  • DP contained-subtree etc etc

Constraint analysis: Result is bounded by something on the order of 4e10, higher than the 32-bit limit.

This is where my bad CF habits kick in...

read more

tags: programming codeforces