Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

galen_colin's blog

By galen_colin, 6 months ago, In English

UPD: We are doing this duel May 19th (today) 17:00 GMT.

Hi. NAC (ICPC's North America Championship) is in less than two weeks. We've done absolutely fucking nothing for it. So, what better way to get in shape than public humiliation?

Our team — Shayan, sam571128, and me — will stream (on Shayan's channel) a form of head-to-head duel against each other. For now, it will be on something like 1400's. If this turns out to be fun, we may do more of these streams, on harder problems (maybe up to 3000). It will tentatively start on Thursday, 9 AM ET (you'll also see it on the stream sidebar sometime soon) and will run for however long it takes me to have a winning score.

Tentatively, the format will be the simple idea of choosing a large set of problems and racing to finish it/solve the most in a fixed amount of time. We'll say that we can't look at each others' profiles or submissions. We can tell each other how many we've solved (we'll be in person together). Lying will be allowed (and encouraged). If you have a more interesting idea, let us know.

This is far from the best form of practice, but it's at least fun, so why not? There's some symbolism here — Shayan is a relatively new youtuber, and I'm a dinosaur, so this is in some sense a battle of the generations. That, or, it's not that deep. Either way, look forward to it. There will be plenty of banter involved, probably. Also maybe a bet for some amount of $.

Feel free to try to predict who will win. Wrong answers will be reported for "False information/Misinformation". Good luck.

Full text and comments »

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

By galen_colin, 7 months ago, In English

Spoiler: it's clickbait. Sorry. Titles like those are fun.

...but, it's the same style of clickbait as my roadmap [spoiler 2: if you haven't seen that, it markets itself as a standard roadmap (y'know, soulless and devoid of purpose), but then a few minutes in, says "ok but roadmaps are stupid and here's the advice that you really need" and completely changes the direction of the video]. That's my style of clickbait, and that's the vibe this blog goes for.

Full text and comments »

Tags hi
  • Vote: I like it
  • +207
  • Vote: I do not like it

By galen_colin, 7 months ago, In English

(Long blog ahead. Reader discretion advised.)

I feel we have a rather interesting WF story (note: we did the 47th finals, as the University of Maryland, as 2 people... explained below), so I figured I'd tell it.

Exposition

It actually starts way before WF, too. Our teams were decided on (some form of) merit based on an internal qualifier. My team for the regional and NAC (North America superregional) ended up as {me, Navick, mr.banana}. We did fairly well in those. However, for WF, my two teammates only had single-entry visas for the US, meaning that if they left, they couldn't come back into our country. So they couldn't really go with me...

Luckily, in such situations, ICPC lets you just replace your teammates. So we held another internal qualifier, and ended up with two new teammates — Sam (sam571128) and Ali (Kuzey). Great!

So then WF had its scheduling fiasco and was delayed until Apr 2024. This also meant that our co-coach — JeBeK — had a similar US visa issue (which wouldn't have been a problem with the original timing) and couldn't go with us. So we were down to 4 out of 5 (the 5 including our main coach) before it even began.

We did some individual practice and such far before the contest, but I suppose we weren't that motivated for the finals and didn't do that much as a team overall. However, the week or two before, we did do a more significant amount of practice and got our team dynamic ready for the contest.

Full text and comments »

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

By galen_colin, 9 months ago, In English

[The first few paragraphs of this blog, above the first spoiler, are just for story purposes and are irrelevant to the problem statement]

One fateful day, a naive and young version of me from about 5 days ago had a dream. A dream to stop being so terrified of hard problems. A dream to conquer the most challenging stuff that CF ever had to offer. A dream to... ok, enough of that, that's so stupid. Basically, I've been grinding 3500s lately, mostly for fun (and my god, has it been fun).

Two days prior, I found myself solving 1919G. That went fine, but after getting it, I noticed that despite G being 3500, it wasn't even the hardest problem in the contest — that honor went to the next problem, 1919H (the subject of this blog), which had no solves in-contest. I concluded that I would have to be insane to try that, and moved on to other problems.

Well, yesterday, I decided I was indeed insane. So I opened H again and gave it a serious attempt (with said attempt carrying into today). Obviously, it took me a while — it was somewhere within a 6-8 hour solve (which is also not the longest; probably its no-solve status came from the fact that G was also very hard and this problem can have a lot of implementation/casework if you don't do it smartly [guess who I'm talking about!]).

But I did eventually solve it. Right after, I went back to the problem statement to check my reward, and... lo and behold...

Full text and comments »

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

By galen_colin, 11 months ago, In English

Hi! It's been a while. My YT has certainly changed direction, but that's beside the point. I have been "silently" grinding for LGM over the past few months and sporadically earlier — avoiding explicitly doing contests, but doing plenty of virtuals and general practice. For now, I would put myself in the 2800s rating-wise (for a more detailed and dynamically updated log of the virtuals, see here).

I want to hold myself accountable better. Getting myself to wake up is pretty damn hard. So I've opted to stream my grind over my winter break from college (roughly 3 more weeks of break, and probably streaming throughout school too), not only for myself, but as some sort of motivation for everyone to work harder (perhaps to create an environment where one can tune in and grind for themselves alongside).

Logistics: I won't have a set start time, it will be soon after I wake up each day. I will aim for relative consistency, but no promises. It will run $$$\in [8, 12]$$$ hours each day in general, and start today/tomorrow, in roughly 12 hours. NOTE that you don't need to put nearly as much time in to improve well at CP, it's just the amount of time I'm willing to spend for now.

The first day's stream will be on my main channel to let my YT audience know, and the rest will be on a new one. It will be on every day except Sundays. I'll put it on CF's "stream tab" for the first two days, then leave it alone.

Plan: I will probably grind problems from recent CF rounds for a while, then finish each stream with an ARC virtual (I've found that I need to get better under contest pressure) and a brief analysis, I guess. I will mostly be doing 3000+ problems from CF, so unless you're red, you don't have to worry about spoilers except for the ARC's. For the sake of not exhausting myself, there will be no facecam. Sorry.

UPD: Per a request, I've added a log of the problems I've done. It will also be in the description of each stream (if I remember)

Full text and comments »

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

By galen_colin, 3 years ago, In English

UPD: Well, it took way longer than expected, but this is finally out. Thank you (and sorry) to everyone (especially those who did the form) who waited so long to see it come into existence. If you are interested and missed the previous thing, this explains what happened.

Since I never did an actual roadmap (i.e. a guide) to get good at this stuff (the journey video was more of a story), I’m finally going to create one, and I’m going to try to take a different approach to it. Here’s why it’ll be cool:

  • Extensiveness. Since I’ve surpassed the grandmaster mark, I can take it all the way to the level of becoming red. So there’ll be something for (almost) everyone.
  • Segmentation. Every rating range is a bit different. For example, at the early levels, it’s much more important to train basic logic than knowing a variety of topics. Later on, you have to be more well-versed in everything. Giving blanket advice for a rating gap of (over) 2400 points isn’t going to cut it, so there’s going to be different strategies for each rating range to suit the different needs of each level. That also means there’s going to be a ton of information overall, which is an added benefit.
  • Crowd-sourced… ness. I don’t want this to just be my own opinions, especially since it’s been a while since I’ve experienced the lower ratings. So I’m asking for the opinions of everyone that’s willing to give them. This includes stuff like how you chose problems to work on, how long you spent on a problem (and stuff in that regard), the topics you put the most emphasis on (if any), etc.
    You can add your information at this form

    for rating ranges that you’ve surpassed recently (defined more formally in the form). Huge thanks to everyone who helps out :)

And also, as an extension of the previous part, it’ll have some recommended/required topics to get through each level, kind of like a master topic list. I’ll add to this by running a script through the problems of each range and throwing together all the information I get.

This “ultimate competitive programming roadmap” will be out soon, whenever I get enough information to make it.

(I also made a video on this, but it says basically the same stuff as this blog)

Full text and comments »

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

By galen_colin, 3 years ago, In English

Oh no, another good youtuber lost to the algorithm...

And you'd be right. So on my journey to become a sellout, I've put out a video describing, in brief, the way I would find problems to practice on. It's designed as a short overview, with a more detailed description to follow. Video is here, just under 90 seconds in length.

Note that everything is my opinion — maybe you have other experiences and/or other opinions, and that's fine, do what works for you.


title

Full text and comments »

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

By galen_colin, 3 years ago, In English

I wanted to make a video on a cool problem, which also happened to be the problem that let me become red. It also ended up turning into a story about that contest and what happened leading up to solving it, including baby trucks, broken problem difficulties, and traveling to the past to see mid-contest rankings. I think some here are interested in stories, so I'm posting this here for those who are. The video is here.

Full text and comments »

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

By galen_colin, 4 years ago, In English

In the round 702 that happened a few days ago, somehow all submissions were rejudged on all tests, which include some of the uphacks that were done after the contest's hacking phase. For example, my F retroactively changed from accepted to TLE. Maybe this has changed, but I thought the original point of uphacks were to strengthen system tests for practice, not to change the verdicts after contests finish.

I'm a bit sad about losing first place, but it was unofficial for me anyway, so that's not really the point... but, is this a permanent change in the stance on uphacking? I was only hacked because I talked with someone else (after the hacking phase, when it was supposedly final) about a case I found that would cause TLE. Will it be better to keep this sort of thing secret in the future?

Full text and comments »

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

By galen_colin, 4 years ago, In English

upd: has been fixed now

This seems like a problem. On problem A, the statement guarantees $$$2 \leq n \leq 10^{14}$$$, but the validator accepts $$$n = 1$$$, causing an invalid edge case for many solutions.

For example, this hack should not work. The input is just:

1
1

pinging {Supermagzzz, Stepavly, MikeMirzayanov}

Full text and comments »

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

By galen_colin, 4 years ago, In English

Some time ago I posted this blog, which showed the diminishing effect of a huge rating loss over a period of many contests. Recently, I decided to try to show this effect a bit more broadly. So I extended it to be a bit more extreme and simulated my entire contest history while ignoring all rating losses. That is, I ran through every contest I was ever rated for and calculated the expected rating change with cfviz, but maxed out every rating change with $$$0$$$.

Now, the question is, how much of an effect did ignoring rating losses have? I give more details in this video, at the 6:56 mark (said video also has many more tips, generally being about how you can learn more from the contests you do, which is not-so-subtly the whole point of this blog). But, essentially...

the "optimistic" rating was $$$2662$$$, only $$$50$$$ more than my current rating. There's probably some sort of bias here, one of the possible issues being that I've had an unnatural streak of rating rises within my last few contests, which would likely significantly decrease the difference. You can find the full data here, which probably does show that $$$50$$$ is kind of below normal. Taking the average over all differences gives $$$90$$$, which is maybe more accurate. You can decide for yourself how significant this number is, but I would say that it's not that large of a difference, given that it's as optimistic as it possibly could be.

Full text and comments »

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

By galen_colin, 4 years ago, In English

Hi! As another "celebration" video (of 5K subs), I've made a video that attempts to offer a general strategy for problem-solving. As I mention many times, there's no real substitute for practice, but what I'm trying to do is help you avoid those frustrating "I should have seen that!" or "How did I miss that? I knew that already" moments where your own knowledge falters. In a sense, you should be able to (at least semi-consistently) perform at your full potential. Here's the link: https://www.youtube.com/watch?v=2TNyrw4hkIY

Full text and comments »

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

By galen_colin, 4 years ago, In English

I was gonna save this for another day, but after this post stunned the world, I figured that I might as well get on the shitposting train too.

Currently, Mr. Daved SecondThread Harmayor and I have the same rating: 2622. So it's clear that we need some sort of way to distinguish who's better between us, maybe some sort of duel or something. I wanted to get a bit of insight into how exactly this would go down, so I called up an old friend of mine, Petya. Because he was such a fan of the statue, he let me see into the future to find out the outcome. But what I saw might shock you:

I know, I know, it may be surprising, and it's such a one-sided battle too! But you can't dispute a real photo, even if it was taken in the future. Hope this clears things up

Full text and comments »

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

By galen_colin, 4 years ago, In English

YouTube's community post system is kinda bad, so I'll make an explicit blog about this so people here can see it too. You can probably see on the sidebar that there will be another topic stream tomorrowish, and it'll be about general tree problems. Like last time, I've prepared a mashup, which can be found here: https://mirror.codeforces.com/contestInvitation/06ef32f75d130163cc2536475b38aebe91ba3113. There are 8 problems, essentially hand-picked this time to either be cool problems or include some topic I wanted to cover. A warning: the last problem is much harder than the others.

Making a blog for each of these (there will probably be many in the future) seems kinda annoying though. Maybe a good solution would be to add some sort of "description" field to streams on Codeforces, since that doesn't exist on Twitch (except for channel description), and most people probably wouldn't look at the YouTube description?

I'll give an intro to trees, but it may also be a good idea to be familiar with them beforehand. For example, one useful thing for this would be the well-known tree basics video (by our lord and savior SecondThread).

Full text and comments »

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

By galen_colin, 4 years ago, In English

Hey guys!

I have a new (for me, at least) idea for stream content that I'm a fan of right now. The main idea is that I'll pick a particular topic — e.g. dynamic programming, greedy, binary search, etc. — and binge a bunch of problems on that topic for a few hours. I'll probably also start off the stream with an overview of what the topic is and/or what it achieves.

I feel like this idea has some advantages:

  • It gathers a lot of problems and ideas for a topic into a given video (this is an advantage because certain ideas often relate to other ones in the same topic)
  • It covers not only common usages of the topic but also certain tricks that only show up in practice rather than theory, like implementation tricks
  • It can easily cover a wide range of difficulties
  • It's more of a chill stream than covering a particular contest :)

What do you think about this? Either way, interested or not, I've opened a poll where you can decide on the first topic that'll be covered. You can see the stream time on the sidebar (here) or at the post (on youtube). For now, I'm gonna stick with beginner topics, and we'll see where it goes later.

18 hours-ish from now, I'll make a big mashup of problems of that topic and release it here, so you'll be able to see/try the problems beforehand.

UPD: Sorry that this is a bit late, but it looks like dynamic programming wins by a landslide! You can find the mashup here (ping me if the link doesn't work), and you should be able to preview and attempt the problems beforehand. The difficulty distribution is:

Distribution

On another note, I do recommend familiarizing yourself with the topic beforehand — I'll try to explain it somewhat, but it's better to have your own understanding of it

UPD 2: For archive reasons, I'll add the stream replay here: https://www.youtube.com/watch?v=zDEQaDl3cso. I ended up covering problems A-H and K, and may cover the others in a future stream.

Full text and comments »

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

By galen_colin, 4 years ago, In English

Hi! In celebration of reaching international grandmaster, I've made a video describing my entire journey up to this point. This includes practice and contest mentality tips throughout for different skill levels. So, in a sense, it can serve as a (partially) complete roadmap up to at least red, although it gets a bit sparse later on. You can find the video here. Enjoy :)

Full text and comments »

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

By galen_colin, history, 4 years ago, In English

I know a lot of people (including myself) have failed system tests on this notorious problem, and if you've been scratching your head for a while trying to figure out why, this (might be) the blog for you! (although it seems like there's more than 1 type of bug)

One common fail was a wrong answer on test 46. This bug might be because you haven't checked that the two characters you're removing were actually consecutive in the initial string (for a test case like deedc) — this can be remedied by storing indices along with the characters of the string and making the appropriate checks. However, this may now lead you to a different wrong answer. What I found that broke my program was the following simple case: ddeedc. The assumption I made was that if two equal characters at the front of the string haven't been removed yet, then it's not optimal to remove any more of those characters in that "chain" of equal characters (i.e. we checked it before). So to check if you wanted to remove two characters, it would be enough to check two positions ahead (or one, depending on implementation), and remove those two characters only if they were greater than the character two ahead.

However, that assumption is wrong. When ee is removed from that string, we end up with dddc. The reason that the last two d's weren't removed is because they weren't together initially in the string, meaning that it breaks my assumption (since it's optimal to remove the first two d's). So instead of checking the character two characters ahead, I instead had to check for the next different character (which is kind of obvious in retrospect). This can be fixed by storing another stack that contains exactly one copy of each character, rather than the consecutive groups of them. It's probably not easy to read, but if you want it, here's my correct submission.

Were there other bugs you found? Maybe you should comment them here, and we can have this blog as a universal compilation of our stupidity.

Full text and comments »

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

By galen_colin, history, 4 years ago, In English

Hey guys! I will be streaming my (virtual, obviously; get clickbaited lol) participation in the Div. 3 round that will happen soon. I'll start around 10 minutes after the official contest ends, and you'll be able to interact and ask questions through the chat. It being a virtual contest, as well as a stream, I'll try to solve slowly and explain everything elaborately, as well as answer any questions (ideally problem-related ones) live.

The stream will happen on my channel here. It's also my first time streaming, so there will probably be some fun technical difficulties. If this goes well, more streams of various rounds (or general streams) may happen in the future!

UPD: Stream is live! The contest will start as scheduled.

Full text and comments »

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

By galen_colin, 4 years ago, In English

See the original post on Codeforces for a playlist of all similar tutorials and also more information about what this is.

"Intro"

Timestamp: 00:00

This is a "hybrid tutorial" — it has both a blog and a video component. See my original post for more explanation of what this is and also a playlist of all past tutorials. You can view the full video here.

This tutorial is on centroid decomposition, a cool concept that has many uses in different problems. It's also another "decomposition" technique, one of many. I feel like this subject in particular doesn't have many great tutorials online that really capture the essence of what we do with the technique, so hopefully, I can improve that with this one.

Notation

We'll use $$$0$$$-indexing for the whole tutorial, and the example problem will also be $$$0$$$-indexed. In addition, "vertex" and "node" mean the same thing and may be used interchangeably.

Example problem

Timestamp: 02:04

If you've read other centroid decomposition tutorials, you've probably seen a problem called Xenia and Tree. While it's rather well-known now, it's a great example to use for an introductory tutorial because most of the implementation is simple.

I'll restate the problem here as well:

You have a tree of $$$n$$$ vertices, where each vertex is initially blue except for vertex $$$0$$$, which is red. There are two types of queries ($$$q$$$ in total):

  • Set the color of a vertex $$$v$$$ to red

  • Given a vertex $$$v$$$, compute the distance to the closest red vertex to $$$v$$$ (which could be itself)

There are other ways to solve this such as sqrt decomposition, but we'll do it with centroid decomposition.

Full text and comments »

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

By galen_colin, 4 years ago, In English

Here is a playlist of all hybrid tutorials I've done.

"Intro"

Timestamp: 00:00

Hi! Definitely not inspired by this comment, I've decided to try something that seems relatively novel — combining a blog and video tutorial into one, in a "hybrid" fashion. Both should be usable independently, but they will have the same "flow" and structure so you can reference both for concepts that are harder to grasp, and the two will supplement each other. The goal of these is to be complete — beneficial for both video and blog lovers, as well as full of enough information that anyone without much of an idea of what the concept is should be able to fully understand. There will be code as well, however, I very highly recommend not looking at it, but rather working out the implementation for yourself.

The concept of this tutorial is heavy-light decomposition. This one isn't 100% fair, as I'm basically copy-pasting one of my old tutorials that can be found here and adding a video component, but it's never been on Codeforces before.

The full video can be found here.

The motivation (path queries)

Timestamp: 01:20

Heavy-light decomposition is kind of a scary name, but it's really cool for what it does. Take some classic segment tree problem with two types of queries:

  • Compute the XOR of values on the subarray from $$$l$$$ to $$$r$$$
  • Update the value at position $$$i$$$ to $$$x$$$

Now, anyone familiar with a segment tree will recognize that it can be easily applied to solve this. But what if we moved the problem from queries on an array to queries on a tree? Let's reformulate the queries to be:

  • Compute the XOR of values on the path from $$$u$$$ to $$$v$$$
  • Update the value at vertex $$$i$$$ to $$$x$$$

which is exactly this problem from USACO, and the problem I'll be using as an example for the rest of this tutorial. To note, its editorial also provides a nice description of HLD.

Full text and comments »

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

By galen_colin, 4 years ago, In English

Hi everyone! I've gotten a few recommendations to start screencasting/making video solutions, and I was initially reluctant, but I realized it's kinda fun to do it. I've started out by screencasting today's Div. 3 and explaining my solution ideas at the end, arguably a bit awkwardly, but I'll get better as I get more experience with it. There are, of course, other awesome youtubers like SecondThread who do the same thing (and better), but I figured the more resources, the better for everyone.

Anyway, my first video is here. The quality's a bit bad for this one, but I know how to fix it for the future so it's just a one-time thing. In this video, you can see me spending too much time on C and F, watching my rank falling over time, and somehow still placing 14th with no mistakes. Enjoy!

As it's my first video, some of the explanations may be confusing (especially F). If you have questions about them or just feedback in general, feel free to leave comments (preferably on this blog, since there's math mode here). Expect more screencasts for the upcoming Div. 2's, contests on other sites like AtCoder and maybe CodeChef, and probably algorithm tutorials in the future.

edit: jesus christ, 100 subs in less than a day. You guys are insane, and I love you all!

Full text and comments »

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

By galen_colin, 4 years ago, In English

I've found that an interesting way to waste pass time is by watching the standings as rounds happen. As far as I know, there are mainly three ways to do this:

  • Watch a contest as it happens
  • Watch a contest as system tests run
  • Virtually participate, and watch standings that way

Obviously, the first two are time-dependent and won't work for past contests. The third option is more viable, but it both introduces meaningless data into the CF system and also forces you to watch with ICPC rules, which is inaccurate and doesn't work for other scoring systems. There's also no way to rewind, you have to watch in real-time, etc. It should be easier than that. And now it is!

I introduce you to Contest Replay — a simple website that will let you "watch" a contest's standings at any point in time. You can also target a user and watch their ranking instead of the overall leaderboard, as well as customize a ton of things to your preference. I've kept it mostly consistent with CF's design because it's nice and classic.

There are also some cool results you can find from watching past rounds — for example, in round 632 (id 1333), some troll held first place in official standings from 1:20 to 1:25 without having solved problem B!

A note: you'll have to pause "autoplay" and press Enter to change some of the settings because I'm bad at UI design. Sorry about that. Also, try not to enter invalid values.

If the thing crashes, anything about the site is unclear, or you have suggestions, feel free to comment below.

Some things I plan to implement:

  • API key support — this means "friends standings", viewing private groups/contests, and more.
  • Similar to "friends standings", an option to track just a subset of users.
  • Data validation, so it won't crash so easily
  • Support for IOI contests (might be simple, but it seems like it won't be)
  • Leaderboard improvement (distinguishment between systest/hack/pretest fails, also make the "-x" that show up when a problem is never solved consistent with the current time)
  • The two things above both require requesting all of the submissions made for the contest. This might be too much.

The site's hosted on repl.it, and you can view the source code at the repl here. It's... not exactly great, but you can see it if you want to.

This blog post is way too long already, but one final thing: autoplay works with negative numbers :)

UPD #1: major changes — API key support and friends standings. Also, a changelog so I don't have to update the blog for small changes; you can find it on the footer.

It also seems like it doesn't work for the edu round today. I think this is because people have changed their handles after competing. On the leaderboard, it shows their old handles, but since they've changed, the API thinks I'm requesting an invalid handle and returns a 400 error. Not really sure what to do about this.

Looks like the issue with the edu resolved itself — maybe handles auto-fix themselves on the standings given time, or there was some manual configuration involved. Anyway, if you see again that it gets permanently stuck on "Loading handles... ", that probably means something is wrong. An error message should pop up, but it may not (more bad UI design).

Full text and comments »

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

By galen_colin, 4 years ago, In English
A1
A2
B
C
D
E

Some notes/backstory about the round in general:

  • Sorry about the mistake in C! I hope it didn't affect you too much, if at all. You can blame this on my bad organization — a tester did actually catch this mistake, but somehow I forgot to correct it.
  • The only tester feedback I received besides corrections was to swap the problems C and D. Based on the solve counts, I guess it worked out.
  • A lot of people received WA17 or WA20 on D because of not making the default values in the array small enough. With $$$0$$$ as the default, you'd get WA17. Others, who used $$$-10^9$$$ or $$$-10^{10}$$$, got WA20. I actually made this mistake myself, and my brute-force didn't catch it because it only seemed to happen with large enough $$$n, k$$$.
  • I was skeptical about placing E at the end because of how simple the solution was, but that seems like it was a good choice now.
  • I understand criticism about the problems being too "standard" — in fact, I'm not really proud of having a problem like D, but I thought it was necessary for balance (turns out it wasn't anyway). At the very least, they could serve to teach people new algorithms.

Full text and comments »

Tutorial of Testing Round #XVII
  • Vote: I like it
  • +33
  • Vote: I do not like it

By galen_colin, 4 years ago, In English

Since the two failures of the contests last weekend, a lot of people have expressed that they want to help Codeforces in some way, but there isn't much many of us can actually do about the system. At the same time, there have also been a lot of (reasonable) requests for a testing round before round 656. So let's put those two together. Why don't we set some potential testing rounds? Maybe they should be rated, maybe they shouldn't, but in any case, they should be interesting enough to draw in participants like normal rounds do. It's probably not a good idea to "sacrifice" rounds not rated for Div. 1, as some have suggested, because that still wastes the efforts of the setters. So what I'm suggesting is that we prepare rounds with the specific intent of them being testing rounds.

Some advantages of this system:

  • If these rounds are unrated, there's much less pressure for original/novel problems (and probably fewer problems will be rejected), so more of these rounds will be able to be prepared
  • On this same point, it's a great entry point for new problemsetters: rounds are easier to prepare and there will likely be fewer participants (meaning it's easier to manage during the contest)
  • It reduces pressure on MikeMirzayanov and the Codeforces team
  • You get more problems to solve!

Some potential disadvantages:

  • If problems are of lower quality, then they might pollute CF! But there's a simple solution to this: if this becomes an issue, just don't add the problems to "Problemset"
  • People would be preparing rounds with a larger chance of the whole round failing! While this is true, these rounds support CF in a different way: they test its infrastructure. And it's not like the whole round is wasted if something goes wrong — after all, that's what we possibly expect from a testing round.

I think it would help, and some testing round would especially be necessary before round 656. So... I'm not one to just throw around words. I have a few problems of my own prepared (not the most "novel", but they should be somewhat educational — I tried to include some common topics, as people have been wanting lately), and am willing to offer them to a testing round. I'll probably host it in the gym, unless it becomes an "official" testing round, and I've adjusted the constraints/time limits to take longer per test case to better simulate the judge pressure of an actual round, since there will likely be fewer people.

Tentatively (it's still in the testing phase, so things may change), there will be 5 problems and the round will last 2 hours. Expect the difficulty to be around Div. 3, maybe somewhat easier. When it's ready, I'll post it in the gym.

I think a good time to schedule it would be around a day before the upcoming round 656, perhaps at the time that Monogon's round was to be held before it was rescheduled. So for now, it will be held at this time (later changed to 1 hour earlier — ignore this link).

What do you think about this?

UPD: you can now view the contest in the gym. Registration opens 6 hours before it starts, which I don't think I have control over. It will start at Jul/16/2020 16:35 (Moscow time), which is 1 hour earlier than it was initially set to.

Thanks to 12tqian, meiron03, and Kaunta for testing. A special thanks to 12tqian for letting me theme the problems around him. And, of course, thanks to MikeMirzayanov for the awesome Polygon, the even more awesome Codeforces, and the platform issues so that this round can be possible :P

UPD 2: the scoring distribution is $$$(1 + 1) - 1 - 1 - 1 - 1$$$ (it's ICPC mode lol)

A is split into subtasks. A1 has a time limit of 15 seconds (maximum setting) with 20 tests, and I highly encourage submitting slow solutions that get close to TL. The rest of the problems have relatively normal constraints. If more people register than I expect, I'll lower these numbers.

If you really want to put load on the queue, you can stall your program until it gets close to 15 seconds. An example of this in C++:

code

Other languages have stuff like this too, you can check the documentation for it.

UPD 3: Editorial is out. I hope you enjoyed the round! It seems like there were way too few participants for it to be effective, though. I hope the div. 3 tomorrow goes well.

Congrats to the winners!

$$$~$$$ 1. Geothermal
$$$~$$$ 2. Fanurie
$$$~$$$ 3. CV_Hasan_Fan
$$$~$$$ 3. NotGivingUp
$$$~$$$ 5. idk3910

And an honorable mention to h2o_ and erekle for full-solving.

Full text and comments »

Announcement of Testing Round #XVII
  • Vote: I like it
  • +257
  • Vote: I do not like it

By galen_colin, history, 4 years ago, In English

Hi everyone! I'm writing this blog to hopefully throw out a bit of inspiration.

With any measure of skill such as rating, people are always going to tie up their self-confidence with it. Unfortunately, that means when rating is lost, people lose confidence and/or motivation, which always sucks, especially with huge rating losses that seem impossible to overcome. But I want to demonstrate with an example that in the long run, even the largest rating losses won't affect much.

We'll use my performance on Global Round 7 as an example. A whopping -166*. Devastating, right? Well, let's see about that...

Let's look at the alternate timeline where I didn't participate in the round and the rating loss never happened (but my performance in the later contests was the same). Thanks to sjsakib and cfviz for allowing me to break the rules of the universe (probably not an intended use case, but you never know with users...).

Full text and comments »

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