You can use several words in query to find by all of them at the same time. In addition, if you are lucky search understands word forms and some synonyms. It supports search by title and author. Examples:

  • 305 — search for 305, most probably it will find blogs about the Round 305
  • andrew stankevich contests — search for words "andrew", "stankevich" and "contests" at the same time
  • user:mikemirzayanov title:testlib — search containing "testlib" in title by MikeMirzayanov
  • "vk cup" — use quotes to find phrase as is
  • title:educational — search in title

Results

1.

beginners

Last visit:  9 years ago
Registered:  13 years ago
2.
By YouKn0wWho, 5 years ago, In English
The Ultimate Topic List (with Resources, Problems and Templates) This post took $4$ years to make. And this is the most significant thing that I have ever shared in my whole life. #### Story Hi, I have been doing CP for like $4$ years and from the very beginning what I have been feeling is a need for a comprehensive topic list that will contain all sorts of topics from easy to advanced with corresponding tutorials, problem lists and templates so that I wouldn't have to look at different sites, from here to there. So what do you do when you think something is missing from the world? Yeah, you create that thing! So here I am, sharing the ultimate topic list that you will need in CP. When I say that it took me $4$ years to make it, I genuinely mean it. I have been collecting them from the inception of my CP journey and yesterday I thought that it got its almost complete shape. You may not imagine the sheer excitement hidden under each of the characters of this post. #### Payment You can pay me just by upvoting this blog and by being a bet...
$1900 - 2399$ - $3$ — If your rating is $2400+$ If you are a beginner then just learn, If you are a beginner then just learn basic topics and solve problems.

Full text and comments »

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

