Codeforces Weekly 865 (Div 1!!)
Link
First div 1 only competition! Went... fine, I suppose. Gained a bit of rating, could've gained a lot more if I trained interactive problems a bit.
A - Okay don't laugh at me. I took a while on this problem. I think in large part because of how early the competition was, it took me a while to get warmed up and actually figure out what the fuck is going on with this one. I figured out the trick for even-length arrays but assumed it was universal - once I figured out that every odd-length array worked, I got it. (37 minutes, 2 failed subs)
B - A dreaded interactive problem - instead of getting all the information at the start, you have to send out queries and receive information back. I haven't practiced these at all, like literally never solved one despite knowing of their existence.
I kinda turned my brain off for it. The actual solution isn't that bad I think - you do a bunch of queries to form a long line, and then you can do a bunch more to find an endpoint. Either way, didn't get this one.
C - My savior was this really interesting problem. Took me a bit to play with it conceptually, but you can do a BFS starting from 1 and map each node to a tier based on its distance from 1, by dependency. If a node isn't in the tier mapping, it's infinite. Otherwise, you can recursively construct the ideal pattern in O(n^2) using your tier mapping. (65 minutes, tho some of this was on B)
Gained a bit of rating! Currently just under 2000 rated. I think I'm definitely on track to make Master (2100) by August - that didn't feel like my best effort, and I'm still gaining rating.