3.
By SecondThread, history, 6 years ago, In English
Algorithms Thread 8: Tree Basics (+ Gym Contest) Algorithms Thread Episode 8: Tree Basics ================== Episode 8 of Algorithms Thread [comes out in <90 minutes!](https://youtu.be/MOy4UDjN8DM) This one is a bit more beginner-friendly and covers the following ideas: - Graph/Tree Diameters - Binary Lifting - Tree Flattening with Euler tours Also, to make sure you have actually learned that stuff, I made a [custom Gym set on CodeForces](https://codeforces.me/gym/102694) that will last two weeks that hopefully is really good practice for making sure you have learned this stuff. Here is a link to the gym set; it will be available 45 minutes after the video comes out so that people have time to watch the video before starting the set, if they are interested in penalty points. All of the problems in the gym are original to this set (in their flavortext at least, some are simple enough that I'm sure they have appeared in other contests before). The new gym integration was heavily inspired by [user:Errichto,2020-08-16]'s ...
[comes out in <90 minutes!](https://youtu.be/MOy4UDjN8DM) This one is a bit morebeginner-friendly and, is a bit more beginner-friendly and covers the following ideas:

Full text and comments »

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

4.
By MikeMirzayanov, 9 years ago, translation, In English
Codeforces: Updates in rating and rounds <img src="/predownloaded/21/a3/21a33b497ee8a34a678befc3f79745eb69a9cf07.png" style="float:right; margin: 0 1em 1em 1em;"/> Hello, Codeforces! It's time for news. I hope you will enjoy! * We reduce the rating bound for the orange color. Thus, now the orange rating (and the _Master_ title) will start from 2100 rating units. * The lower bound of the rating for _legendary grandmasters_ is increased to 3000 rating units. Thus, right now in the community, 14 participants meet this requirement. Real legends! * For rounds like "Div. 2 Only" the upper bound of the rating for official participation is increased. Now everyone whose rating is less than 2100 (i.e., before _masters_) will be able to register for such rounds to participate officially, their rating will be updated based on the results of the round. We do not plan to increase the complexity of Div. 2 rounds. Practice shows that the problems of such rounds are interesting and useful for participants "below the orange". ...
rounds simple training problems that will help beginner participants to gain skills and to get new

Full text and comments »

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

5.
By MikeMirzayanov, 6 years ago, In English
Codeforces New Feature: Rewrite Statements in Mashups Hello Codeforces! There is something new for you. It seems that now it will be easier to reuse problems from the archive for educational and other purposes. As you know, problems from past Codeforces rounds can be added to <a href="https://codeforces.me/blog/entry/10099">mashups</a> simply by their codes of the form like <code>1234D</code> (contest ID + problem letter). I myself regularly used this when I taught at Saratov University &mdash; it was very convenient to prepare trainings: problems have expected complexity and topics, there are Russian and English statements, you can see the analysis and many solutions. Because of hacks and uphacks, problems in the archive usually have strong tests. Almost all of them are well-prepared. In addition, with the help of <a href="https://codeforces.me/blog/entry/21912">user lists</a>, you can easily pick up problems for a group of students that they did not solve. <img src="/predownloaded/2f/ec/2fecbf1f7e7a8f8655f0f74576fd1f6dbbc2307...

Full text and comments »

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

6.
By MikeMirzayanov, history, 7 years ago, In English
About Division 4 Rounds Hello Codeforces! Initially, here was an announcement of the first round for the fourth division. But currently, in comments there is the huge discussion of division 4 rounds in general. Honestly, I read all (almost all) comments. I decided to replace the text of this post to match the comments better. Also, I'll write one more post separately to discuss problems. And this post will be about division 4 rounds in general. About Div4 rounds: * I'm not afraid of a queue or servers overload: it is technical challenges and my task is to resolve them. The previous biggest rounds were not overshadowed by technical problems and judging delays, they went well. I see no reasons why something should work much worse in the rounds for Div. 4 (and if it does, then this should be fixed). * I don't think that Div. 3 rounds are too dificult. Actually, they are quite good for beginners. They are noticeably easier than Div. 2. Almost every round trusted participants solve all problems, ma...

Full text and comments »

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

7.
By Radewoosh, history, 8 years ago, In English
Blogewoosh #6 Hello, codeforces! Sorry for the long break, but the last weeks of holidays and the first weeks of academic year took my attention. I hope today's trick will make you forgive me. :P I invented this trick a few years ago, but for sure I wasn't first, and some of you already know it. Let's consider the following **interactive** task. There are $n$ ($1 \leq n \leq 10^5$) hidden integers $a_i$, each of them from range $[1, 10^{18}]$. You are allowed to ask at most $103000$ queries. In one query you can choose two integers $x$ and $y$ ($1 \leq x \leq n, 1 \leq y \leq 10^{18}$) and ask a question ''Is $a_x \geq y$?'' The task is to find the value of the greatest element in the hidden array. The checker **isn't** adaptive. Unfortunately, this task is only theoretical, and you cannot solve it anywhere, but it'll turn out, that solution can be handy in many other, much more complicated problems. [cut] $ $ Even beginners should be able to quickly come up with a solution which ask...

Full text and comments »

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

8.
By Um_nik, history, 4 years ago, In English
Pro Tips - get them while they are free More tips to use while studying under my tutoring [here](https://um-nik.notion.site/Pro-Tips-8b923b0dc7c94770824bdf4184afc43c). ## Stop caring about the rating Unless there are prizes involved, your position in the standings makes no difference. I can feel awful after winning a contest if I know that I could solve one more problem. Or I can feel OK losing a bunch of rating points knowing that I solved everything I could.  Because rating is just a number. It is highly volatile and it depends on other people, not only on your skill. But solving problems is totally up to you. And you should evaluate yourself not based on some random metric, but on your honest feeling whether you performed up to your expectations. Your sense of self should be under your control, don't get hung up on some imaginary value, you cannot reduce your progress to a single number. ## Don't use more than one account Rating is just a number. Do not be afraid to lose your colour. You’ll get it back in no t...

Full text and comments »

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

9.
By KAN, 6 years ago, In English
How to set a Div. 1 or a Div. 2 round on Codeforces As you probably know, most of the rounds on Codeforces are created by active community members. We are very grateful to our talented authors from all around the world for bringing their ideas to tens of thousands of competitors, providing fun and learning experience for contestants of every expertise, from beginners to the world's top programmers. This post will cover the steps you need to take propose a round and become a problem writer on Codeforces. ## Who can be a problem author Best problems usually come from the most experienced participants. We have limited resources for rounds reviewing, so to make the process flawless for writers, starting January 1st, 2021, the following requirements for problem authors will be applied: - rating: 2100 or above, or - was a writer in the past. The restrictions may be updated in the future, the post will be updated accordingly. If your round is already in the review status, don't worry, it will be reviewed regardless of the current...

Full text and comments »

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

10.
By peltorator, 18 months ago, In English
"Algorithms in Depth" Stream Series: Kicking Off With FFT Hi Codeforces! I’ve long believed that it's _really_ worth revisiting the same competitive programming topics multiple times. The first time, you’re just trying to survive and maybe grasp the basics. The second time, you’ve solved some problems, you know where you got confused, and you're ready to absorb more. By the third time, you’ve seen and solved enough to start appreciating the subtleties — the tricks, advanced applications, deeper meaning. But most lectures I’ve seen are designed as a one-size-fits-all — trying to cover everything from scratch _and_ dive into the advanced stuff in one go. That’s rarely optimal. Take binary search. I once talked about it for six hours straight. A beginner at that lecture would’ve probably quit CP immediately. And that’s ok. Beginners don’t need all that. But the truth is, there _is_ that much depth to explore even in seemingly simple topics like binary search — once you're ready. Yet many people only see the beginner version once and mo...
straight. A beginner at that lecture would’ve probably quit CP immediately. And that’s ok. Beginners don’t, - **Beginner**: minimum viable understanding to start solving problems., Most lectures try to combine the beginner and intermediate levels and skip the advanced part, Take binary search. I once talked about it for six hours straight. A beginner at that lecture

Full text and comments »

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

11.
By YouKn0wWho, 4 years ago, In English
[Tutorial] Common Mistakes in Competitive Programming and How to Avoid Them One thing is for sure. You do make mistakes. I also make miskates and that's what makes us human. But what we can surely do is &mdash; to try to minimize the errors that we make throughout our life. I have compiled some of the mistakes that I made in my early Competitive Programming phase. I also mentioned how to avoid them. Also, in most cases, I will give you a chance to find out what the bug is before I reveal the culprit as I tried to make this blog interactive. The codes that I have used in this blog have been written in C++ as it is the most used language for CP. **So, if you are new to CP, stick with me as you might don't wanna repeat the mistakes that I made when I was a beginner.** #### Mistake 1 Check out the following code: <spoiler summary="Code"> ~~~~~ #include<bits/stdc++.h> using namespace std; int main() { int a = 1000'000'000,b = 1000'000'000; long long product = a * b; cout << product << '\n'; return 0; } ~~~~~ </spoiler> The outp...
problem. This is really important for a beginner that will help you in the long run. - Specially, when I was a beginner.**

Full text and comments »

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

12.
By -is-this-fft-, history, 6 years ago, In English
How to ask for help in PM There was a blog today with a similar title, and although it was (I think, not really sure as I didn't get a good look) some kind of satire/joke blog, I wanted to post some serious advice about things I (don't) like to see when people are PMing me. However I decided that this wouldn't be in the spirit of the blog and decided to make a separate blog. And now that blog is deleted anyway. While it's not a bad thing to write messages to more experienced users, most people who write me do things that make them very difficult to deal with. These are my opinions, but somewhy I feel that many reds will agree. Some things here feel silly to write because they are so obvious. But I'm only writing them because people regularly mess them up. [cut] $~$ ####Use punctuation and spelling. There are some [very simple rules](https://codeforces.me/blog/entry/82186#comment-689836) that make your messages infinitely more readable. I find it especially strange when many of these messagers call...

Full text and comments »

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

13.
By YouKn0wWho, 3 years ago, In English
A Huge Update on The Ultimate Topic List Hi, around 3 years ago I compiled most of the Competitive Programming topics in one place [here](https://codeforces.me/blog/entry/95106) with relevant resources, templates, and problems. It got great responses, it now has 4000+ upvotes and the blog website has been visited 200k+ times! But it contained links to only 1-2 resources and problems per topic and it didn’t contain basic topics for beginners. Also, there was no way of tracking your progress. This time I decided to improve it, by a lot. I took this project one month ago and it took me on average 6h-10h per day for the last one month to complete this project (also I was doing a full-time job). I hope it was worth it! The new version is not just a blog, it is a full-fledged website with multiple features (I have hosted it on one of my existing websites): ![topic_list](/predownloaded/7e/20/7e2045c57574d37e170ea3eb1fdc5516ff68bc0e.png) - **Topics:** The website contains around 500 topics and tricks. Not all topics are ...
contribution, I will review it and add it to the public list. - **Beginner Friendliness:** Last, ! Once you suggest a contribution, I will review it and add it to the public list. - **Beginner

Full text and comments »

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

14.
By parveen1981, history, 6 years ago, In English
I compiled a list of almost all useful blogs ever published on Codeforces [update: till 09.06.2021] <h3 style="color:red">If there are any blogs that I have missed, please tell in the comment section. Thank you.</h3> # Mathematics Stuff - [Number Theory in Competitive Programming [Tutorial]](https://codeforces.me/blog/entry/46620) - [Number of points on Convex hull with lattice points](https://codeforces.me/blog/entry/62183) - [FFT, big modulos, precision errors.](https://codeforces.me/blog/entry/48465) - [Number of ways between two vertices](https://codeforces.me/blog/entry/19078) - [Mathematics For Competitive Programming](https://codeforces.me/blog/entry/76938) - [FFT and NTT](https://codeforces.me/blog/entry/19862) - [Burnside Lemma](https://codeforces.me/blog/entry/51272) - [Number of positive integral solutions of equation 1/x+1/y=1/n!](https://codeforces.me/blog/entry/76836) - [On burnside (again)](https://codeforces.me/blog/entry/64860) - [Simple but often unknown theorems/lemmas/formula? Do you know?](https://codeforces.me/blog/entry/55912) - [Probabili...
) - [Centroid Decomposition on a tree(Beginner )](https://codeforces.me/blog/entry/73707) - [Palindromic, ://codeforces.com/blog/entry/64914) - [Centroid Decomposition on a tree(Beginner )](https

Full text and comments »

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

15.
By Dominater069, 2 years ago, In English
Analyzing how good O1-Mini actually is I would like to thank [user:redpanda,2024-09-13] and [user:qmk,2024-09-13] for their great help in writing and reviewing this blog. They are also the users who queried O1-mini for all the following problems. We tried O1-mini on several problems, from a variety of sources. Let's list the results first. **Note** : - Some of the WA verdicts here actually means that the AI just "stopped thinking" which means the AI thought for a long enough time without any useable results so it ran into an error. - All ratings mentioned are Codeforces ratings, the Atcoder ratings have been converted to codeforces rating. To measure the approximate codeforces rating of the atcoder problems mentioned here, you can use https://kenkoooo.com/atcoder/#/table/ + https://silverfoxxxy.github.io/rating-converter. <h4> D2ABs </h4> - [problem:1762B] [<a class="rated-user user-gray" title="Gray">1100</a>] <a class="rated-user user-green" title="Green AC">AC</a> - [problem:1998B] [<a class="rated-...

Full text and comments »

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

16.
By Geothermal, history, 3 years ago, In English
A Highly Experimental Training Plan for Beginners Very loosely inspired by some comments on [Thoughts on Reaching Cyan?](https://codeforces.me/blog/entry/101561) and [my recent AMA](https://codeforces.me/blog/entry/118845). Until now, I've avoided telling beginners to practice math before working on competitive programing problems because I haven't figured out a helpful way of doing so. This post is my attempt at telling grays to train math first in a way that might lead to improvement without an absurd time commitment. ## Introduction This section is largely motivation for why I'm proposing this training plan. If you just want to see the instructions for the training plan I'm proposing, you can skip this part. The first subsection in particular is not especially relevant to the rest of the post, but I wanted to have some documentation explaining why I still think the traditional "just solve problems" advice is good. ### The Conventional Advice on Improvement I'm frequently asked for advice on how to improve at co...
before I started CF, but I was still a relative beginner when I signed up for CF, so I think the larger, relative beginner when I signed up for CF, so I think the larger factor is that I had five years of math

Full text and comments »

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

17.
By antontrygubO_o, 7 years ago, In English
On setting D2A and D2B problems Disclaimer: as always, everything in this blog is just my opinion. Some problemsetters don't take easy problems seriously. One very popular opinion is that the D2A-B problems are just stupid implementation exercises intended for beginners to learn how to code. ![ ](https://i.imgur.com/ioTMeKL.png) ![ ](https://i.imgur.com/TJ2IPzb.png) It's true that D2A-B problems are mostly like this on most platforms. This is one of the reasons why a lot of people don't like combined rounds: they think that solving D2A-B problems can't be interesting and just takes time which could be spent on solving fascinating problems of higher level. From point of view of most participants, easy problems just can't be good, because if problem requires some thinking than it's not easy enough for D2A-B level. Easy problems can't be interesting, they say! ![ ](https://i.imgur.com/aRe2p6l.png) ![ ](https://i.imgur.com/wLKlixu.png) This situation really upsets me. This kind of attitude from the ...

Full text and comments »

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

18.
By -is-this-fft-, history, 4 years ago, In English
On "is this greedy or DP", forcing and rubber bands #### Introduction When it comes to "problem-solving techniques", there are roughly 3 levels: 1. Concrete algorithms (Kruskal's algorithm, Li-Chao tree, fast Fourier transform) 2. General patterns (dynamic programming, greedy, square-root decomposition) 3. Meta-strategies ("how do I even go about solving this problem?") There is some grey area, but in general this classification works well. [Many tutorials](https://codeforces.me/catalog) have been written about ideas that fall into 1 or 2. But very little has been written about the third category. On the catalog, I think the only blogs that really qualify are [this](62730) and [this](20548). There is also [this](92248?#comment-809401) valuable comment. As to why there is so little written, I think I can identify two reasons. - Most strong contestants don't really consciously think about these. After solving a problem with FFT, it's hard not to know you used FFT. If you used DP, even if you did it without thinki...
exactly what happened here. The problem was one with range queries — a beginner assumed that it

Full text and comments »

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

19.
By -is-this-fft-, 6 years ago, In English
[Feature request] Some suggestions for blogs I wanted to suggest some improvements for the blog system. Some of these things have probably been said before. Some of these things should be pretty easy to implement, others are harder and might require a complete rework. I tried to put the easy things first. [cut] $~$ #### Let's do something about necroposting This is probably my biggest pet peeve about Codeforces blogs. Most of the time, Recent Actions is filled with very old blogs, some of which have been brought up for pretty much no reason at all. Currently, we have [useful C++ "library](https://codeforces.me/blog/entry/8387) from 2013 in Recent Actions, where the recent comment answers an old question which has already been answered better. Similarly, there is [How to add friends?](https://codeforces.me/blog/entry/2006) which was brought up to make some joke that has already been done. The thing is though, a lot of the time these blogs are not brought up by trolls or anything like that. They are brought up by hel...
", "Beginner questions", "Tutorials", "General discussion" etc. In each of them, you could sort the, /5083) in Recent Actions currently, and both of them are there because a beginner asked a question, /blog/entry/5083) in Recent Actions currently, and both of them are there because abeginner asked a

Full text and comments »

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

20.
By antontrygubO_o, history, 7 years ago, In English
On problemsetting 2 [Previous part](https://codeforces.me/blog/entry/70178) Hi there again! Previous part with opinions of some amazing problemsetters turned out to be interesting for you, so I decided to gather some more opinions :D. I really hope that this post will help someone in their problemsetting future! #### When and how did you start problemsetting? [user:300iq,2020-01-11]: April, 2017 [user:maroonrk,2020-01-11]: In 2015 Summer, I hold the first contest with friends at high school club. It was a local Japanese contest. [user:Radewoosh,2020-01-11]: In high school, so probably for 5 years. I was creating problems for other people from my school as my teacher told me that it's a completely different point of view. [user:voidmax,2020-01-11]: It was 3 years ago. I was on plane and I didn't have a clue what to do in my free time. Then I realized that I can try myself in problemsetting. Later I created first and one of my favorite problem ([problem:963B]). I was full of inspiration a...

Full text and comments »

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

21.
By soullless, history, 20 months ago, In English
I Wrote a Book — For Those Who Truly Want to Grow Hey everyone! I’m excited to share something important with you. Over the past two years, I’ve walked a long road in competitive programming — through thousands of problems, hundreds of contests, ups and downs, burnout, and bouncing back. And now, I’ve written a book that captures all of that experience. But this isn’t just a guide. It’s a motivational and educational book — for high school students, university students, and anyone who wants to grow stronger in olympiad programming. Inside, you’ll find: the raw truth about burnout and how to deal with it, real strategies for consistent growth, a personal story — from the very first steps to winning gold, and most importantly, ideas that will help you reach the top — and stay there. This book is for everyone: beginners and advanced alike. Download the PDF: https://drive.google.com/drive/folders/1NJ5Qx5ci7GrQeMKZhDakVHqaqg1CdNEg I’ll be truly grateful if you read it and share your thoughts. This isn’t a textbo...

Full text and comments »

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

22.
By pajenegod, history, 6 years ago, In English
(Request) Update PyPy's Version on CF I've always liked using Python (PyPy) for solving problems in competitive programming. And most problems are very doable, even in Python. What I've found is that the most difficult problems to solve in Python are those requiring 64 bit integers. The reason why 64 bit integers are problematic is because CF runs Windows, and PyPy only supports 32 bit on Windows. So whenever a problem involves integers that cannot fit inside of a signed 32 bit int, PyPy switches to big integers (which runs insanely slow, sometimes a factor of 20 times slower). <spoiler summary="What I currently have to do to get around big integers"> ### 1. Switching to floats What I usually try is switching from using integers to floats. This works if all integers are $\leq 2^{52}$: [submission:53441394] (Fat TLE and almost MLE) vs [submission:53456822] (AC by a mile) ### 2. Calculating `a * b % MOD` Many problems on CF involve doing multiplication modulo $10^9 + 7$. This is super slow because of big integ...
usable and more beginner friendly. So if possible please update PyPy's version on CF to 7.3.4

Full text and comments »

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

23.
By prvocislo, history, 4 years ago, In English
I Reached GM after 5 years Hello Codeforces! I did it! My main goal for 2022 was to reach red and I succeeded in the last contest of the year by getting +1 delta and going from cursed 2399 to 2400! I was very happy but scared to celebrate because I was worried that my rating would go down to 2399 again after the cheater removal. But now it’s 2401, so I think I’m safe now. Why am I writing this blog? I'm very excited about this achievement, it means a lot to me and I want to share my happiness with Codeforces. Also people ask me in DM quite often about how I got onto this level or who I am in general, so I think it's time to summarize it all into one blog post. Oh, wait… You don’t even know me, so why should you keep reading this blog post? Let me introduce myself a little first. I’m a high schooler from a small European country where few people do Codeforces. I love competing in OI and MO, I always did. One day, my father found the Codeforces website and suggested that I should start practicing there. At ...

Full text and comments »

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

24.
By maspy, history, 19 months ago, In English
Personal FAQ I often receive direct messages, many of which I ignore, though I do respond to some. Here, I’ve decided to write down answers to some frequently asked questions. Going forward, I will likely continue to ignore most messages. If you really want a response, I think I can at least give some kind of reply if you support me with a positive amount via https://github.com/sponsors/maspypy. I will probably not respond to most of the comments that this article will receive. However, if there’s something interesting, I may add it to the article. ### Are there any tips for improvement? Such overly common questions are best asked to tools like ChatGPT. ### Are there any introductory articles I should read? Are there any books on competitive programming? Please search the internet using keywords like "codeforces, tutorial", "competitive programming book". ### What should I do to aim for IOI or ICPC? Since I have absolutely no experience with these, I recommend asking some...
I recommend ABC (AtCoder Beginner Contest). I think the difficulty and required techniques tend

Full text and comments »

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

25.
By galen_colin, 6 years ago, In English
Hybrid Tutorial #-1: Heavy-Light Decomposition **[Here](https://www.youtube.com/watch?v=_G_LMuLWMaI&list=PLDjGkpToBsYDx4GWu2u87sTqt6ICELz-T) is a playlist of all hybrid tutorials I've done.** # "Intro" _Timestamp: [00:00](https://youtu.be/_G_LMuLWMaI)_ Hi! Definitely not inspired by [this comment](https://codeforces.me/blog/entry/81086?#comment-675431), I've decided to try something that seems relatively novel &mdash; 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** &mdash; 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 yours...

Full text and comments »

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

26.
By zhoukangyang, history, 13 months ago, In English
MIT Informatics Tournament 2025-26 Winter Contest **UPD 4:** The contest problems and editorials are available in Codeforces gym: [MITIT Winter 2025-26 Advanced Team Round](https://codeforces.me/gym/106250) [MITIT Winter 2025-26 Beginner Round](https://codeforces.me/gym/106251) [MITIT Winter 2025-26 Advanced Individual Round](https://codeforces.me/gym/106249) **Editorials:** [Team Round Editorials](https://codeforces.me/gym/106250/attachments/download/34709/MITIT_Winter_2025_2026_Team_Editorials-1.pdf). **UPD 3:** All contests have ended. Thank you all for participating! We will release the rankings and editorials soon. **UPD 2:** The team contest has officially started. You can view the [live scoreboard](https://mitit.org/Contest/ViewScoreboard/advanced-team-25-26) here. **UPD 1:** The contest has officially started. Good luck and have fun! Please join our Discord server [here](https://discord.gg/gmTUzcezv4) for the latest information! Hello Codeforces! We ( [user:ETK.,2025-11-06], [user:flame...
2025-26 Advanced Team Round](https://codeforces.me/gym/106250) [MITIT Winter 2025-26Beginner, ** in either the Beginner or Advanced division., - **Beginner Division:** 9–12 problems, 3-hour team round - **Advanced Division:** 2-hour, 4, We expect a difficulty distribution roughly ranging from **700–1800** for Beginner and **1600–3000, [MITIT Winter 2025-26 Beginner Round](https://codeforces.me/gym/106251)

Full text and comments »

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

27.
By AnandOza, history, 6 years ago, In English
Atcoder Beginner Contest 171 — Unofficial English Editorial Hi all, [Atcoder Beginner Contest 171](https://atcoder.jp/contests/abc171) was today. I wrote an unofficial English editorial. Hope it helps! ### [A: αlphabet](https://atcoder.jp/contests/abc171/tasks/abc171_a) We simply write an if statement. Runtime: $\mathcal{O}(1)$. <spoiler summary="Sample code"> ~~~~~ char x = in.next().charAt(0); if (x >= 'A' && x <= 'Z') out.println("A"); else out.println("a"); ~~~~~ </spoiler> ### [B: Mix Juice](https://atcoder.jp/contests/abc171/tasks/abc171_b) We want to buy the cheapest fruits, so we can sort the array and then pick the first $K$ fruits. Runtime: $\mathcal{O}(N \log N)$. <spoiler summary="Sample code"> ~~~~~ int n = in.nextInt(), k = in.nextInt(); int[] p = in.readIntArray(n); Util.safeSort(p); // this shuffles and sorts to avoid hacks long answer = 0; for (int i = 0; i < k; i++) { answer += p[i]; } out.println(answer); ~~~~~ </spoiler> ### [C: One Quadrillion and One Dalmatia...
Atcoder Beginner Contest 171 — Unofficial English Editorial, Hi all, [Atcoder Beginner Contest 171](https://atcoder.jp/contests/abc171) was today. I wrote an

Full text and comments »

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

28.
By errorgorn, 5 years ago, In English
On Div2ABs 2 years ago, [user:antontrygubO_o,2022-04-27] wrote [a blog](https://codeforces.me/blog/entry/75163) about div2ABs where he expressed his opinions that d2ABs should not be about "here is a statement, please implement what is written there". Thanks to him, the quality of d2ABs (and problem quality in general) have certainly improved. However, I still believe that there still quite large differences between how coordinators/problemsetters view d2ABs and how the intended participants view them. From the survey made by [user:kpw29,2022-04-27], we can see that most people agree that most people agree that we should **primarily** consider the target audience when proposing a task. I too think if a task is boring to div 1 contestants, we should not think of that as a reason to immediately disqualify a problem from being a d2A. ![ ](https://codeforces.me/predownloaded/70/b5/70b515da85a4dc3b362cf4eb0963dbd1fb642819.png) I think when people judge the interesting-ness of d2As, they try...
mindlessly doing exactly what the statement says if you're a beginner., only cover simple topics like math, brute force, and simulation, they allow any beginner cper to, original. The problem is okay because it is instantly approachable for a beginner, which is something, , which is a good thing in beginner problemsets because it can show people that there are multiple ways to, Imagine you are a beginner in competitive programming and you only know some basic language syntax, beginner programmers to the world of trees in the case they have never seen them before. Solid and

Full text and comments »

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

29.
By E869120, 7 years ago, In English
My winning theory in IOI 2018 & 2019 — Why I won 2 golds in IOI Dear Codeforces community.<br /> According to [IOI 2019 Results](http://stats.ioinformatics.org/results/2019), I got the 25th place and got successful gold medals twice in a row.<br /> Although it was pretty close to the gold-medal border (only 6.14pts / 600 difference) and it was lower performance than IOI 2018, which I participated when I was orange in Codeforces, I had many chances to get more points in this IOI, even for top 10. Since there are not so many people who have got two gold medals in IOI (and there were many requests like "I want [user:E869120,2019-08-14] to talk about how to get gold in IOI" like [this comment](https://codeforces.me/blog/entry/66909?#comment-510127) and [this comment](https://codeforces.me/blog/entry/66909?#comment-513129)). I want to write something about IOI, which may be useful for people who will participate in IOI next year and also some years later.<br /> ![ ](https://i.ibb.co/TLmqRRX/E869120-IOI-01.png)<br /> <br /> ### A. First of all At...
purple, ~2x for blue.), you should solve AtCoder Beginner Contest problems. My recommendation to

Full text and comments »

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

30.
By maroonrk, history, 7 years ago, In English
Hello maroonrk announcement Hello, Codeforces! I have news today: I joined the AtCoder team and started working as an admin. It does not mean I take [user:rng_58,2020-03-07]'s place right now. I'm just a beginner as an admin, so, for the time being, we will hold contests together, and I will learn how to do it. For this year, I don't stop participating in all AtCoder contests(especially AGCs) and aim to get a ticket for the WTF2021. I will mainly supervise ARC-level contest (and Japanese local contests). From next year, I'll start checking submitted problems from all writers and organize contests as main admin. Tomorrow's ARC-level contest is the first contest coordinated by me (with the help of [user:rng_58,2020-03-07]). I'm looking forward to your participation!
take [user:rng_58,2020-03-07]'s place right now. I'm just a beginner as an admin, so, for the time, . It does not mean I take [user:rng_58,2020-03-07]'s place right now. I'm just a beginner as an admin

Full text and comments »

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

31.
By -is-this-fft-, history, 5 years ago, In English
[Tutorial] The command line: how to read input from file without #ifdef and much more #### Introduction Instead of algorithms and math, I'll be doing something completely different here. There is something that has bothered me for a long time: people not understanding the tools they use to participate in contests and thus failing to take real advantage of them. And it all goes back to not understanding the command line. Some of you might say, "well surely, the command line is something obsolete and you're only clinging to it because you [insert ridiculous amateur-psychology here]?" No! The command line is not obsolete, and unless competitive programming becomes so mainstream that software vendors start writing professional-grade tools aimed specifically at us, it won't be. [cut] $~$ What is the command line? Any of these: ![ ](/predownloaded/bd/b6/bdb6c157b9b3ce5ae046c9064e469e0081f8c0fe.png) As you can see, it comes in many background colors and fonts, but the basic idea is always the same. It's a box you can type commands in, which it will ...

Full text and comments »

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

32.
By ko_osaga, history, 2 years ago, In English
Rumination on AI and competitive programming An OpenAI model can now achieve a rating of 1800 in Codeforces. That made me wonder about the future of competitive programming and why we do this. I came up with some opinions, which I'll be glad to share with you. ## AI killed the competitive programming? I don't think that's happening, because competitive programming is useless! Some people might think CP is less interesting because AI can solve CP problems &mdash; but come on, problemsetter can solve those problems, unless they are really bad. Many people still play Chess just fine, and I recently enjoyed participating in Sudoku competitions, although I was completely aware that computers would wreck me in a second. It didn't matter, and I didn't see how it could. CP problems are not "open problems" &mdash; if they are, the problemsetters are to blame. So, you are not contributing anything to the world by solving CP problems; it all comes down to personal interest. As long as CP is fun for people, they will do it. ## Flag...

Full text and comments »

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

33.
By rui_er, history, 3 years ago, In English
More and More Suspicious Participants in AtCoder Beginner Contests! Hello, CodeForces. As I can't find any discussion thread in AtCoder, and the announcements of AtCoder contests are also posted here, I decided to post this blog in CodeForces. Last time (ABC355), I [reported](https://codeforces.me/blog/entry/129765?#comment-1151921) a suspicious participant [toyuzuko](https://atcoder.jp/users/toyuzuko) who solved problem ABCD in 51 seconds. They also did the similar thing in ABC354. This time (ABC356), there are much more suspicious participants. The average first-AC time (in seconds) of ABC347~ABC353 is in the following table: |Contest|A|B|C|D|E|F|G| |:-|:-|:-|:-|:-|:-|:-|:-| |ABC347|21|45|93|244|177|300|824| |ABC348|15|37|72|302|236|495|430| |ABC349|23|67|54|116|598|139|634| |ABC350|26|47|102|74|240|489|335| |ABC351|22|23|106|352|199|122|902| |ABC352|27|43|49|90|196|989|188| |ABC353|24|79|172|88|206|1161|313| |(minimum)|15|23|49|74|177|122|188| |(prefix sum)|15|38|87|161|338|460|648| Note that to get first-AC in a problem...
More and More Suspicious Participants in AtCoder Beginner Contests!, ABCD by simply copy-pasting AI's code, what's the point of having AtCoder Beginner Contests? Why, having AtCoder Beginner Contests? Why not just delete ABCD and add some new problems to make an

Full text and comments »

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

34.
By awoo, history, 4 years ago, translation, In English
Educational Codeforces Round 145 [Rated for Div. 2] Hello Codeforces! On [contest_time:1809] [contest:1809] will start. Series of Educational Rounds continue being held as [Harbour.Space University](https://harbour.space/) initiative! You can read the details about the cooperation between [Harbour.Space University](https://harbour.space/) and Codeforces in the <a href="http://codeforces.me/blog/entry/51208">blog post</a>. This round will be **rated for the participants with rating lower than 2100**. It will be held on extended ICPC rules. The penalty for each incorrect submission until the submission with a full solution is 10 minutes. After the end of the contest, you will have 12 hours to hack any solution you want. You will have access to copy any solution and test it locally. You will be given **6 or 7 problems** and **2 hours** to solve them. The problems were invented and prepared by Adilbek [user:adedalic,2023-03-19] Dalabaev, Ivan [user:BledDest,2023-03-19] Androsov, Maksim [user:Neon,2023-03-19] Mescheryakov ...
1. **Beginner**: _Our beginner coding course is designed for participants who have some basic

Full text and comments »

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

35.
By Errichto, 5 years ago, In English
[GYM] 100 Easy Problems (Bootcamp) Target audience: newbies and pupils (rating up to 1400). Group link: https://codeforces.me/group/yg7WhsFsAp/contests (hit "join" on the right). Hi. Enjoy a series of 8 problem lists for beginners. The example topics are strings, arrays, math, and binary search. You are allowed to discuss anything with others, or just look up solutions online. There are also 3 exams, each recommended for a 2-hour individual virtual participation. Use the displayed order, e.g. take exam 1 after day 3. It all should take you 2 weeks of intense bootcamp-like work (or a few months if you take your time). The problems were originally used two years ago in a Saudi Arabia camp. It's a mix of around 70 existing CF problems and 30 new original problems, mainly prepared by [user:kostka,2021-11-18], with some help from me and [user:mustafabar,2021-11-18]. I asked them for permission to publish everything. I will put hints to some problems in this blog (or in the group? not sure). Expect a few v...

Full text and comments »

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

36.
By Geothermal, history, 7 years ago, In English
AtCoder Beginner Contest 133 English Solutions Since AtCoder often doesn't release English editorials to their beginner contests, I thought I'd write up my solutions. Feel free to add a comment if anything was unclear! A &mdash; T or T ------------------ Our alternatives here are sending all $N$ people on the train, for a total of $N \cdot A$ yen, or using the taxi, for a total of $B$ yen. We should thus print the minimum of these two values. Code: https://atcoder.jp/contests/abc133/submissions/6265526 B &mdash; Good Distance ------------------ We reword the problem slightly: for how many points $y$ and $z$ is $\sum_{k=1}^D (y_i-z_i)^2$ a perfect square? Given the small input constraints, we know that this sum is going to be at most $10 \cdot (20-20)^2 = 16000$. Hence, we can simply compute a list of all perfect squares less than $16000$ and iterate over all $\dbinom{N}{2}$ pairs of points. For each pair of points, we compute the summation and check if it is equal to any of our squares. If so, we increment th...
AtCoder Beginner Contest 133 English Solutions, Since AtCoder often doesn't release English editorials to their beginner contests, I thought I'd

Full text and comments »

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

37.
By YouKn0wWho, 5 years ago, In English
A List of Useful Equations in Competitive Programming Hi, I am super excited to be back with another list. This time it is a **collection of some useful equations in Competitive Programming**. ### Motivation Do you find it bad if you couldn’t solve a problem just because you didn’t know about a certain equation? Do you find it difficult to take a quick look at an equation that you know exists but forgot about it while solving a problem? Do you think that all the equations that are important in CP are just cluttered and you are too lazy to collect them in one place? Well, then you are in the right place! I am here to solve all of the aforementioned problems. I believe you should not waste your precious time searching the internet for important equations. You should solve more problems. I am here to undertake the nasty task of collecting things. ### Payment Everything comes with a cost. You need to do something for me. That is you need to upvote this blog. Pretty easy! ### Acknowledgement Thanks to the following guys ...
you already know of. This list can be used as a reference. If you are a beginner or someone who is

Full text and comments »

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

38.
By AnandOza, 7 years ago, In English
Atcoder Beginner Contest 132 — Unofficial English Editorial Hi all, [Atcoder Beginner Contest 132](https://atcoder.jp/contests/abc132) was today. Atcoder only publishes Japanese editorials for beginner contests, so I wrote an unofficial English editorial. Hope it helps! ### [A: Fifty-Fifty](https://atcoder.jp/contests/abc132/tasks/abc132_a) After sorting the input, a "good" string will look like "AABB". Therefore, we simply sort and check for this format. <spoiler summary="Sample code"> ~~~~~ char[] s = in.next().toCharArray(); Arrays.sort(s); out.println(s[0] == s[1] && s[2] == s[3] && s[1] != s[2] ? "Yes" : "No"); ~~~~~ </spoiler> ### [B: Ordinary Number](https://atcoder.jp/contests/abc132/tasks/abc132_b) It suffices to simply check every range of 3 and see if its middle element should be counted. A simple way is to sort each range of 3 and check that the middle element remains in the middle. Runtime: $\mathcal{O}(n)$. <spoiler summary="Sample code"> ~~~~~ int n = in.nextInt(); int[] p = new int[n]; for (int i =...
Atcoder Beginner Contest 132 — Unofficial English Editorial, Hi all, [Atcoder Beginner Contest 132](https://atcoder.jp/contests/abc132) was today. Atcoder only

Full text and comments »

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

39.
By demoralizer, history, 5 years ago, In English
[Tutorial] Solving Linear Recurrences with various methods, Including O(N logN logK) using FFT <spoiler summary="Hi this is my first educational blog on codeforces......"> I have been procrastinating to write this one for over 15 months by now, but thanks to [user:crackersamdjam,2021-12-06]'s [comment](https://codeforces.me/blog/entry/97534?#comment-864474), I finally did it! Any suggestions or improvements or constructive-criticism to the blog, is heavily appreciated. In this blog, I tried to avoid too many technical terms (especially in the last section), and tried to make it beginner friendly. </spoiler> Linear Recurrence : Introduction ------------------ Fibonacci Sequence is one of the simplest examples of a linear recurrence: $F_x = F_{x-1} + F_{x-2}$, with $F_0 = 0, F_1 = 1$ Here is a more general example of a linear recurrence: \begin{align} R_{x} = \sum_{i=1}^{n}{C_i \cdot R_{x-i}} \end{align} where $C_i$ is constant and $R_x$ is the x-th term of the recurrence. Since $R_x$ depends on the previous $n$ terms of the recurrence, it is called a li...
difficulty in understanding this, so I'll try to explain it in a more beginner -friendly way. Apparently, to make it beginner friendly.

Full text and comments »

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

40.
By Wind_Eagle, history, 5 years ago, translation, In English
How to train: why it's not enough to just do a lot of tasks Hello, Codeforces! I, like many of you, read blogs periodically. Lately, blogs from low-rated users who ask me how to raise their ratings have been catching my attention. I want to tell you a little bit about my opinion on these blogs. So what do these blogs look like? Usually this is a blog with a title something like <b>"I need help right now!"</b> or <b>"How to improve my rating, help me!"</b> When you open this blog, you see the most detailed description of the problem, such as: "I have solved 500 problems, but no improvement" or "I have solved 100 problems with rating >= 1500, but my rating is not increasing". And in the comments they usually write "you haven't solved enough, solve more" or "solve more difficult problems". <b>In my opinion, this is incorrect and misleads such users. So, imagine that you do not know anything at all about sports programming, or even about the basics of Olympic math. You at best (because many people don't even do that) have learned a programmin...

Full text and comments »

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

41.
By Noam527, history, 6 years ago, In English
Problem Likeability Feature Proposal -------- The feature to "star" or "favorite" a problem already exists; if you go to the problemset archive, you can choose to mark any problem as favorite. Same holds for marking any contest. Unfortunately, it seems the only use for this feature, is so one could revisit his favorite problems in the future &mdash; you can't view the favorite problems of other participants. I think this feature can be easily extended to something more meaningful. Maintain for each problem, the number of accounts who liked it (now referred to as the likeability of the problem). Then implement the option to filter (or sort) problems by their likeability (hopefully filtering problems by likeability could be combined with sorting by the number of people solved, so that people could find their own difficulty level). Same could go for contest likeability. Pros -------- - I think this can mainly help beginners. I hope that people who try out competitive programming for the first time, ...

Full text and comments »

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

42.
By Errichto, 7 years ago, In English
Bitwise operations for beginners You can watch my Youtube video ([link](https://www.youtube.com/watch?v=xXKL9YBWgCY&list=PLl0KD3g-oDOHpWRyyGBUJ9jmul0lUOD80)) with the same content as this blog. Anyway, enjoy. ### Introduction Let's learn bitwise operations that are useful in Competitive Programming. Prerequisite is knowing the binary system. For example, the following must be clear for you already. $$13 = 1 \cdot 8 + 1 \cdot 4 + 0 \cdot 2 + 1 \cdot 1 = 1101_{(2)} = 00001101_{(2)}$$ Keep in mind that we can pad a number with leading zeros to get the length equal to the size of our type size. For example, `char` has $8$ bits and `int` has $32$. ### Bitwise AND, OR, XOR You likely already know basic logical operations like AND and OR. Using `if(condition1 && condition2)` checks if both conditions are true, while OR (`c1 || c2`) requires at least one condition to be true. Same can be done bit-per-bit with whole numbers, and it's called bitwise operations. You must know bitwise AND, OR and XOR, typed r...

Full text and comments »

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

43.
By Errichto, 7 years ago, In English
My Coding Streams in May&June You can watch me on https://www.twitch.tv/errichto or https://www.youtube.com/errichto2. There is schedule with countdown on Twitch. Most likely I will stream in May on Tuesday mornings and Sunday evenings. - [May 3, 16:45 CEST](https://www.timeanddate.com/worldclock/fixedtime.html?iso=20200503T1645&p1=262) &mdash; **Codeforces hard** (solving hard problems because the round was moved) - [May 5, 9:00 CEST](https://www.timeanddate.com/worldclock/fixedtime.html?iso=20200505T09&p1=262) &mdash; **Boring Programming Stream** (planning videos, fixing chatbot, maybe learning Berlekamp–Massey) - [May 10, 18:00 CEST](https://www.timeanddate.com/worldclock/fixedtime.html?iso=20200510T18&p1=262) &mdash; **Atcoder hard** (Grand Contest 43?) - [May 12, 9:00 CEST](https://www.timeanddate.com/worldclock/fixedtime.html?iso=20200512T09&p1=262) &mdash; **Atcoder hard** or something similar to practice for Google Code Jam. - [May 17, 18:00 CEST](https://www.timeanddate.com/worldclock/fixedtime.htm...

Full text and comments »

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

44.
By zscoder, history, 6 years ago, In English
April Fools Day Contest 2021 — ZS Edition Hi everyone, April Fools is near and as usual we have an [April Fools Day Contest](https://codeforces.me/blog/entry/88840) on Codeforces this year. In addition to that, I usually try to host some form of mini April Fools Contest for my friends every year (or almost every year). This year, I am trying to host a bigger April Fools Day contest than usual and I invite everyone to participate! In view of the April Fools contest on Codeforces, the round will begin at [31 March 10pm (GMT+8)](https://www.timeanddate.com/worldclock/fixedtime.html?msg=April+Fools+Day+Contest+2021+%28ZS%29&iso=20210331T22&p1=122) and lasts for exactly $24$ hours (and thus it will end ~35 minutes before the CF April Fools round). The contest will consist of several unusual tasks, and I hope that everyone will at least find something interesting. The problems will not be sorted by increasing order of difficulty (if the word difficulty is even applicable), so it is **highly advisable** to read (and try!)...
Easy and ABC both hints "Atcoder Beginner Contest". This is

Full text and comments »

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

45.
By AnandOza, history, 6 years ago, In English
Atcoder Beginner Contest 174 — Unofficial English Editorial Hi all, [Atcoder Beginner Contest 174](https://atcoder.jp/contests/abc174) was today. I wrote an unofficial English editorial. Hope it helps! ### [A: Air Conditioner](https://atcoder.jp/contests/abc174/tasks/abc174_a) We simply write an if statement. Runtime: $\mathcal{O}(1)$. <spoiler summary="Sample code"> ~~~~~ int x = in.nextInt(); out.println(x >= 30 ? "Yes" : "No"); ~~~~~ </spoiler> ### [B: Distance](https://atcoder.jp/contests/abc174/tasks/abc174_b) We can loop through all the points, and test each one. To avoid potential rounding errors, it's simplest to check $x^2 + y^2 \le D^2$, so we can keep everything in integers. Runtime: $\mathcal{O}(N)$. <spoiler summary="Sample code"> ~~~~~ int n = in.nextInt(); long d = in.nextInt(); d = d * d; Point[] points = Point.readPoints(in, n); int answer = 0; for (Point p : points) { if (p.x * p.x + p.y * p.y <= d) answer++; } out.println(answer); ~~~~~ </spoiler> ### [C: Repsept](h...
Atcoder Beginner Contest 174 — Unofficial English Editorial, Hi all, [Atcoder Beginner Contest 174](https://atcoder.jp/contests/abc174) was today. I wrote an

Full text and comments »

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

46.
By zhoukangyang, history, 5 weeks ago, In English
MIT Informatics Tournament 2026-27 Winter Contest Please join our **[Discord server](https://discord.gg/WPhngGjWhC)** for the latest updates! Hello Codeforces! We ([user:anango,2026-10-28], [user:bensonlzl,2026-10-28], [user:79brue,2026-10-28], [user:Boomyday12343,2026-10-28], [user:eternal1422,2026-10-28], [user:ewirlan,2026-10-28], [user:for_clarifying,2026-10-28], [user:Feet_McYeet,2026-10-28], [user:jer033,2026-10-28], [user:jay_jayjay,2026-10-28], [user:jatloe,2026-10-28], [user:MinaRagy06,2026-10-28], [user:MtSaka,2026-10-28], [user:Mingyu331,2026-10-28], [user:RecursiveCo,2026-10-28], [user:SHZhang,2026-10-28], [user:_sadhamster_,2026-10-28], [user:zhoukangyang,2026-10-28]), current students at MIT, are excited to announce that **registration is now OPEN** for the **MIT Informatics Tournament 2026–27 Winter Contest (M(IT)²)**! The contest will take place on **Sunday, December 6, 2026**, both in person at MIT and online. **Registration link**: https://mitit.org/Registration **M(IT)²** is a full-day competitive pro...
to three in either the Beginner or Advanced Division. Both divisions will feature an individual, - **Beginner Division:** A 2-hour individual round with 5–6 problems, followed by a 3-hour team, We expect the problems to range roughly from **800 to 2200** in Codeforces rating for theBeginner

Full text and comments »

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

47.
By peltorator, 4 years ago, In English
Codeforces Month of Blog Posts Results One and a half months ago [I proposed a challenge](https://codeforces.me/blog/entry/110840) to every one of you to get something from your drafts or from your head and actually write a blog post about it. I got a bunch of submissions, and you can find the links to all of them throughout this blog post (I was actually surprised that all entries were meaningful and interesting, so I definitely recommend checking them out). If you submitted an entry and I didn't mention it here, it is not purposeful! Indicate it via a direct message and I will include it here. It was just a bit hard to keep track of all submissions. I went through all the submissions. Some of them were very complicated, and I tried my best to get the overall idea but I will need to come back to dive deeper into some technical proofs. However, I believe that these technicalities that I glanced through do not affect my decisions. We are ready to present the winners! Regarding the first place, there was no doubt in my...
". Definitely not a beginner FFT material though!

Full text and comments »

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

48.
By MohamedAboOkail, 6 years ago, In English
Simple training for beginners Hello everyone! I have set up a training for beginners, The training focuses on solving various problems on Codeforces. Training that contains: 100 Problems (<span style = "font-weight: bold;">A</span>) and 100 Problems (<span style = "font-weight: bold;">B</span>). and 50 Problems (<span style = "font-weight: bold;">C</span>). Problems Difficulty: from <span style = "font-weight: bold;">800</span> to <span style = "font-weight: bold;">1500</span>. Problems links: <spoiler summary="100 Problems A"> <ol> <li><a href = "https://codeforces.me/problemset/problem/231/A">Problem 1</a></li> <li><a href = "https://codeforces.me/problemset/problem/228/A">Problem 2</a></li> <li><a href = "https://codeforces.me/problemset/problem/236/A">Problem 3</a></li> <li><a href = "https://codeforces.me/problemset/problem/233/A">Problem 4</a></li> <li><a href = "https://codeforces.me/problemset/problem/214/A">Problem 5</a></li> <li><a href = "https://codeforces.me/problemse...

Full text and comments »

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

49.
By kartik8800, history, 6 years ago, In English
Beginner Friendly Series on Dynamic Programming This series of videos are focused on explaining dynamic programming by illustrating the application of DP through the use of selected problems from platforms like Codeforces, Codechef, SPOJ, CSES and Atcoder. After going through this series, you should find yourself confident in approaching dynamic programming problems and also implementing them in a reasonable amount of time. I will also live code and submit the solutions to the problem on the coding platform from where the problem comes. Some Basic elements of Dynamic Programming ================== Some general ideas and my thoughts about DP to help you get started:<br> Part 1: [https://youtu.be/24hk2qW_BCU](https://youtu.be/24hk2qW_BCU)<br> 1. What is Divide and Conquer?<br> 2. What is Dynamic Programming?<br> 3. Types of DP problems.<br> Part 2: [https://youtu.be/yfgKw6BUZUk](https://youtu.be/yfgKw6BUZUk)<br> 1. What is a DP-state?<br> 2. Characterizing a DP-state.<br> 3. What is a recurrence?<br> 4. T...
Beginner Friendly Series on Dynamic Programming

Full text and comments »

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

50.
By _Seele_Vollerei_, history, 4 months ago, In English
Report: Contest-Time Solution Hints Linked to NotOnlySuccess I am writing this blog to report a competitive-integrity issue involving the Codeforces user [user:NotOnlySuccess,2026-08-09] and a website associated with their content. The main issue is simple: **problem-specific solution material and hints for an ongoing Codeforces contest were made available before the contest ended.** # 1. Solution material published before the contest ended During [Codeforces Round 1116 (Div. 1, Div. 2)](https://codeforces.me/blog/entry/155668), an article titled [CF Round 1116 (Div. 1+2)](https://mp.weixin.qq.com/s/P3QJqmQFRsLlW9GX_y_8YQ) was published on a WeChat public account at August 10, 2026, 00:37 (UTC +8). The Codeforces contest ended at August 10, 2026, 01:05 (UTC +8). Therefore, the article was publicly available **28 minutes before the contest ended**. ![ ](/predownloaded/e5/8e/e58ea523bd7a61b7bdd20d83d2d16a0672f1cca0.png) The article already contained problem-specific solution material. For readers who do not understand Chinese...
contests had ended. In particular, solution articles for AtCoder Beginner Contests had previously been, the corresponding AtCoder Beginner Contest had ended.

Full text and comments »

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

51.
By AnandOza, history, 7 years ago, In English
Atcoder Beginner Contest 143 — Unofficial English Editorial Hi all, [Atcoder Beginner Contest 143](https://atcoder.jp/contests/abc143) was today. I wrote an unofficial English editorial. Hope it helps! ### [A: Curtain](https://atcoder.jp/contests/abc143/tasks/abc143_a) The curtains can cover a maximum of $2B$. So either they don't cover the whole window and the remainder is $A-2B$, or they do and the remainder is $0$. So the answer is $\max(0, A-2B)$. Runtime: $\mathcal{O}(1)$. <spoiler summary="Sample code"> ~~~~~ int a = in.nextInt(), b = in.nextInt(); out.println(Math.max(0, a - 2 * b)); ~~~~~ </spoiler> ### [B: TAKOYAKI FESTIVAL 2019](https://atcoder.jp/contests/abc143/tasks/abc143_b) We can simply loop through every pair (taking care not to double count) and add the health points restored. Runtime: $\mathcal{O}(N^2)$. <spoiler summary="Sample code"> ~~~~~ int n = in.nextInt(); int[] d = in.readIntArray(n); long answer = 0; for (int i = 0; i < n; i++) { for (int j = i + 1; j < n; j++) { answ...
Atcoder Beginner Contest 143 — Unofficial English Editorial, Hi all, [Atcoder Beginner Contest 143](https://atcoder.jp/contests/abc143) was today. I wrote an

Full text and comments »

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

52.
By awoo, history, 15 months ago, translation, In English
Educational Codeforces Round 182 [Rated for Div. 2] <img alt="Neapolis University Pafos" src="/predownloaded/9a/33/9a332fadbb47050ba9405057df022a6e37eaf5c0.png" style="float:right;height: 200px; margin: 10px; max-width:40%;"/> Hello Codeforces! The series of Educational Rounds continues thanks to the support of the [Neapolis University Pafos](https://www.nup.ac.cy/). They offer a BSc in Computer Science and AI with [JetBrains Scholarships] (https://lp.jetbrains.com/academy/csai-program/). Gain cutting-edge skills in AI and machine learning, preparing you for high-demand tech careers. Limited scholarships available &mdash; don't miss your chance to study in Europe for free! On [contest_time:2144] [contest:2144] will start. This round will be **rated for the participants with rating lower than 2100**. It will be held on extended ICPC rules. The penalty for each incorrect submission until the submission with a full solution is 10 minutes. After the end of the contest, you will have 12 hours to hack any solution you want. You w...
🔹 **AI Club** _Explore the world of Artificial Intelligence — from beginner concepts

Full text and comments »

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

53.
By SuperJ6, 4 years ago, In English
How to Effectively Practice CP + Problem Solving Guide This is a slight tweak of [a practice guide](https://www.reddit.com/r/usaco/comments/pk3tjp/the_ultimate_usaco_practice_method/) I wrote a while ago on USACO reddit since I thought it could be helpful to people here. Some USACO specific sections or extra clutter I left out here that aren't needed for a general audience. This should cover all general cp advice I have so I never have to retype. #Introduction This is a post on how I believe is the best method to practice modern day competitive programming based on my experiences. I assume you already have some knowledge and know simple things like binary search and dfs/bfs, but **read the footnote if you are complete beginner** (never code, solved <50 problems, div2 A/B too difficult, grey or stuck low pupil). First, a quick tl;dr of the practice strategy before a bunch of specifics and explanation: >**In short, mostly you only need to use codeforces (no matter what contest you're training for), find a rating range where you c...
search and dfs/bfs, but **read the footnote if you are complete beginner** (never code, solved <50

Full text and comments »

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

54.
By hehezhou, 3 years ago, In English
2024-The 6th Turing Cup Tournament **Turing Cup Tournament** The Turing Cup is an invitational competition that is organized by one of the most successful informatics competition teams in China, the XinYouDui and partner with X-Camp Academy. **Registration time:** April 19th &mdash; May 5th 8:00 AM(BJT)/ May 4th 5:00 PM PDT/ May 4th 8:00 PM EDT **Registration method:** Click [XinYouDui contest system](https://contest.xinyoudui.com/recommend) directly for registration. So register here while you can! (It is recommended to use Chrome, Firefox browser) **Registration requirements:** There are no age, level, or identity restrictions. These awesome problems and editorials are written, prepared, and tested by the XinYouDui from Hangzhou Xuejun High School. Quality is ensured by top-notch participants of IOI 2024 China National Team and NOI gold medalists. **Divisions:** Novice, Intermediate, Advanced - Novice group: The entry-level level of programming with basic language application and basic algorithms ...

Full text and comments »

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

55.
By flamestorm, 5 years ago, In English
EZ Programming Contest #1 Announcement ### Hello, Codeforces! I would like to invite you all to my first contest, [contest:103150]. It will be held on [contest_time:103150]. The round is not rated for anybody, since it is an unofficial contest. The contest has $n$ problems, where $n$ is an integer satisfying $7 \leq n \leq 11$. You will have 2 hours and 30 minutes to solve the problems. The problems are meant to be **about Div. 2 A, B, and C level**, and they will _not_ be sorted in order of difficulty. So, you can think of the problemset like if ICPC only went up to Div. 2 C. A huge thanks to my testers [user:wabadabakalakaboo,2021-06-19], [user:manish.17,2021-06-19], and [user:fishy15,2021-06-19]! I know you all are filled with questions, so I'll try to answer them all now. - Q: _Is it rated?_ - A: No. - Q: _Why did you write this contest?_ - A: I have a lot of ideas for easy Div. 2 A, B, and C level problems, not all of which can get into a contest. I thought it would be fun to compile them all into...

Full text and comments »

Announcement of EZ Programming Contest #1
  • Vote: I like it
  • +197
  • Vote: I do not like it

56.
By ouuan, history, 7 years ago, In English
AtCoder Beginner Contest 141 — Unofficial Editorial [AtCoder Beginner Contest 141](https://atcoder.jp/contests/abc141 ) has just finished, and this is an unofficial editorial. You can check [my solutions](https://atcoder.jp/contests/abc141/submissions?f.Task=&f.Language=&f.Status=&f.User=ouuan), but I used lots of defines in my codes, and they're hard to read. ## [C &mdash; Attack Survival](https://atcoder.jp/contests/abc141/tasks/abc141_c ) Let $cnt[i]$ be the number of times the player $i$ correctly answered a question. The player $i$ survived if and only if $q-cnt[i]<k$. ## [D &mdash; Powerful Discount Tickets](https://atcoder.jp/contests/abc141/tasks/abc141_d ) First, you have to know $\left\lfloor\frac{x}{2^k}\right\rfloor=\left\lfloor\frac{\left\lfloor\frac x 2\right\rfloor}{2^{k-1}}\right\rfloor$(when both $x$ and $k$ are positive integers and $k\ge 1$). In fact, it is true that $\left\lfloor\frac{\left\lfloor\frac{x}{y}\right\rfloor}{z}\right\rfloor=\left\lfloor\frac{x}{yz}\right\rfloor$ (when $x$, $y$, $z$ are...
AtCoder Beginner Contest 141 — Unofficial Editorial, [AtCoder Beginner Contest 141](https://atcoder.jp/contests/abc141 ) has just finished, and this is

Full text and comments »

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

57.
By SHZhang, 3 years ago, In English
[CONTEST OVER] MIT Informatics Tournament (M(IT)^2) 2024 **UPDATE 3**: There was a typo in the registration link that led to the pre-registration form. If you filled that out, please fill out our actual [registration form](https://mitit.org/Registration). Note that with the contest **within 24 hours**, we cannot guarantee we review all applications in time. Please submit ASAP if you would like to be considered. Apologies for the inconvenience. **UPDATE 2: The contest is in less than a week! Note that we changed the venue from the MIT Media Lab to [Huntington Hall (10-250)](https://whereis.mit.edu/print_window.html?zoom=16&lat=42.359674020000014&lng=-71.09201372&maptype=mit&q=10-250&open=object-10). There will be thousands of dollars in cash prizes and also exclusive merchandise!** The schedule for contest day is below. We are excited to see everyone! - **8 AM &mdash; 9 AM:** Contestants check-in + breakfast - **9 AM &mdash; 10 AM:** Opening Ceremony + Last minute team formation - **10 AM &mdash; 10:30 AM:** Buffer time as teams ar...
same problems for everyone, while the second round will be split into Beginner and Advanced divisions, :** Lunch break + Round one Discussion - **2:30 PM — 5 PM:** Beginner division round

Full text and comments »

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

58.
By Spheniscine, history, 6 years ago, In English
Unofficial ACL Beginner Contest Editorial ### [A &ndash; Repeat ACL](https://atcoder.jp/contests/abl/tasks/abl_a) <spoiler> Easy programming-language-knowledge check typical of the first task of AtCoder beginner contests. The following is a passing Kotlin submission: ``` fun main() { val k = readLine()!!.toInt() val ans = "ACL".repeat(k) println(ans) } ``` </spoiler> ### [B &ndash; Integer Preference](https://atcoder.jp/contests/abl/tasks/abl_b) <spoiler> Assume there is an integer in both ranges and call it $x$. Note that both $x \ge \max(A, C)$ and $x \le \min(B, D)$ must therefore be true. Thus $x$ exists if and only if $\max(A, C) \le \min(B, D)$ is true. This is the standard formula for finding the overlap of two ranges. </spoiler> ### [C &ndash; Connect Cities](https://atcoder.jp/contests/abl/tasks/abl_c) <spoiler> Note that the initial network of cities can be divided into one or more *components*, where any city of a component can reach any other city in that component follow...
Unofficial ACL Beginner Contest Editorial, Easy programming-language-knowledge check typical of the first task of AtCoder beginner

Full text and comments »

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

59.
By sharabhagrawal25, history, 6 years ago, In English
[For Beginners] Video Tutorials COPS Youtube Channel Hello, Codeforces community The Club of Programmers, IIT BHU is excited to announce the completion of beginners playlist of COPS YouTube channel. The content is made for beginners to enable them to kickstart their journey in the field of competitive programming. The videos and the corresponding document not only provide explanation to the concept but also provide a proper roadmap on how to study these concepts along with the practice problems. Youtube Channel link : [https://www.youtube.com/channel/UC01TZlNfu29QgG4FmUqVsdg/featured?view_as=subscriber](https://www.youtube.com/channel/UC01TZlNfu29QgG4FmUqVsdg/featured?view_as=subscriber) I am also providing the concept wise link to the videos for the beginners- - [Array, vector and pair](https://www.youtube.com/watch?v=bQ7rNIS3ZGs&list=PLLt4yMoVgczX0qAe_Q1ZHpDdd3_IRrCx6&index=1&t=1s) - [STL String](https://www.youtube.com/watch?v=899Dck1YF6M&list=PLLt4yMoVgczX0qAe_Q1ZHpDdd3_IRrCx6&index=2) - [Time and space complexit...

Full text and comments »

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

60.
By dXqwq, 18 months ago, In English
The 7th Turing Cup Tournament # 2025 · The 7th Turing Cup Tournament The Turing Cup is an invitational competition that is organized by one of the most successful informatics competition teams in China, the XinYouDui and partner with X-Camp Academy. ## Timeline | Event | Time (UTC+8) | |----------------------|-----------------------------------------| | Registration Time | May 06, 2025, 06:00 PM &mdash; May 25, 2025, 12:29 PM | | Opening Ceremony | May 25, 2025, 07:50 AM &mdash; 08:30 AM | | Contest Time | May 25, 2025, 08:30 AM &mdash; 12:30 PM | --- ## Contest Details ### Staff - Writers: [user:dXqwq,2025-05-22], [user:Flamire,2025-05-22], [user:myee,2025-05-22], [user:orzdevinwang,2025-05-22], [user:zhaohaikun,2025-05-22] - Testers: [user:dspt,2025-05-22], [user:emptyhope,2025-05-22], [user:jqdai0815,2025-05-22], [user:Kubic,2025-05-22], [user:le0n,2025-05-22], [user:zhaohiakun,2025-05-22] ### Features - **High Contest Q...

Full text and comments »

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

61.
By Geothermal, history, 7 years ago, In English
AtCoder Beginner Contest 169 Unofficial Editorial I just did my first ABC in a while, so I decided to write up and share my solutions below. Feel free to leave questions in the comments! There were several questions this round that had the potential to create precision issues; however, the solutions below give approaches that sidestep those errors altogether. Sadly, I think compiling and testing my A prevented me from winning the round :( #A &mdash; Multiplication 1 Just multiply the numbers and print them out. It's not that hard. Time Complexity: $O(1)$. [Click here for my submission.](https://atcoder.jp/contests/abc169/submissions/13800320) --- #B &mdash; Multiplication 2 This turns out not to be quite as easy as the last problem. Multiplying numbers this large is actually a challenge in C++ because the result is likely to be greater than $2^{63}$, and thus will cause long long overflow. Thus, in C++, we can't just multiply the numbers and check if the result is greater than $10^{18}$. One possible appr...
AtCoder Beginner Contest 169 Unofficial Editorial

Full text and comments »

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

62.
By tch1cherin, history, 10 months ago, In English
[Tutorial] On Applications of CDQ Divide & Conquer _This tutorial is nominated for the [blog posts competition](https://codeforces.me/blog/entry/149422) from [user:cadmiumky,2026-02-07]. Thanks to him for this initiative!_ _Also thanks to [user:Ghos007,2026-02-08], [user:dima210121012101,2026-02-08], [user:dmitryAdams,2026-02-08] and ChatGPT for proofreading this post and giving useful feedback._ --- CDQ Divide & Conquer is an interesting algorithmic technique that nobody talks about (at least in Russian CP community). However, it is quite powerful, as it often provides unexpectedly clean solutions to seemingly tedious problems. In this tutorial, I will discuss different contexts where this method is useful. I also want to collect what I have seen about this technique on the Internet in one place and add my own insights. Credit to [robert1003's blog](https://robert1003.github.io/2020/01/31/cdq-divide-and-conquer.html) where I first learned this method. The main idea of this technique is to calculate the **influence/contr...
[AtCoder Beginner Contest 213, Problem H](https://atcoder.jp/contests/abc213/tasks/abc213_h)

Full text and comments »

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

63.
By Geothermal, history, 6 years ago, In English
AtCoder Beginner Contest 172 English Solutions #A &mdash; Calc Just directly print the given sum. Time Complexity: $O(1)$. [Click here for my submission.](https://atcoder.jp/contests/abc172/submissions/14750143) --- #B &mdash; Minor Change The answer is simply the number of positions $i$ for which $S[i] \neq T[i]$. This is because we must make a move fixing each of those position, and each move can only make $S[i] = T[i]$ for one new position. Thus, we can iterate through the positions and count those where $S$ and $T$ differ, printing the total as our answer. Time Complexity: $O(|S|)$. [Click here for my submission.](https://atcoder.jp/contests/abc172/submissions/14750027) --- #C &mdash; Tsundoku We apply two pointers. Iterate over the number of books to be read from desk A in decreasing order, starting with the greatest number of those books we could read without exceeding $K$ minutes. Maintain the sum of all books to be read from desk A. Then, while we can do so without exceeding $K$ minutes, add ...
AtCoder Beginner Contest 172 English Solutions

Full text and comments »

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

64.
By AnandOza, history, 6 years ago, In English
Atcoder Beginner Contest 183 — Unofficial English Editorial Hi all, [Atcoder Beginner Contest 183](https://atcoder.jp/contests/abc183) was today. I wrote an unofficial English editorial. Hope it helps! ### [A: ReLU](https://atcoder.jp/contests/abc183/tasks/abc183_a) We simply write an if statement. Runtime: $\mathcal{O}(1)$. <spoiler summary="Sample code"> ~~~~~ int x; re(x); if (x < 0) { x = 0; } ps(x); ~~~~~ </spoiler> ### [B: Billiards](https://atcoder.jp/contests/abc183/tasks/abc183_b) The trick is to reflect $G$ over the x-axis, so the desired path becomes a straight line. Then it's a matter of simple math to compute the intersection of that line with the x-axis. Runtime: $\mathcal{O}(1)$. <spoiler summary="Sample code"> ~~~~~ double x1, y1, x2, y2; re(x1, y1, x2, y2); y2 *= -1; double r = -y2 / (y1 - y2); double ans = x1 * r + x2 * (1 - r); ps(ans); ~~~~~ </spoiler> ### [C: Travel](https://atcoder.jp/contests/abc183/tasks/abc183_c) Because $N$ is so small, we can simply try all $(N-1)!$ o...
Atcoder Beginner Contest 183 — Unofficial English Editorial, Hi all, [Atcoder Beginner Contest 183](https://atcoder.jp/contests/abc183) was today. I wrote an

Full text and comments »

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

65.
By 0t0infinity, history, 7 months ago, In English
Bits That Changed My CP Thinking — (Beginner Part) Bitwise Operations was one of the most confusing topics for me at first. But once I started understanding how bits actually work, many CP problems suddenly became much easier to think about and optimize. This blog is the result of a full day of grinding, where I tried to organize everything I know about bitwise tricks into a clear and structured form — from the basics to useful CP patterns. I tried to keep everything as simple and beginner-friendly as possible so that anyone can understand the core idea behind each trick instead of memorizing formulas. If even one trick from this blog helps someone solve a problem faster or understand bits more clearly, then this effort feels truly meaningful for me. And finally, I want to express my deepest gratitude to `Raha Ahmed` for being The Strongest support in my CP journey. Her constant encouragement, belief and presence have played a huge role in shaping my progress and I’m truly grateful for everything she has done. --- #...
Bits That Changed My CP Thinking — (Beginner Part)

Full text and comments »

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

66.
By BledDest, 15 months ago, In English
Kotlin Heroes 13 Announcement Greetings Codeforces! <img src="/predownloaded/06/ac/06ac0ca161da9600c032502a8e61c4f216557657.png" style="width:350px;float:right;margin:0 1em 1em 1em;"/> Ready to put your Kotlin skills to the test? Kotlin Heroes is your playground: a chance to experiment with the language's features, tackle fun and challenging problems, and level up your programming abilities. Perfect for beginners and experts alike! A massive shout-out to all the amazing coders who have competed in past Kotlin Heroes events: [Episode 1](https://codeforces.me/contests/1170,1171), [Episode 2](https://codeforces.me/contests/1211,1212), [Episode 3](https://codeforces.me/contests/1297,1298), [Episode 4](https://codeforces.me/contests/1346,1347), [Episode 5: ICPC Round](https://codeforces.me/contests/1432,1431), [Episode 6](https://codeforces.me/contests/1488,1489), [Episode 7](https://codeforces.me/contests/1533,1532), [Episode 8](https://codeforces.me/contests/1571,1570), [Episode 9](https://codeforce...

Full text and comments »

Announcement of Kotlin Heroes: Episode 13
Announcement of Kotlin Heroes: Practice 13
  • Vote: I like it
  • +122
  • Vote: I do not like it

67.
By E869120, 9 years ago, In English
AtCoder Beginner Contest 076 Hello Codeforces!<br /> <br /> I'm quite excited to invite you to [AtCoder Beginner Contest 076](https://abc076.contest.atcoder.jp/) which will held on [Saturday, October 28th 21:00 JST](https://www.timeanddate.com/worldclock/fixedtime.html?iso=20171028T2100&p1=248) and lasts for 100 minutes.<br /> <br /> The round problems are created by me ([user:E869120,2017-10-27]) and [user:square1001,2017-10-27].<br /> <br /> This contest will have four problems and it is **rated** for contestants whose rating is below 1200. The same as before, contestants whose rating is more than or equal to 1200 can take part out of competition.<br /> <br /> The scoring is: 100 &mdash; 200 &mdash; 300 &mdash; 400.<br /> <br /> I hope you can have fun during the contest. Good luck and have fun, wish you high rating!<br /> <br /> See you tomorrow!<br /> <br /> <br /> UPD 1: The editorial is [here](https://img.atcoder.jp/abc076/editorial.pdf). Thank you for participating!<br /> <br /> **UPD 2: Co...
AtCoder Beginner Contest 076, I'm quite excited to invite you to [AtCoder Beginner Contest 076](https://abc076.contest.atcoder.jp

Full text and comments »

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

68.
By chokudai, 7 years ago, In English
AtCoder Beginner Contest 164 Announcement We will hold AtCoder Beginner Contest 164. - Contest URL: https://atcoder.jp/contests/abc164 - Start Time: http://www.timeanddate.com/worldclock/fixedtime.html?iso=20200426T2100&p1=248 - Duration: TBD (around 2 hours) - Number of Tasks: 6 - Writer: kyopro_friends, [user:Kmcode,2020-04-25], [user:latte0119,2020-04-25], [user:smeke,2020-04-25], ynymxiaolongbao, wo01 - Rated range: ~ 1999 The point values will be 100-200-300-400-500-600. We are looking forward to your participation! Addition: About the Unrated ABC163 We are sorry for the inconvenience. The server down during the last contest was caused by a sudden access to the ALB, and we found that we could solve this problem by doing Pre-Warming. Also, the bug where the problem statement does not show up has been resolved by changing the caching algorithm. The problem with submissions showing up as IE (Internal Error) was due to the Judge server's scoring algorithm being different than in the past. This too h...
AtCoder Beginner Contest 164 Announcement, We will hold AtCoder Beginner Contest 164.

Full text and comments »

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

69.
By purplesyringa, history, 5 years ago, In English
Analysis of polynomial hashing Unfortunately, most derivations of the chance of polynomial hashing collision are invalid, wrong, or misleading, and finding reliable public sources with proofs is incredibly difficult. This article is a formal analysis of the method. The goal of this article is to complement well-known empirical facts with theory, provide boundaries on the probability of collision, justify common choices, and advise against certain popular parameters. There is no code in this article, and it's mostly theoretical. It's more of a summa of everything we know about polynomial hashing in integers rather than a guide for beginners. You'll probably find something of interest still. I do, however, describe some methods of cracking hashes, which I can provide code and additional explanation for if someone asks in the comments and some general guidelines in the last section of the present article. ## Table of contents - The concept of polynomial hashing - Classical justification of the coprimality r...

Full text and comments »

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

70.
By kuviman, 9 years ago, translation, In English
Russian AI Cup 2017 — CodeWars Hey everyone! Good news &mdash; Russian AI Cup 2017 has started! This competition is being held for the sixth time, and this time, hopefully, we will make happy all the fans of the RTS game genre &mdash; you will be controlling 500 vehicles of 5 different types at once. The task is to destroy the opponent! Try yourself in creating an artificial intelligence, it's simple and fun. Go to [Russian AI Cup site](http://russianaicup.ru) and enter the battle. Good luck! ![ Russian AI Cup ](/predownloaded/4a/df/4adfe13a25f1b8a2e90e72f98d6c12f7783ce57e.jpg) [cut] &nbsp; ### What is it? **Russian AI Cup** &mdash; largest annual artificial intelligence programming contest in Russia, and third open competition for talented IT-specialists that is part of Mail.Ru Group strategy of forming and developing competitive Russian IT-industry on a global scale. Following programming languages are supported: C++, C#, Java, Pascal, Python 2, Python 3 и Ruby. Anyway, as previously, we are ...

Full text and comments »

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

71.
By AnandOza, history, 7 years ago, In English
Atcoder Beginner Contest 146 -- Unofficial English Editorial Hi all, [Atcoder Beginner Contest 146](https://atcoder.jp/contests/abc146) was today. I wrote an unofficial English editorial. Hope it helps! ### [A: Can't Wait for Holiday](https://atcoder.jp/contests/abc146/tasks/abc146_a) We simply find the index in the week, and print $7-i$ (taking care to order the days correctly so Sunday gives us $7$ as the output). Runtime: $\mathcal{O}(1)$. <spoiler summary="Sample code"> ~~~~~ String w = "SUNMONTUEWEDTHUFRISAT"; // this is sort of a bad way to do this String s = in.next(); int i = w.indexOf(s) / 3; out.println(7 - i); ~~~~~ </spoiler> ### [B: ROT N](https://atcoder.jp/contests/abc146/tasks/abc146_b) We can simply loop through the string and increment each character by $N$, taking care to subtract $26$ if we go past the end of the alphabet. Runtime: $\mathcal{O}(|S|)$. <spoiler summary="Sample code"> ~~~~~ int n = in.nextInt(); char[] s = in.next().toCharArray(); for (int i = 0; i < s.length; i++) { s[i]...
Atcoder Beginner Contest 146 -- Unofficial English Editorial, Hi all, [Atcoder Beginner Contest 146](https://atcoder.jp/contests/abc146) was today. I wrote an

Full text and comments »

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

72.
By chen_zhe, history, 2 years ago, In English
A very brief introduction to Olympiad in Informatics in mainland China This article relies on ChatGPT-4 for translation. China has been hosting the National Olympiad in Informatics (NOI) since 1984. Over the past forty years, it has developed a unique system. I intend to provide a brief introduction to this system for everyone. In mainland China, about 100,000 people prepare for informatics competitions each year. The first step in these competitions is to participate in the CCF Certified Software Professional Junior/Senior (CSP-J/S). CSP-J is for contestants aged 8-14, while CSP-S is for contestants aged 10-18. CSP-J/S is divided into two stages. The first stage tests general and practical computer science knowledge, such as base conversion, principles of linked lists, and reading programs to answer questions. About 40,000 to 50,000 people pass the first stage of CSP-J/S. The second stage of CSP-J/S focuses on programming. The CSP-J second stage exam lasts 3.5 hours, while the CSP-S second stage exam lasts 4 hours, each with 4 problems. Approxi...

Full text and comments »

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

73.
By Qualified, 6 years ago, In English
Useful functions that nobody uses With [user:pllk,2021-01-15] introducing 100 more problems to the [CSES problemset](https://cses.fi/problemset/), the race for shortest code is on. Here in this blog, I talk about the many different ways of shortening code to get that shortest code. <h2>std::any_of</h2> This is a very useful function that returns true iff any of the elements in the range `[first, last)` satisfies some condition. Let's say you want to figure out if an array contains at least one 9. You could just write the naive loop and waste time in contest. ~~~~~ bool ok = 0; for(int i = 0; i < (int)(a).size(); ++i) { if(a[i] == 9) { ok = 1; break; } } ~~~~~ but you could be smart and write this all in one line. ~~~~~ bool ok = any_of(a.begin(), a.end(), [](int x) { return x == 9; }); ~~~~~ <h5>Time Complexity</h5> This is linear aka $O(n)$. <h2>std::all_of</h2> This is another useful function that functions similar to `std::any_of`. The difference is that it returns true iff all...

Full text and comments »

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

74.
By Anshul_Johri, 3 years ago, In English
C++ Debug Template! # C++ Debug Template &#x1F6E0; **Simplify variable tracking across functions and loops!** **Note:** For latest updates and a colored stderr version of this template, visit my [Github](https://github.com/Anshul-Johri-1/Debug-Template). <spoiler summary="Longer Template (std >= C++11)"> ```c++ #ifndef DEBUG_TEMPLATE_CPP #define DEBUG_TEMPLATE_CPP #include <bits/stdc++.h> // #define cerr cout namespace __DEBUG_UTIL__ { using namespace std; /* Primitive Datatypes Print */ void print(const char *x) { cerr << x; } void print(bool x) { cerr << (x ? "T" : "F"); } void print(char x) { cerr << '\'' << x << '\''; } void print(signed short int x) { cerr << x; } void print(unsigned short int x) { cerr << x; } void print(signed int x) { cerr << x; } void print(unsigned int x) { cerr << x; } void print(signed long int x) { cerr << x; } void print(unsigned long int x) { cerr << x; } void print(signed long long int x) { cerr...

Full text and comments »

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

75.
By Duukh, history, 17 months ago, In English
Introducing Competitive Programming to the Large Public **Hi Codeforces!** ![ ](/predownloaded/95/23/9523fe4cf8b4d49a9a3ecc32db7dcf4980b12768.png) We’re a group of passionate competitive programmers from 1337 School, Morocco, excited to announce our new project that aims to bring competitive programming closer to everyone — even those who’ve never tried solving a problem before! ####What’s Our Idea? In the CP community, we care deeply about content — problem quality, clever ideas, elegant solutions. But outside our world, many people have never even seen these brilliant problems because they’re buried in plain text, code snippets, and contest archives. So we thought: → Why not take some of the classic gems of competitive programming and present them with great design to attract the broader public? Instead of endless scrolling through social media, people could stumble upon a well-designed post with an intriguing problem that sparks curiosity. ####Our Approach We’re not inventing entirely new problems eve...

Full text and comments »

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

76.
By errorgorn, 5 years ago, In English
On "PermutationForces" Disclaimer: This blog is entirely my own opinion, please do not get mad at the authors from round 779. If you did not enjoy that round, please do not blame the authors. Personally, I felt that the authors overall did a wonderful job ([user:SPyofgame,2022-04-02]'s div 2F was honestly one of my favourite problems in 2022 so far). Last week round 779 was held, a common feedback that people seemed to be quite vocal about was that the round was "PermutationForces". ![ ](https://cdn.discordapp.com/attachments/953845613458522154/959661720647901205/unknown.png) ![ ](https://cdn.discordapp.com/attachments/953845613458522154/959661763014582282/unknown.png) ![ ](https://cdn.discordapp.com/attachments/953845613458522154/959661819516059648/unknown.png) ![ ](https://cdn.discordapp.com/attachments/953845613458522154/959664244431913030/unknown.png) If we look at the actual contest, we do see that problems B, C, D, E all contain the word permutation inside, so it is natural to think that pr...

Full text and comments »

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

77.
By purplesyringa, history, 2 years ago, In English
We teach wrong When I was a child, I knew software development well (though not much of C++), and my parents motivated me to try out competitive programming. The first thing I tried was dkirienko's section. In the first 20 minutes, GCD and the Euclidian algorithm were explained, the complexity of the Euclidian algorithm was proven, and that was pretty much it. We were then asked to solve a problem set on Codeforces individually. I didn't understand much from the complexity proof, couldn't solve a single problem, failed to figure out what I was supposed to do, and left crying. So yeah, stuff like that doesn't work. I understood simpler topics, though. I knew basic math, like how to solve linear systems and quadratic equations, and could make simple observations, so the school stage of ROI was quite easy to get through. (The hardest part was to explain to my then-informatics teacher that yes, I want the adult problems.) During the municipal stage, I had 3 hours to solve what I'd classify as a 5-t...

Full text and comments »

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

78.
By TheScrasse, history, 4 years ago, In English
Competitive Programming Roadmap (target: [gray, blue]) tl;dr ------------------ - Competitive programming roadmap [here](https://drive.google.com/file/d/16Jydn250Ue7K7hOfzLxw4p5jFF4ZCqWT/view?usp=sharing). - It should be suitable both for newcomers and for people with some experience with CP: let's say, up to blue on Codeforces. - It contains ~ 100 "must-know" problems about various topics: ad-hoc, STL, binary search, DP, number theory, graphs. - There are solution sketches at the bottom, don't feel guilty reading them if stuck. Why? ------------------ Many people new to Codeforces seek advice about how to get better / which problems to try. Other people are stuck on gray / green even after solving a lot of problems. This roadmap aims to be a solution. My take: to be good at competitive programming, you have to know "what to think" and "how to think" when you try a problem. - "What to think": you have to know a decent amount of standard problems / techniques. Sometimes, a problem requires steps / observations that seem ob...
/) contains a lot of educational problems, and AtCoder Beginner Contests problems are quite good for

Full text and comments »

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

79.
By Baba, history, 6 years ago, In English
Indian Programming Camp 2020 Hi Everyone, I'm delighted to announce that we will be hosting Indian Programming Camp (IPC) &mdash; 2020 edition online from **November 20th &mdash; November 22nd**. The camp has **no charges** and anyone can **register** and attend. In the past, the IPC camp used to be conducted offline and was mainly targetted towards experienced IOI and ICPC aspirants. You can take a look at the [IPC 2016](https://www.youtube.com/playlist?list=PLi0ZM-RCX5nsTc2Z6woHr5qoF6n3b-thO) and [IPC 2017](https://www.youtube.com/playlist?list=PLi0ZM-RCX5nvImim3_ilsdLOtDDkOWt-X) playlists to get an idea of the format. This year, we are introducing three different tracks &mdash; Div3/Div2/Div1, catering to Beginner/Intermediate/Advanced programmers. Event: **Indian Programming Camp 2020** Dates: **November 20th &mdash; November 22nd, 2020** Platform: **[YouTube](youtube.com)** and **[Unacademy](https://unacademy.com/goal/competitive-programming/LEARNCP)** Tracks: **Div1/Div...
:** https://unacademy.com/a/i-p-c-beginner-track, This year, we are introducing three different tracks — Div3/Div2/Div1, catering toBeginner

Full text and comments »

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

80.
By Lyde, history, 3 years ago, In English
random quotes Oh hi! Welcome to 24 random quotes! I'm a competitive programmer, but I'm also pretty much a fan and often visit here to see some recent actions. I have a pretty unusual hobby: Collecting some sentences from blogs and comments and saving them as pictures, which I could use later for memes. Later I realized that I couldn't use it that much and after 4 years, it became a collection of well, memories. So I had the idea of sharing some of it with you guys for nostalgia! Most of them are light-hearted, and all of them are pretty memorable in my mind. If you are an experienced member here you might realize some of them, so I will make it a challenge: Guess where this is from! (No prizes sadly) The spoiler to the link of the comment/blog and my personal opinion (or s/p) will be right below the quote. Anyways, enjoy. > If newcomers find it confusing, then that's their bugaboo <spoiler summary="s/p"> [Link](https://codeforces.me/blog/entry/91480#comment-800196) Still rem...

Full text and comments »

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

81.
By cdkrot, history, 8 years ago, translation, In English
Codeforces Round #503 (based on SIS olympiad) Hi! _Summer Informatics School (SIS / LKSH) is a summer school for students in grades 6-10. SIS is focused mainly (but not only) on students participating in the Olympiads in Informatics — from beginners to participants of international competitions. SIS is held in July and August, each of them is visited by about 200 students from all over Russia and abroad. The language of the camp is Russian. Additional information about SIS is posted at [lksh.ru](http://lksh.ru)_ Right now, the August branch of the Summer Computer School is running, and on August 11 the traditional team Olympiad is going to place. I am happy to present a rated round based on it! The round will be rated for both divisions, will be held in [contest_time: 1020], in each division there will be 5 tasks and 2 hours to solve them. The problems of this round and the SIS olympiad were authored and prepared by SIS's teachers: [user:izban,2018-08-09], [user:achulkov2,2018-08-09], [user:Schemtschik,2018-08-09], [us...

Full text and comments »

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

82.
By FHVirus, history, 5 years ago, In English
[Tutorial] A Bit of Math, Historic Sum, and Range Add Range Sum Binary Indexed Tree (Fenwick Tree) Hello CodeForces! Since my contribution is negative currently (-4) due to a stupid comment I made, I would like to write a little tutorial to earn some contribution stonks. Anyways, here's the outline of this tutorial: 1. We're going to solve a simple problem and a not-so-simple problem, then 2. use the formula derived from the problems to solve "Historic Sum" problem and maintain it on data structures like segment trees. 3. Use the same technique to solve the "Range Add Range Sum" problem with BIT. Yes, it's possible! Disclaimer: I did not come up with the method myself. Tutorials on historic sum problem can be found [here](https://codeforces.me/blog/entry/57319) from [user:jiry_2,2022-02-13]'s blog, and range add range query BIT can also be found on the Internet. I forgot the link to the original post, but the same technique can be found in several different Chinese blogs. This blog serves as an implementation of Feynman's learning technique, and I hope that it makes s...
It will be a bit long (I want to make everything clear for even a beginner), so maybe you'll want

Full text and comments »

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

83.
By Sanae, history, 16 months ago, In English
Set algorithm(rev.2) # Set algorithm Part I Sometimes we may meet with some functions $S\rightarrow V$(S is a set,V is a value),and we need to handle some transformations on it. The article is for beginners whick is much easy, and I may continously update the article. There are some features. First the problem always give small $n$,such as $n\leq 15,n\leq20$. Second,the time complexity is always $O(n2^n),O(3^n),O(n^22^n)$. Let's do some assumption: The values form a ring and they contain ring operations like addition,substraction,multification or division in constant time. ## FWT/FMT The most classical one is FWT/FMT. ### Problem Define $a(S),b(S)(S\subseteq U)$ on a set. Get all $c(S)=\sum\limits_{i \oplus j=S}a_ib_j\qquad \oplus \text{is} \ \textrm{and,or,xor}$ The general idea: Let $a, b, c$ be maps (functions) from a set $S$ to a value domain $V=(N/Q/C\cdots)$. We define a transformation $\text{FWT}$ (Fast Walsh Transform) as a map from the space of such functi...

Full text and comments »

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

84.
By -is-this-fft-, history, 5 years ago, In English
[Thought process] Solving 1503C — Travelling Salesman Problem #### Preface When the problem came out, someone [asked](https://codeforces.me/blog/entry/89337) for an explanation of how people come up with such solutions. I wanted to write this blog even before that, but I've just been busy. Anyway now, two months later, I finally had the time to put this blog together. But the reason I really wanted to write this blog is that the solution to [problem:1503C] has a very much non-obvious greedy solution. From reading beginners' comments, it seems that a lot of people have this implicit belief that greedy algorithms are invented by _guessing_: for example, _guessing_ an order in which to process things, _guessing_ how to process things and then maybe proving correctness if you have time (but really skipping it, because who cares, right?). I think some contest sites even perpetuate this idea by presenting a greedy algorithm in the editorial without any kind of proof or explanation where this comes from. Even here, you may have tutor...

Full text and comments »

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

85.
By DanTheMan., history, 19 months ago, In English
Montgomery Blair Informatics Tournament 2025 And... We're back! The [Montgomery Blair HS computer team](https://compteam.mbhs.edu/) is excited to present the seventh edition of the **Montgomery Blair Informatics Tournament (mBIT)** &mdash; mythology edition! ![ ](/predownloaded/d3/82/d3822cf14dfef4879eda610268863f2a394c484d.png) Just like last year, we will be holding the competition in a dual format. We will have an in-person competition at [Montgomery Blair High School](https://maps.app.goo.gl/HLt87qKPKiH9Zock8) open to middle school and high schoolers, and an online mirror hosted here on Codeforces and open to everyone. **Details** - Sunday, June 1st, 2025 - In-person event: 10 AM &mdash; 3:30 PM EST - Competition time: [11 AM &mdash; 2 PM EST](https://www.timeanddate.com/worldclock/fixedtime.html?msg=Montgomery+Blair+Informatics+Tournament&iso=20250601T11&p1=263&ah=3) - Teams of up to three - Three divisions - $800+ total prize pool plus t-shirts For the first time, we will be offering three ...
In-person Beginner High School:, In-person Beginner Middle School:

Full text and comments »

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

86.
By tourist, 6 years ago, In English
touristream 011: Codeforces Round 670 (Div. 2) + Educational 95 Hey there! During my last stream ([link to YouTube](https://www.youtube.com/watch?v=JU3HY5GLVnY)), besides the expected SNSS Round 5, I did Codeforces Round 669 (Div. 2) virtually trying to explain most of my thoughts in the process. I'd say it went pretty well! Tomorrow I'll hold another stream solving the most recent Codeforces Div. 2 rounds: [Round 670](https://codeforces.me/contest/1406) and [Educational 95](https://codeforces.me/contest/1418). I might also do today's [AtCoder Beginner Contest 178](https://atcoder.jp/contests/abc178). I'm planning to go live right after Educational 95 finishes &mdash; that is, around [19:45 MSK](https://www.timeanddate.com/worldclock/fixedtime.html?msg=touristream+011&iso=20200914T1945&p1=3396). A question is, given that I will do both Round 670 and Educational 95, which one should I do first? [Vote here](https://strawpoll.com/jp3zdqq4c) :) As usual, the stream will be live on [my Twitch](https://www.twitch.tv/the__tourist), make s...
also do today's [AtCoder Beginner Contest 178](https://atcoder.jp/contests/abc178).

Full text and comments »

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

87.
By dmkozyrev, history, 8 years ago, translation, In English
[Tutorial] Rolling hash and 8 interesting problems [Editorial] **UPD**: while I was translating this post from Russian to English, [user:dacin21,2018-07-06] wrote his post, more advanced, [link](http://codeforces.me/blog/entry/60442). I hope that my post will help beginners, but in my post more rough estimates. And in Russia we call **rolling hashes** as a **polynomial hashes**. Hello, codeforces! This blogpost is written for all those who want to understand and use polynomial hashes and learn how to apply them in solving various problems. I will briefly write the theoretical material, consider the features of the implementation and consider some problems, among them: 1. Searching all occurrences of one string of length $n$ in another string length $m$ in $O(n + m)$ time 2. Searching for the largest common substring of two strings of lengths $ n $ and $ m $ $(n \ge m) $ in $O((n+m \cdot log(n)) \cdot log(m))$ and $O(n \cdot log(m))$ time 3. Finding the lexicographically minimal cyclic shift of a string of length $ n $ in $ O(n \cdo...

Full text and comments »

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

88.
By WaterColor2037, history, 7 years ago, In English
AtCoder Beginner Contest 129 — Unofficial English Editorial Hello Codeforces! Did you enjoy the [AtCoder Beginner Contest 129](https://atcoder.jp/contests/abc129)? As usual, there was only [Japanese editorial](https://img.atcoder.jp/abc129/editorial.pdf) published, so I translated it into English again. **Disclaimer.** Note that this is an unofficial editorial and AtCoder has no responsibility for this. Also, I didn't do proofreading at all, so it might contain many typos. Moreover, this is the second experience I write such kind of editorial, so the English may not be clear, may be confusing, or even contain mistakes. Any minor corrections (including grammatical one) or improvement suggestions are welcome. Please do not hesitate posting a comment about it. ## A: Airplane There are 6 orders to visit the airports, so you can try all of them and look for the minimum value. However, if you realized that each cost of a route is equal to the sum of two integers out of the given three, you could also obtain an answer by subtracting ...
AtCoder Beginner Contest 129 — Unofficial English Editorial, Hello Codeforces! Did you enjoy the [AtCoder Beginner Contest 129](https://atcoder.jp/contests

Full text and comments »

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

89.
By E869120, 9 years ago, In English
[Tutorial] A Way to Practice Competitive Programming : From rating 1000 to 2000 Dear Codeforces Community.<br /> <br /> Today I want to share some ways to practice competitive programming and getting rating. I think this is helpful for those who is practicing competitive programming hardly but rating is sluggish. (By the way, on July 17th, I have a project of competitive programming said CombNaf in Japan. I did a lecture about this. Great thanks to the CombNaf's organizer is [user:Nafmo2,2017-07-17].)<br /> <br /> I will write this by **4 steps**: rating **<font color="grey">1000</font> --> <font color="green">1250</font>**, **<font color="green">1250</font> --> <font color="aqua">1500</font>**, **<font color="aqua">1500</font> --> <font color="blue">1750</font>**, **<font color="blue">1750</font> --> <font color="purple">2000</font>**, in Codeforces Rating System.<br /> <br /> Before writing about each step, I wrote it as premise: You don't have to do this way. This is just a way to practice. Ways to practice is different among people, so I think this may n...
Div2 A. * Solve ABC-C in AtCoder. There are many educational problems in AtCoder Beginner

Full text and comments »

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

90.
By NemanjaSo2005, 3 years ago, In English
Codeforces Round 911 (Div. 2) Editorial [problem:1900A] Author: [user:NemanjaSo2005,2023-11-26] <spoiler summary="Hint 1"> Assume that cells $i-1$, $i$, and $i+1$ are covered in water. What happens if you remove water from cell $i$? </spoiler> <spoiler summary="Hint 2"> The water at position $i$ is replaced as both cells $i-1$ and $i+1$ have water in them. </spoiler> <spoiler summary="Solution"> Read the hints. If there are 3 consecutive empty cells $i-1$, $i$, $i+1$, we can place water in cells $i-1$ and $i+1$ and then move water from cell $i$ to all other cells. If there are no such cells, we have to place water on every empty cell. So if we find substring ''...'' in the array, the answer is $2$, otherwise the answer is the number of empty cells. Time and memory complexities are $O(N)$. </spoiler> <spoiler summary="Bonus"> Solve the problem if it is required that each cell is filled with water, or next to at least $1$ cell that is filled with water. </spoiler> [problem:1900B] ...
lot of beginner problems use a similar idea.

Full text and comments »

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

91.
By Errichto, 3 years ago, In English
Group tutoring Hi. I offer classes for groups of 2-3 students. I teach competitive programming with a focus on problem-solving. There won't be many lectures because I can send you an article/video link instead. The lesson cycle is usually: I choose a problem, you say your thoughts and ideas, I comment on incorrect ideas, and we talk about the valid solution(s), possibly with drawings and pseudocode. In beginner groups, I might ask you to implement something, C++ or Python preferred. There's a lot of homework and you're expected to practice a few hours per week. We might spend half a lesson talking about 1-2 homework problems from last week. This is intended. We use Google Meet, shared whiteboard, and a collaborative editor Codebunk. After a lesson, you get a video recording and a codebunk with code/text history like this one https://codebunk.com/pb/3501100331621/. This allows you to copy links and code easily. There's a Discord group chat to ask questions between classes. - 1.5h les...
beginner groups, I might ask you to implement something, C++ or Python preferred.

Full text and comments »

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

92.
By twosquares, 7 months ago, In English
Illinois Programming League 2026: Online Mirror <img src="/predownloaded/d2/d7/d2d714b81f6a2694fc3a778f500d80d8ce93c47c.png" style="float:right; width:200px; height:auto; margin-left:50px; margin-right:50px; border-radius:0px;" /> The UIUC ICPC club is excited to invite you to the online mirror of **[Illinois Programming League 2026](https://icpc.cs.illinois.edu/ipl)**, an ICPC-style team contest that will be held starting [contest_time:688942]. The mirror will be held on Codeforces as a mashup: [invite link](https://codeforces.me/contestInvitation/a633a1477e75984966d82d0cdf2882376c67bcb9). The mirror is open to everyone. The contest is **4 hours** and meant for teams of up to three people. Unlike the standard ICPC rules of one computer per team, teams are asked to use at most **two computers** at a time in this contest. In addition, most problems will be released at the beginning of the contest, but a few problems will be released at various times later in the contest. The exact details will be added to this post later...

Full text and comments »

Announcement of IPL 2026
  • Vote: I like it
  • +122
  • Vote: I do not like it

93.
By DanTheMan., 18 months ago, In English
mBIT 2025 Editorial Thank you to everyone who competed in mBIT 2025! It was a record breaking year for us with 84 in-person participants and 135 online participants. We hoped you guys enjoyed it as much as we did. We tried hard to make the problems fun and interesting for as wide of a skill gap as possible. In fact, this year's competition had an in-person team of middle schoolers that was unfamiliar with for loops, and an online team with all three participants in the top 15 in the world in codeforces. We are glad to contribute to all niches of the computer science community: beginner and advanced, local and global. Thank you all for your enthusiasm. Congratulations to the winners: **Online Advanced:** - 1st place &mdash; HoMaMaOvo &mdash; Masaki Nishimoto, Riku Kawasaki, Yui Hosaka - 2nd place &mdash; mathforcesbox &mdash; Brian Xue, Bing-Dong Liu, Alex Chen - 3rd place &mdash; bluepuppygreenturtle &mdash; Rain Jiang, Kai Jiang **Online Intermediate:** - 1st place &mdash; NULP Lega...
**In-person Beginner (High School):**, **In-person Beginner (Middle School):**

Full text and comments »

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

94.
By dXqwq, 4 months ago, In English
The 8th Turing Cup Tournament **UPD 1: Submitting a recording will be required in order to win (division top 3 or best female coder) prize. The format of the recording & rules are the same with [AGC](https://atcoder.jp/posts/agc_proctoring_en).** **UPD 2: We've noticed that contest is unavailable in the X-Camp Contest System. We are investigating.** **UPD 3: International contestants should also register at XinYouDui contest system.** **UPD 4: You should submit your video file(or url) to `[email protected]`.** # 2026 · The 8th Turing Cup Tournament The Turing Cup is an invitational competition that is organized by one of the most successful informatics competition teams in China, the XinYouDui and partner with X-Camp Academy. ## Timeline | Event | Time (UTC+8) | |----------------------|-----------------------------------------| | Registration Time | Jun 18, 2026, 06:00 PM &mdash; Jul 30, 2026, 12:29 PM | | Opening Ceremony | Jul 30, 2026, 07:...

Full text and comments »

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

95.
By BledDest, 9 months ago, In English
Kotlin Heroes 14 Announcement Hello Codeforces! <img src="/predownloaded/06/ac/06ac0ca161da9600c032502a8e61c4f216557657.png" style="width:350px;float:right;margin:0 1em 1em 1em;"/> We are happy to announce the new episode of Kotlin Heroes! It is both an opportunity to try learning a new programming language (if you've never coded in Kotlin before) or solve programming problems of very different levels of difficulty in it (if you're already familiar with Kotlin). No matter if you're a professional or a beginner, we'll be glad to see you participate! This is already the fourteenth time we conduct this competition, and the previous 13 episodes had lots of amazingly talented programmers participating. You can see for yourself by checking them out: [Episode 1](https://codeforces.me/contests/1170,1171), [Episode 2](https://codeforces.me/contests/1211,1212), [Episode 3](https://codeforces.me/contests/1297,1298), [Episode 4](https://codeforces.me/contests/1346,1347), [Episode 5: ICPC Round](https://codeforce...
you're a professional or a beginner, we'll be glad to see you participate!

Full text and comments »

Announcement of Kotlin Heroes: Practice 14
Announcement of Kotlin Heroes: Episode 14
  • Vote: I like it
  • +90
  • Vote: I do not like it

96.
By kuviman, 10 years ago, translation, In English
Russian AI Cup 2016 — CodeWizards Hey everyone! Good news &mdash; Russian AI Cup 2016 has started! This competition is being held for the fifth time, and this time, hopefully, we will make happy all the fans of the MOBA game genre &mdash; you will be controlling a wizard, and together with 4 teammates you will try to destroy enemy base with magic and help of minions. Try yourself in creating an artificial intelligence, it's simple and fun. Go to [Russian AI Cup site](http://russianaicup.ru) and enter the battle. Good luck! ### What is it? **Russian AI Cup** &mdash; largest annual artificial intelligence programming contest in Russia, and third open competition for talented IT-specialists that is part of Mail.Ru Group strategy of forming and developing competitive Russian IT-industry on a global scale. Following programming languages are supported: C++, C#, Java, Pascal, Python 2, Python 3 и Ruby. Anyway, as previously, we are ready to support language packages, realized by the community. We welcome bo...

Full text and comments »

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

97.
By Geothermal, history, 7 years ago, In English
AtCoder Beginner Contest 139 English Solutions #A &mdash; Tenki This is a fairly simple task--just iterate over all positions in the strings and count the ones where S[i] = T[i]. Runtime: $O(|S|)$. [Click here for my submission.](https://atcoder.jp/contests/abc139/submissions/7247680) --- #B &mdash; Power Socket Note that we already have one socket, so we need to fill $B-1$ more sockets. Additionally, each new outlet we add will take up one socket and add $A$ sockets, resulting in a net addition of $A-1$ sockets. We thus need to create at least $B-1$ sockets where each outlet gives us $A-1$ sockets, making our answer $\lceil \frac{B-1}{A-1} \rceil$. Since most programming languages use floor division, we can also express this as $\lfloor \frac{A+B-3}{A-1} \rfloor$. Runtime: $O(1)$. [Click here for my submission.](https://atcoder.jp/contests/abc139/submissions/7249379) --- #C &mdash; Lower We essentially use two pointers. Maintain the starting position at zero. Then, while the next position isn't hi...
AtCoder Beginner Contest 139 English Solutions

Full text and comments »

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

98.
By ditoly, history, 8 years ago, In English
Codeforces Round #511 Editorial Hi, here is the editorial. Sorry for a long waiting. Have you enjoyed this round? I hope so. I know there are many things not so good and making some people unhappy :( I'm very sorry about that. Since this is my first round, I have many things not taken into consideration or done badly. I will try to improve them if I have my next round (I hope). Let's talk about the problems. The problems are mainly prepared by me, [user:ditoly,2018-09-22], which can be seen in D1D as "Little D". Also, my friends [user:ACMLCZH,2018-09-22] ("Little C") and [user:FallDream,2018-09-22] ("Mr. F", I don't know whether this name can explain Chinese word "F大爷" well, maybe "Master F" is better?) provided great helps. The statements are mainly written by me (with the help of [user:300iq,2018-09-22] and [user:cyand1317,2018-09-22] and some others, thanks!). My English is not so good, so it's frequent that I just understand the problem but other people get AC :( So I try to explain the problems in short st...

Full text and comments »

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

99.
By WaterColor2037, history, 8 years ago, In English
AtCoder Beginner Contest 128 — Unofficial English Editorial Hello Codeforces! Did you enjoy the [AtCoder Beginner Contest 128](https://atcoder.jp/contests/abc128)? A Japanese editorial is [already out](https://img.atcoder.jp/abc128/editorial.pdf), but unfortunately there is no English editorial, so I translated it into English experimentally. Note that this is an unofficial one; AtCoder has no responsibility for this editorial. Also, I didn't do proofreading at all, so it might contain many typos. Moreover, this is the first experience I write such kind of editorial, so the English may not be clear, may be confusing, or even contain mistakes. Any minor corrections (including grammatical one) or improvement suggestions are welcome. Please do not hesitate posting a comment about it. ## A: Apple Pie For simplicity, you can cut all the apples into pieces in advance. As a result, you will have $3A+P$ pieces of apple. By using all these pieces as much as you can make apple pie, you will get maximum number of apple pies. The maximum ...
AtCoder Beginner Contest 128 — Unofficial English Editorial, Hello Codeforces! Did you enjoy the [AtCoder Beginner Contest 128](https://atcoder.jp/contests

Full text and comments »

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

100.
By anpaio, history, 2 months ago, In English
Introducing Codeforge — launching October 12 Hello, Codeforces! We, [Algolymp](https://www.algolymp.com/en), are a team of competitive programmers from Romania, and we’ve been working on [Codeforge](https://code.algolymp.com/codeforge-access), a multiplayer game built around solving algorithmic problems. Special thanks to [user:munteanuvlad98,2026-10-09] for coordinating this project. The idea is simple: take the problem-solving we enjoy and give it more ways to be played together. Challenge a friend, compete as a team, enter a knockout tournament, or work through daily problems on your own. What can you do in Codeforge? - Solve daily challenges. Problems range from beginner-friendly exercises to IOI/ICPC-level challenges, whether you’re learning your first algorithms or preparing for your next contest. - Play individual or team battles. Go head-to-head with another player, or team up with friends and compete against another team. - Enter knockout tournaments. Compete individually or as a team, with each round de...
- Solve daily challenges. Problems range from beginner-friendly exercises to IOI/ICPC-level

Full text and comments »

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

101.
By dmkozyrev, history, 7 years ago, translation, In English
Эффективная реализация умножения Карацубы с авто-векторизацией **В данном блоге приводится эффективная реализация умножения Карацубы двух многочленов.** [cut] $$\text{ }$$ Всем привет! Давным-давно меня попросил один человек научить его находить миллионное число Фибоначчи абсолютно точно на C++ за секунду. Эта задача была [успешно решена](https://ideone.com/qO88bh) умножением Карацубы. После этого я попробовал сдавать стандартные задачи вроде "сопоставить одну строку из символов $\text{ATGC}$ к каждой позиции другой строки и найти позицию с максимальным числом совпадений" алгоритмом Карацубы, и они успешно сдавались с двукратным запасом по времени. Было много реализаций, но в итоге [user:MrDindows,2020-02-24] помог написать самую эффективную из всех, которые придумывались, и я решил поделиться ей. Идея умножения Карацубы ================== Пусть у нас есть два многочлена $a(x)$ и $b(x)$ равной длины $2n$ и мы хотим их умножить. Представим их как $a(x) = a_0(x) + x^n \cdot a_1(x)$ и $b(x) = b_0(x) + x^n \cdot b_1(x)$. Теперь посчит...
://codeforces.com/contest/528/submission/57981446) and [AtCoder Beginner Contest 149 E. Handshake](https, ](https://codeforces.me/contest/528/submission/57981446) и [AtCoder Beginner Contest 149 E. Handshake

Full text and comments »

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

102.
By maroonrk, history, 6 years ago, In English
ACL Contest 2 Announcement **This contest is CANCELLED.** **Please read updates for details** We will hold ACL Contest 2. - Contest URL: https://atcoder.jp/contests/acl2 - Start Time: TBD - Duration: 150 minutes - Number of Tasks: 6 - Writer: [user:maroonrk,2020-09-25], [user:yosupo,2020-09-25] - Tester: [user:maroonrk,2020-09-25], [user:yosupo,2020-09-25], [user:sigma425,2020-09-25] - Rated range: 1200 &mdash; 2799 The point values will be 300-600-700-900-1300-1900. The concept of this contest is the same as ACL1, so you may refer to the [announcement](https://codeforces.me/blog/entry/82806) of ACL1 for more details. We are looking forward to your participation! **UPD**: We decided to postpone the contest. The new date is not confirmed, but it is likely to be 3rd October. The reason for this sudden decision is the collision of the problem with **today's Japanese contest** ([problem](https://yukicoder.me/problems/no/1241)). This task is almost the same as our E. We thought if w...

Full text and comments »

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

103.
By Geothermal, history, 7 years ago, In English
AtCoder Beginner Contest 135 English Solutions #A &mdash; Harmony Without loss of generality, let $A < B$. Then, we have three cases: - $K$ is less than $A$. This gives $A - K = B - K$, which gives $A = B$, which is false. - $K$ is greater than $B$. This gives $K - A = K - B$, which is also false. - $K$ is between $A$ and $B$. This gives $K - A = B - K$, which gives $2K = A+B$. Thus, we must have $2K=A+B$. If $A+B$ is odd, there is thus no solution. If $A+B$ is even, our answer is $\frac{A+B}{2}$. It is easy to verify that this number is indeed between $A$ and $B$. Runtime: $O(1)$. [Click here for my submission.](https://atcoder.jp/contests/abc135/submissions/6560205) --- #B &mdash; 0 or 1 Swap Let $K$ be the number of positions $i$ at which $p_i \neq i$ (using 1-indexing). If $K = 0$, the answer is yes, as we can simply leave the permutation as is. If $K = 2$, the answer is also yes: swap the two misplaced elements. (Notice that we can never have $K = 1$, as if any element is put in the wrong posi...
AtCoder Beginner Contest 135 English Solutions

Full text and comments »

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

104.
By wuhudsm, history, 3 years ago, In English
My ultra-short problemset which can be read in 60s (Last updated time:$2023/8/31,14$ problems) Hi guys,here I'd like to share some of my problems(will continue to be updated, depending on your feedback). All the problems are created by myself. They contain my aesthetic of problems: the neater,the better. Interest and educational significance are also important. You can find the editorial for all the problems in the link,so I will only write down some interesting points under the statement. Let's go :) #### [1.Increasing and Decreasing](https://mirror.codeforces.com/contest/1864/problem/A) Construct an array $a$ consisting of $n$ integers which satisfies the following conditions: - $a_1=x,a_n=y$; - $a$ is **strictly** increasing; - if we denote $b_i=a_{i+1}-a_{i}$ for $1 \leq i \leq n-1$, then $b$ is **strictly** decreasing. <spoiler summary="Constraint"> $1 \le x < y \le 1000,3 \le n \le 1000$ </spoiler> <spoiler summary="Difficulty"> DIV2A </spoiler> <spoiler summary="Point"> One of the easi...

Full text and comments »

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