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.

judge

Last visit:  12 years ago
Registered:  15 years ago
2.
By MikeMirzayanov, 3 weeks ago, In English
Codeforces Round 1134 (Div. 4) Hello Codeforces! I am glad to invite you to [contest:2290], which will take place on [contest_time:2290]. After quite a long break, I have taken up problem setting again — this time working together with AI agents. For me, this is an experiment in getting back into problem writing, and we will see together how successful AI turns out to be as a partner in this work. I am looking forward to seeing both Div. 4 participants competing officially and everyone else joining out of competition! <div style="height:1em;"></div> <spoiler summary="Why I decided to author this round (a bit of lyrics and rambling)"> Yes, I am dictating these words into my phone right now, to put them into shape for you a bit later. We live in an amazing time when so many things are changing. I have been programming for more than 25 years now, and throughout almost all of this time I wrote code every day and solved problems every day. At first, these were mostly programming contest problems — ...
of meditation — I slip into a slightly different state of mind, and now it is up to you tojudge, slip into a slightly different state of mind, and now it is up to you to judge the result of how

Full text and comments »

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

3.
By MikeMirzayanov, 7 years ago, In English
Codeforces Round #639: the round is rescheduled Hello, Codeforces! Unfortunately, I report that I decided to reschedule this round. I'm afraid that something might go wrong. Some strange database behavior has appeared, which leads to slow operation in completely unexpected places (it never was and should not be). I will work hard to fix it. My recent tests show that this can dramatically increase judging time (and leads to a huge queue). I don't want to risk the efforts of the writer, the coordinator, testers, and your time. Sorry about it, I was trying to fix it for many hours but I need more time. Hope it will be a great round! Mike. **UPD 1:** I temporarily rescheduled it on May, 6. But I'll discuss the date with the writer and coordinator and reschedule it again to the date they want. **UPD 2:** [user:Monogon,2020-05-04] approved that [contest_time:1345] is good new date and time for the round. See you in 3 days! **UPD 3:** It seems I've fixed the issue. It turned that it was connected with [week ago incident](htt...

Full text and comments »

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

4.
By ahmed_aly, history, 7 years ago, In English
Goodbye A2 Online Judge :( I'm sadly announcing that [a2oj.com](https://a2oj.com/) ([A2 Online Judge](https://www.facebook.com/A2OnlineJudge/)) will be retiring by end of 2019, I'll shut it down at midnight on New Year's Eve. It was something I took care of for about 10 years. I'm really sorry, but I prefer not to explain my reasons, so please don't ask me why I'm doing this, it was hard enough for me to make this decision, and also please don't try to convince me to change my mind. I'd like to say thank you to everyone who used it, and please accept my sincere apologies for shutting it down. If you have something good to say about A2OJ (how you used it or how it helped you in any way), I'd love to read that, please send it to the following email (or in a comment here): [email protected] Also please feel free to take a copy of any data you can access, and if you need some data in a specific format, please send your request to the following email: [email protected] (if the data isn't public, make sure to send f...
Goodbye A2 Online Judge :(, again, I'll also deactivate [A2 Online Judge ](https://www.facebook.com/A2OnlineJudge/)., Edit 3: A2 Online Judge is shut down now, and a static version of all ladders and categories is, I'm sadly announcing that [a2oj.com](https://a2oj.com/) ([A2 Online Judge ](https://www.facebook.com

Full text and comments »

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

5.
By maspy, history, 4 months ago, In English
0 Problems Remaining [日本語記事(For Japanese Speakers)](https://maspypy.com/codeforces-all-ac) ---- Previous post: https://codeforces.me/blog/entry/150057 Submission: [submission:384239819] 2026/07/26 03:13:42 JST (2026/07/25 18:13:42 UTC) I have solved every problem in the Codeforces PROBLEMSET except for those for which I determined that obtaining an accepted verdict is impossible. ![unsolved problem list](https://maspypy.com/wp-content/uploads/2026/07/problemset.png) # Scope I considered the problems listed in the [PROBLEMSET](https://codeforces.me/problemset). I have solved very few problems from the [GYM](https://codeforces.me/gyms). The only collection I worked through systematically was the PROBLEMSET. I determined that it is theoretically impossible to obtain an accepted verdict for the following 31 problems: [problem:775A], ([92101](https://codeforces.me/problemset/problem/921/01) ... [92114](https://codeforces.me/problemset/problem/921/14)), [problem:927A], [prob...
solution code. - Problems for which the statement, judge, required file download links, or other, - Problems for which the statement, judge, required file download links, or other necessary

Full text and comments »

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

6.
By NXIST_buster, history, 6 years ago, In English
Corruption, Cheating at ICPC Yinchuan This blog is about Corruption and Cheating at ICPC YinchuanRegional. ICPC Yinchuan Regional is one of the ICPC regional contests for students competing in the geographic area of Asia East Continent. I. Background: General Info ------------------ Ningxia Institute of Science of Technology, or NXIST is a higher education institute in China. Since 2019, NXIST has held two regional contests. The and both were considered by many participants as jokes, yet until today participants are unaware of the NXIST's extent of evil. Zhihu is a Chinese website similar to Quora, and I will refer to this website for information. II. Background: Before 2021 ------------------ Regional competitions in China consists of two stages: The online selection contest and the onsite regional contest. As there are many contestants in China, the online contest is considered serious and rules are usually strictly enforced, with entire universities where some participant cheats disqualified from attend...
the Online Judge failed during the contest and the qualifier was again announced to be effectless, After wild condemnations, NXIST attempted to hold another online qualifier where the OnlineJudge

Full text and comments »

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

7.
By rng_58, history, 6 years ago, In English
AtCoder Library Recently, the number of algorithms and data structures we use in competitive programming are rapidly growing. It's a nice thing: by using more algorithms, the variety of possible problems gets wider, and we can enjoy more problems. On the other hand, before reaching adhoc, thinking-oriented part of this competition, we have to spend more and more time to learn algorithms. Sometimes a problem asks matching on general graphs; you have to find a paper describing it, read it, and implement its really complicated algorithm. Or sometimes you have to spend time tuning your library by a constant factor. Or sometimes you use multiple pre-written codes together, the variable names collide, and get annoyed. Until now, I basically rejected all problems that require pre-written codes of complicated algorithms because I don't like these things. For example, we never used segment trees with lazy propagation in our contests. However this way we can't use otherwise interesting problems and it ...
practice problems](https://atcoder.jp/contests/practice2). we are working with somejudge trouble

Full text and comments »

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

8.
By EvenImage, history, 7 years ago, In English
A problem collection of ODE and differential technique ##A problem collection of ODE and differential technique *This problem might be well-known in some countries, but how do other countries learn about such problems if nobody poses them.* For those who are interested in well-known problems in China. Thank [user:Elegia,2020-04-23] and [user:djq_cpp,2020-04-23] for developing this technique. Thank [user:tEMMIE.w.,2020-04-23] for reviewing this article. ####[Chain Reaction](http://uoj.ac/problem/50) in UOJ Round 3 By [user:vfleaking,2020-04-23] **Statement** ​ You are given a set $A$, you need to compute $g_{i} = \frac{1}{2} \sum_{j,k}{i-1 \choose j}{i-1-j \choose k} g_jg_k$ where $i-1-j-k \in A$. **Solution** ​ Let the EGF of $g$ be $x(t)$ and EGF of $A$ be $a(t)$. Thus $x'(t)=\frac{1}{2} a(t) x^2(t)+1$. We can solve this equation by D&C and FFT in $O(n\log^2 n)$. But there is a <s>slower</s> solution in $O(n\log n)$. ​ For a polynomial equation $f(x(t))=0$, we can use the Newton's method to solve it. If we find ...
#### [Universal Judge Aircraft](http://uoj.ac/contest/51/problem/514) in UOJ Round 19 By

Full text and comments »

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

9.
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

10.
By MikeMirzayanov, 8 years ago, translation, In English
Hello, ITMO! <img src="https://assets.codeforces.com/images/itmo-logo.png" style="margin:1em 1em 1em 1em; float:right;"/> Hi Codeforces! For you, perhaps it was yet another Codeforces round. But not for me. [contest:1066] is the first round tested on new judging servers at ITMO University. And this is not just an update of location. Ta-dam! Now your solutions will be judged on the new Intel i3-8100 processors. And this is not all news. The number of judging servers has increased, which means fewer queues during rounds! I am pleased to announce that now I live in St. Petersburg, I work at ITMO, and Codeforces is gradually moving from the walls of dear to me Saratov University to ITMO University. The decision to move was not easy for me. My plan is that, based on ITMO, I can focus more on Codeforces development and work on the platform. The number of world champions per square meter is simply overwhelming, and working with a large team of such enthusiasts (and professionals!) of sports pro...

Full text and comments »

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

11.
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

12.
By yosupo, history, 7 years ago, In English
New online judge: Library-Checker! Hello, codeforces! Today, I introduce yet another online judge, [Library-Checker](https://judge.yosupo.jp/)! As the name suggests, the object of this site is checking your libraries. The problems are "[Implement RMQ](https://judge.yosupo.jp/problem/staticrmq)", "[Enumerate Primes](https://judge.yosupo.jp/problem/enumerate_primes)", "[Exp of Formal Power Series](https://judge.yosupo.jp/problem/exp_of_formal_power_series)", "[Decompose a graph into three-connected components](https://judge.yosupo.jp/problem/three_edge_connected_components)"... and so on. All problems are managed by me. In other words, I'm the admin of this site. Anything of problems (testcases, solutions, generator, ...) are managed in [github](https://github.com/yosupo06/library-checker-problems). It means, - Anyone can add problems add testcases. Already most of the problems are prepared by other competitive programmers. - Testcases are stronger and stronger with time (ideally). Let's enjoy your l...
New online judge: Library-Checker!, test my library in CI..."? This judge will achieve your hope! Please refer [verification-helper](https, Hello, codeforces! Today, I introduce yet another online judge, [Library-Checker](https, Today, I introduce yet another online judge, [Library-Checker](https://judge.yosupo.jp/)!

Full text and comments »

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

13.
By MikeMirzayanov, 7 years ago, translation, In English
Codeforces: Results of 2019 <a style="float:right; display: inline-block; margin:0 1em 1em 2em; max-width: 60%;" href="https://codeforces.me/10years"/> <img style="max-width:100%" src="https://assets.codeforces.com/images/codeforces-10-years-300.png"/> </a> Hi Codeforces! The platform recently turned 10 years old. We accept your congratulations at <a href="https://codeforces.me/10years">https://codeforces.me/10years</a>. Please review the progress in 2019 and support the anniversary crowdfunding campaign. Your donation will be a contribution to the future of Codeforces, will help its development and work. We need resources to continue to host rounds, not to stop developing, to innovate and to maintain the existing infrastructure. In 2019, together with numerous writers the coordinators worked on problems: [user:KAN,2020-02-06], [user:300iq,2020-02-06], [user:cdkrot,2020-02-06], [user:arsijo,2020-02-06] and recently joined [user:isaf27,2020-02-06]. And this year, rounds coordinated by other exper...

Full text and comments »

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

14.
By dXqwq, 2 years ago, In English
Mike, alts and unfriendly comments I know that the following content might not be welcomed and I will lose lots of contribution, but I should write something about such a bunch of chaotic comments under there. I may delete this tomorrow if I find my words useless. ### What happened Several months ago, Mike posted a blog about banning [user:orzdevinwang,2024-10-07]'s alt, [user:zh0ukangyang,2024-10-07], and more alts. Lots of participants, including myself, were angry because [user:zh0ukangyang,2024-10-07] is such a talented coder and codeforces didn't treat the rule of single account seriously at that time. Then more and more alt accounts with high rating are reported, including mine. After that I didn't use alts anymore, and most of high-rated Chinese participants(100% in my friends) discarded their alts and followed the rules. We might think that the rules are not that perfect, but rules are rules. I believe that no one will say "Banning [user:zh0ukangyang,2024-10-07] is unacceptable". But I know what y...
ago, when I started doing CP. With so many ups and downs, codeforces is still a great onlinejudge, still a great online judge that I will suggest to every new comer. I hope everyone maintains a nice

Full text and comments »

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

15.
By dario2994, 6 years ago, In English
About Problemsetting (for AtCoder and Codeforces) Since the amount of information available about the preparation of a competitive programming contest for AtCoder/Codeforces is very little, I decided to collect here what was my experience. I will try to both describe my experiences and give some general advice to wannabe problemsetters. I hope that this will be useful to future problemsetters who are "out of the loop". Moreover, participants might be curious to know what happens behind the scenes (and maybe the platforms may consider this as a form of constructive feedback). *Acronyms*: - AGC = Atcoder Grand Contest - GR = Codeforces Global Round ### Why I know something about problemsetting? I am in the competitive programming world since ~8 years: I have participated in IOI/ICPC/GCJ and a number of contests on AtCoder/Codeforces (and lately Codechef). I am not a top participant but, being in this world for so long, I know, more or less, all the standard tricks. Recently, I was the author of the *flagship conte...

Full text and comments »

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

16.
By Geothermal, history, 7 years ago, In English
Remove Virtual Contestants from Contest Leaderboards As most of you are likely aware, cheating in virtual contests (typically by submitting prewritten or copied solutions in order to appear at the top of the leaderboard) is very common. Most recently, [user:wannabecandidatemaster,2020-05-28] submitted solutions to all problems in [this round](https://codeforces.me/contest/1358/standings) in order to take first place in the standings, and [user:bemandrei,2020-05-28] competed virtually in [this round](https://codeforces.me/contest/1360/standings) after competing in the round officially, and ended up in second place on the leaderboard. In response to the rise of VC cheating (as well as some other issues with the VC system I'll describe below), I'd like to make a simple proposal: **Remove all virtual participants from the contest leaderboards.** The one exception is that you should see your own name on leaderboards for contests you VCed (that is, virtual contestants should be visible only to themselves). Similarly, virtual participan...

Full text and comments »

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

17.
By ToxicPie9, 3 years ago, In English
You won't believe how this simple trick defeated the unexplained bug destroying every top LGM ### TL;DR Currently people are discussing a slowdown bug on Codeforces that seems to happen randomly, and can cause code to run 100x slower and get TLE. More details in [user:pajenegod,2024-03-03]'s [blog post](https://codeforces.me/blog/entry/126654). In this article, I present a mitigation: add the following to your code. ~~~~ #include <windows.h> void *operator new(size_t size) { if (void *ptr = HeapAlloc(GetProcessHeap(), 0, size ? size : 1)) return ptr; throw std::bad_alloc{}; } void operator delete(void *ptr) { HeapFree(GetProcessHeap(), 0, ptr); } ~~~~ <spoiler summary="If you use malloc/free in C++ (you shouldn't), also change them."> ~~~~ void *my_malloc(size_t size) { if (void *ptr = HeapAlloc(GetProcessHeap(), 0, size ? size : 1)) return ptr; throw std::bad_alloc{}; } void my_free(void *ptr) { HeapFree(GetProcessHeap(), 0, ptr); } ~~~~ </spoiler> <spoiler summary="If you use aligned new/delete in C++, also change the...
an option for judgment on Linux machines**, possibly using one of the plenty judge server, by users before): run GNU/Linux, like literally every other online judge of considerable scale.

Full text and comments »

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

18.
By adamant, history, 19 months ago, In English
Complex FFT is not as bad as you think ... Probably. Hi everyone! As some of you _might_ already know, I don't like NTT. Primary reasons for this are: - I don't like modular arithmetic optimizations (Montgomery, etc). - I don't like NTT mods, and prefer good, old $10^9+7$. - I do like algebra of complex numbers. But, to my regret, the overwhelming mainstream in modern competitive programming is NTT. Primary reasons are: - It's allegedly faster. - It needs less memory. - It has no precision issues. - People don't like algebra of complex numbers. There is nothing I can do about the last, but today I'll address the first 3. Optimizing complex FFT was on my mind for quite some time, but I didn't really work on it _that much_ until the [blog](https://codeforces.me/blog/entry/142063) by [user:Qwerty1232,2025-04-24] on optimizing NTT has dropped, which motivated me to actually put some serious effort into this. In this blog, we will primarily focus on optimizations that are specific to complex arithmetic...

Full text and comments »

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

19.
By shiven, history, 2 years ago, In English
A summary of what passes for an Indian ICPC Contest, apparently The online round for the India’s ICPC was held on 23rd. And also a week before that. The first time around, the organisers tried debuting a self-hosted DOMjudge instance. That didn’t go too well, so a recontest was scheduled on CodeChef. If you’re not too familiar with the Indian ICPC system — this online prelims is used to select teams that can participate in the offline regionals. From a single university, usually approx. 2 teams (for the top unis) or 1 (for almost all unis that aren’t in top-15) qualify. As you could guess, it’s quite easy for good teams to miss a spot. Looking at the first contest’s rankings, teams from rank 2 to 100+ all had 4 solves. Owing to severe system issues in the first contest, the time penalties weren’t too reliable differentiators, leading to the recontest this Saturday. In hindsight, we forgot to be grateful for the problemset and reliable testcases the first time. I’m sure everyone agrees that the basic requirements (ignoring all other stuff...
stuff like problem quality, balance, …) from an online contest would be: 1. A functioningjudge 2, 1. A functioning judge 2. Correct, validated testcases 3. Testcases sufficient enough to weed out, As a sidenote, I appreciate the commitment from the organisers to hold a re-contest after thejudge

Full text and comments »

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

20.
By ahmed_aly, history, 10 years ago, In English
Please support A2 Online Judge to come back Hello everyone, Several people are asking me when [A2 Online Judge](https://a2oj.com/) is coming back, and unfortunately the issue this time might take longer to fix it. This is the server which was hosting the website in my garage for several years: ![A2 Online Judge server](http://codeforces.me/predownloaded/7d/b7/7db715ae2f932992242ac4b384c29c94ef61c3d9.jpg) And I think it's time to move to the cloud, but this requires some money. I created a campaign to raise $3000 which I need to host it on AWS for the next 3 years at least. You can read more details here: [https://www.gofundme.com/support-a2oj](https://www.gofundme.com/support-a2oj) Please support to bring the website back, even if by just sharing the campaign. Thanks in advance, Ahmed Aly
Please support A2 Online Judge to come back, ![A2 Online Judge server](http://codeforces.me/predownloaded/7d/b7, Hello everyone, Several people are asking me when [A2 Online Judge ](https://a2oj.com/) is coming, Several people are asking me when [A2 Online Judge](https://a2oj.com/) is coming back, and

Full text and comments »

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

21.
By bicsi, history, 6 years ago, In English
I might get stigmatized for this, but here it goes Recently, Moscow Fall Workshops has taken place (it ended about one week ago), and I wanted to address some issues that came into my mind during that period. As you might notice, it took me some time to build the courage and get in the right mindset to write about this. First of all, I want to say that I am a huge supporter of programming camps and, in general, initiatives to enhance the joy of doing competitive programming and I respect the efforts of building communities around CP. I have always had a kind of excitement when thinking about participating in programming camps (Petrozavodsk, Moscow Workshops, etc.) and their “hardcore” style with lots of contests. I therefore appreciate the immense efforts of organizers, problem setters, and testers, when preparing this camp. ### Main point Coming towards the main point of the blog, I felt that the last programming camp was a bit… underwhelming. Moreover, I’m having a hard time trying to justify the costs of doing such a camp,...
, Shanghai 2004, as well as several problems from the japanese AIZU Online Judge ). Amongst the ones

Full text and comments »

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

22.
By EvenImage, history, 3 years ago, In English
2nd Universal Cup Announcement Hello everyone, we are happy to announce that the 2nd Universal Cup has started officially. The Universal Cup is a non-profit organization dedicated to offering training resources for competitive programming teams. Our website is [https://ucup.ac/](https://ucup.ac/) (in English and Chinese). In the previous season, over 750 teams from more than 300 affiliations all over the world, registered and participated in a total of 22 stages, encompassing contests from Asia, Europe, and America. With the permission of contest setters and without involving copyright disputes, the Universal Cup will hold mirror contests for some undisclosed competition sets. It is expected to hold at least 20 contests in this season. We will simulate the actual situation in the competition, executing the board freeze in the last hour. At the same time, we will provide an overall rating board, which will help the team to make a reasonable assessment of itself. Over the past few weeks, the committee has...

Full text and comments »

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

23.
By Sharon, history, 8 years ago, In English
I am removing my contest proposal from Codeforces I am removing my contest proposal from Codeforces. Note: This is a serious blog post. Also, the opinions presented in this blog are my own and not of my friend [user:BiIIy,2018-12-26] who wrote the contest with me. Today I have removed my contest proposal from Codeforces. I should probably have done this a long time ago. The proposal was made in February, but the problems were written and finished by March, and that is when I opened the contest proposal for review and messaged [user:KAN,2018-12-26]. It is currently December and no progress or development has been made regarding my contest proposal since, so I will be removing it. I have multiple reasons for removing my contest proposal: - I have no motivation to host an online contest anymore. - I am involved in problem setting with two other high school programming contests in my university, and I write, host, and judge another contest for local high schools. - I have forgotten that I “was in the queue” for writing a...
, and I write, host, and judge another contest for local high schools.

Full text and comments »

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

24.
By Qingyu, history, 18 months ago, In English
The 3rd Universal Cup. Stage 38: Guangzhou (CCPC Finals 2024) Hi everyone! We are thrilled to invite you to The 3rd Universal Cup, Stage 38: Guangzhou, taking place on May 24th, 2025. The contest is based on the Finals of the CCPC (China Collegiate Programming Contest), which was held on May 11th, 2025. This is my third time to be a judge on the CCPC Finals, and probably my last experience of my judging experience in high school. This contest is prepared by [user:Gellyfish,2025-05-22], [user:johnvictor,2025-05-22], [user:jqdai0815,2025-05-22], [user:Kevin114514,2025-05-22], [user:Kubic,2025-05-22], [user:lynkcat,2025-05-22], [user:Milmon,2025-05-22], [user:ODT,2025-05-22], [user:orzdevinwang,2025-05-22], [user:Qingyu,2025-05-22], [user:rddccd]. Although the style of problems differs a lot, the difficulty of this problem set is close to the ICPC World Finals or Regional Semifinals (NERC Finals or Asia EC Finals). We believe the problems will be engaging for participants of all levels while still providing a challenge for the strongest te...
Programming Contest), which was held on May 11th, 2025. This is my third time to be ajudge on the CCPC, held on May 11th, 2025. This is my third time to be a judge on the CCPC Finals, and probably my last, spot at the World Finals. In this contest, I return once more as a judge, and am dramatically reunited

Full text and comments »

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

25.
By KAN, 4 years ago, translation, In English
Round #819 Unrated due to Problem Theft Hello Codeforces. Unfortunately a few hours after the end of Round #819 we were pointed out that one of the problems was stolen from another online judge. Codeforces team strongly condemns such an action from the author. By no means is this acceptable behavior. This is the first and the most important rule of problem making: your problem should be new up to your best knowledge. A lot of people put lots of effort into creation of every single round. You can find these people mentioned in the announcements and they indeed deserve these acknowledgments. And yet a single cowardly decision can ruin this huge work and experience of thousands of participants. In this particular case the copied problem was not widely known, and it seems that this made little or no impact on the course of the round. Nevertheless, we stick to the decision that in such case the round cannot be considered successful, and thus no rating changes can be applied. We will also remove the problem from the ro...
was stolen from another online judge.

Full text and comments »

Tags 819
  • Vote: I like it
  • +872
  • Vote: I do not like it

26.
By Petr, 14 years ago, In English
Judges adding tests against submitted solutions during the contest In the discussion at [http://codeforces.me/blog/entry/6870#comment-125383](http://codeforces.me/blog/entry/6870#comment-125383) it became apparent that [user:Jacob,2013-03-11] has submitted a solution for Round 172 Problem E that passed all system tests, and was not challenged, but in the end he didn't get the score for it because a tester has decided to stress-test it against a correct solution and add tests where it fails to the system test. I think this is an awful, awful decision, as it goes against the spirit of progamming competitions: automatic judging and complete objectivity it gives. There are so many ways this can discriminate against [user:Jacob,2013-03-11]: - Had I submitted a solution for problem E, the tester might not suspect it would be a wrong greedy (because I'm in top 10 by rating) and would not add tests, and I'd get the points. - Maybe some people who opted for solving problem D instead also submitted wrong solutions, but since there were more than one...

Full text and comments »

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

27.
By dreamoon_love_AA, 12 years ago, In English
If you ask me how to improve your algorithm competition skill, I will give you the link of this blog. In recent one year, I don't know why but there are many people sending messages to me for asking similar problems. So I decide to create this blog. In the beginning, I must say, you may feel disappointed after reading this blog. Because I don't have any special tips. My study method has wasted me many many time. There are some basic points I think you have known. 1. **Practice, practice, and practice.** I take so many time to think and solve problems. I think I do it 5 hours a day on average. 2. **Make friends with many awesome people.** I know many awesome people. For example, [user:arosusti,2015-02-24], [user:kelvin,2015-02-24], peter50216([user:0O0o00OO0Oo0o0Oo,2015-02-24]), [user:seanwu,2015-02-24], [user:Shik,2015-02-24], [user:takaramono,2015-02-24], [user:tmt514,2015-02-24], ... If I have some problems that I can't solve in few weeks, I can almost get solution from my friends. Then I say what I do for training myself. When I do problems. There are two possi...
change the strategy. And when I feel I can't solve problems anymore from a judge. I will find a new judge, choose some problems from a judge to form a problemset and set time limit for training myself. But now, problems anymore from a judge. I will find a new judge and continue to do the same thing., % problems from a judge. Will you think the order of solving be important? I really don't know how to, 1. [Codeforces](http://codeforces.me/). I think Codeforces is the best judge recently. It's easy, 3. [sgu](http://acm.sgu.ru/) I think sgu is the hardest judge. It contain many problems with, 4. [Timus](http://acm.timus.ru/) There are many hard contest in the judge. I think it's good for

Full text and comments »

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

28.
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 ...
~~~~~ python3 interactive_runner.py ./judge -- ./solution ~~~~~

Full text and comments »

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

29.
By maomao90, 2 years ago, In English
Meta Hacker Cup... Why must you be so special?? _Disclaimer: This is a rant about Meta Hacker Cup and may not contain any useful information._ Meta Hacker Cup is one of the biggest annual programming competitions, but it has the strangest submission format, unlike any other online judge. Why does it have to be so different? Let’s take a look at how Meta Hacker Cup 2024 Round 1 went for [user:maomao90,2024-10-06] > The time now is 1:00 AM in Singapore. The contest starts, and maomao90 begins solving the problems. > The time now is 1:41 AM. maomao90 has solved problems A, B, and C without much trouble and starts working on problem D. After quickly coming up with a theoretical solution, maomao90 begins coding. > The time now is 2:05 AM. The code is ready and passes the sample tests. maomao90 proceeds to validate the solution. > The time now is 2:06 AM. Validation passes, and the input zip file is downloaded. > The time now is 2:07 AM. maomao90 runs the code on the final test. ![Image showing assertion failed](https...
submission format, unlike any other online judge. Why does it have to be so different? Let’s take a, Almost every other online judge allows multiple submissions when your solution is incorrect. Why

Full text and comments »

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

30.
By MikeMirzayanov, 6 years ago, In English
Codeforces: Results of 2020 [list some changes and improvements] Hello, Codeforces! I understand that 2021 has been going on for a long time, but here I have picked up a subset of some of the improvements that the Codeforces team made in 2020. Soon I will publish numbers (no, charts) with statistics for 2020. In the meantime, I bring to your attention a list of changes and improvements. By the way, this is a decent list. This is about half to a quarter of all changes. It's just that other changes are more often somewhere in the internals of the system and are not visible to users. Please read this list. Each item is the effort of someone from the team. Thanks to [user:geranazavr555,2021-03-14], [user:kuviman,2021-03-14] and [user:cannor147,2021-03-14] for their efforts. You've made our platform better! Well, by the way, I don't quit programming and many improvements were made by me. The items on the list are written in a concise and informal form, many of the items I just copied from commit messages from git. If you want more details &mdash...

Full text and comments »

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

31.
By dario2994, 5 years ago, In English
SWERC 2021-2022 <img src="/predownloaded/4a/fc/4afcde700751b1ef849737c2edd64e52901e8df3.png" style="width:250px; float:right; margin: 0 1em 1em 1em"/> The Southwestern Europe Regional Contest will take place on the 23rd of April. It is the ICPC regional contest (i.e., the winning teams will advance to the ICPC World Finals) for teams from France, Israel, Italy, Portugal, Spain, and Switzerland. The mirror contest [contest:1662] will be held on Codeforces at [contest_time:1662] and will last 5 hours. The mirror contest will contain all the problems from the official competition plus some additional problems. I am the chief judge for the competition and I want to thank: - The amazing set of judges who proposed and prepared the problems: [user:cescmentation_folch,2022-04-04], [user:cip999,2022-04-04], [user:Delfad0r,2022-04-04], [user:gangsterveggies,2022-04-04], [user:giove,2022-04-04], [user:gog.gerard,2022-04-04], [user:majk,2022-04-04], [user:Petr,2022-04-04], [user:Simon,2022-04-04...
I am the chief judge for the competition and I want to thank:

Full text and comments »

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

32.
By Aris, 5 years ago, In English
Codeforces Round #764 (Div. 3) Hello! [contest:1624] will start at [contest_time:1624]. You will be offered 7-8 problems with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have a rating of 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of **open hacks**. You will be given **7-8 problems** and **2 hours and 15 minutes** to solve them. One of the problems in this round is **interactive**. Don't forget to read the [guide on interactive problems](https://codeforces.me/blog/entry/45307). Note that the **penalty** for the wrong submission in this round is **10 minutes**. [Remember](https://codeforces.me/blog/entry/59228) that only the trusted participants of the third division will be included in the official s...

Full text and comments »

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

33.
By dario2994, 3 years ago, In English
European Championship 2024 (EUC) <img src="/predownloaded/63/de/63dec3490d33610bedca123ae665430ca7387d6a.png" style="width:250px; float:right; margin: 0 1em 1em 1em"/> The [European Championship 2024](https://euc.icpc.global/) will take place on the 24th of March in Prague. The top teams from the European ICPC regionals CERC, NWERC, SEERC, SWERC will compete for the title of European champions. It is the first edition of this ICPC super-regional. The mirror contest [contest:1949] will be held on Codeforces at [contest_time:1949] and will last 5 hours. The mirror contest will contain the same problems as the official competition. I am the chief judge for the competition and I want to thank: - The amazing set of judges who proposed and prepared the problems: [user:antontrygubO_o,2024-03-19], [user:bicsi,2024-03-19], [user:giove,2024-03-19], Martin Kacer, [user:MZuenni,2024-03-19], [user:Petr,2024-03-19]. - Our beloved tester [user:ksun48,2024-03-19] who showed us that our perception of the difficultie...
I am the chief judge for the competition and I want to thank:

Full text and comments »

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

34.
By Monogon, history, 5 years ago, In English
[Tutorial] Blossom Algorithm for General Matching in O(n^3) I have decided to write a tutorial on a topic not even [user:Um_nik,2021-06-29] knows! ([source](https://codeforces.me/blog/entry/92248)) In this tutorial, I will talk about the blossom algorithm, which solves the problem of **general matching**. In this problem, you are given an undirected graph and you need to select a subset of edges (called matched edges) so that no two edges share a vertex, and the number of matched edges is maximized. More common in competitive programming is bipartite matching, which is the same problem but when the graph is guaranteed to be bipartite. In competitive programming, general matching seems to get a lot of hate for being very challenging to implement. However, the blossom algorithm is quite beautiful, and important in the history of algorithm research. It will help if you are already familiar with bipartite matching. I will discuss the high level ideas of the algorithm, but my main focus will be on the tricky implementation details. So you may...
://judge.yosupo.jp/submission/51907)) - [Universal Online Judge (UOJ)](https://uoj.ac/problem/79)

Full text and comments »

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

35.
By yeputons, 10 years ago, In English
Online judge with IOI problem went public Hello everyone. Two years ago there was a post titled "Submitting IOI problems" and [my comment](/blog/entry/10967#comment-161620) there. I offered everyone to contact me via PM on Codeforces to get the access and be able to solve problems from past IOIs (starting with IOI 2003). What was important here is that [user:PavelKunyavskiy,2016-06-12] and me took effort and made the system as similar to what was used on particular IOI as we could, including: 1. Original tests from archives 2. Tests grouping and correct subtasks scoring where applicable &mdash; you won't get 54 points if there are subtasks for 40 and 60 points &mdash; just like on IOI. 3. Interactive problems with interactive I/O (say, "Aliens" from IOI 2007 or "Maintain" from IOI 2003) 4. Partial scoring where you can get only a fraction of points per test, like "Reverse" from IOI 2003 or "Hotter Colder" from IOI 2010. 5. "Encode-decode" problems, where your solution is executed several times in separate processes, ...
Online judge with IOI problem went public, . So far it was a closed judge available upon request only. As far as I remember, I've granted, So far it was a closed judge available upon request only. As far as I remember, I've granted access

Full text and comments »

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

36.
By ko_osaga, history, 4 years ago, In English
[Tutorial] On Range LIS Queries, Part 1 Hello, Codeforces! At some point of life you want to make a new data structure problem with short statement and genius solution. LIS (Longest Increasing Subsequence) is a classic problem with beautiful solution, so you come up with the following problem: * Given a sequence $A$ of length $N$ and Q queries $1 \le i \le j \le N$, compute the length of Longest Increasing Subsequence of $A[i], A[i + 1], \ldots, A[j]$. But on the other hand this looks impossible to solve, and you just give up the idea. I always thought that the above problem is unsolved (and might be impossible), but very recently I learned that such queries are **solvable** in only $O(N \log^2 N + Q \log N)$ time, not involving any sqrts! The [original paper](https://arxiv.org/abs/0707.3619) describes this technique as *semi-local string comparison*. The paper is incredibly long and uses tons of scary math terminology, but I think I found a relatively easier way to describe this technique, which I will show in t...
* [Yosupo Judge: Prefix-Substring LCS](https://judge.yosupo.jp/problem/prefix_substring_lcs

Full text and comments »

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

37.
By MikeMirzayanov, 8 years ago, translation, In English
Codeforces Round #547 (Div. 3) Hello, Codeforces! I am pleased to invite you to [contest:1141], which will start on [contest_time:1141]. Everyone whose current rating is strictly less than 1600 is invited to participate officially. All others can take part out of the competition. It so happened that the schedule of this month is not replete with rounds (coordinators, we hope for you!). Therefore I decided to partially correct the situation. All the problems of this round were invented and prepared by me on the last day of [Hello Muscat Programming Bootcamp 2019] (/blog/entry/63298) and on flights from Muscat to St. Petersburg. I even specially noted the time for preparation: for the current moment (the problems are ready for testing) I spent about 6 hours on their preparation, including inventing some of the problems. I really like working on problems, this is something at the intersection of creativity and programming. I really hope you enjoy the result of my work. <center> <br/> <img src = "/predownload...

Full text and comments »

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

38.
By dario2994, history, 4 years ago, In English
SWERC 2022-2023 <img src="/predownloaded/70/37/703737cf76db63e4b7bbb9fd63a01a3dc446371e.png" style="width:250px; float:right; margin: 0 1em 1em 1em"/> The Southwestern Europe Regional Contest will take place on the 19th of February in Milan. It is the ICPC regional contest (i.e., the winning teams will advance to the ICPC World Finals) for teams from France, Israel, Italy, Portugal, Spain, and Switzerland. The mirror contest [contest:1776] will be held on Codeforces at [contest_time:1776] and will last 5 hours. The mirror contest will contain the problems from the official competition plus some additional problems. I am the chief judge for the competition and I want to thank: - The amazing set of judges who proposed and prepared the problems: [user:cescmentation_folch,2023-01-24], [user:cip999,2023-01-24] (vice chief judge), [user:gangsterveggies,2023-01-24], [user:giove,2023-01-24], [user:gog.gerard,2023-01-24], [user:jinlifu1999,2023-01-24], [user:Petr,2023-01-24], [user:Simon,2023...
-01-24], [user:cip999,2023-01-24] (vice chief judge), [user:gangsterveggies,2023-01-24], [user:giove, I am the chief judge for the competition and I want to thank:

Full text and comments »

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

39.
By MikeMirzayanov, 6 years ago, In English
Codeforces: Results of 2020 [Annual Report] Hi Codeforces! Yes, I know it's already April. Time flies so fast lately! Exactly a year ago we were just learning all the "delights" of lockdown. So let's remember this 2020! What was it like? I don't know about you, but we had a hell of a lot of work. I will now show you some graphs and you will be very surprised. Lockdown effect? Of course, but we did our best too. Many thanks to everyone who did not stand aside! In 2020, we celebrated our 10th anniversary and crowdfunding money helps us grow and move forward. You helped us and each other. Thank you. <a href="https://codeforces.me/10years/supporters">Thank you for your contribution!</a> We've been working hard all year to make this community a better place. Did it work out? It's up to you to judge. Many thanks to everyone who invested time and effort: * [user:geranazavr555,2021-04-09], [user:kuviman,2021-04-09], [user:cannor147,2021-04-09] helped a lot with development and new features; * [user:Una_Shem,2021-...
you to judge. Many thanks to everyone who invested time and effort:

Full text and comments »

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

40.
By Radewoosh, history, 5 years ago, In English
My own algorithm — offline incremental strongly connected components in O(m*log(m)) Hello Codeforces! As all of you know, there are so many known algorithms named after people who invented them &mdash; from the easiest ones, like Dijkstra, to the harder ones, like Berlekamp–Massey algorithm. These algorithms were innovative when they were invented, so of course, it's good that they are named after their inventors. But, today, I've seen a blog about the solution to the problem "compute LCS of two strings in time $O((n + k) \cdot \log(k))$, where $n$ is the sum of lengths of the strings, and $k$ is the number of pairs of matching positions in them". To be honest, it a bit pissed me off that even this algorithm is named after its creators. Is it ok to name the solution to every possible problem after its author? I won't judge it. Anyway, I want my very own Radecki algorithm, so let me give it a try. If anyone has ever heard about it &mdash; it's cool. Let me know, and it'll be just another helpful blog on Codeforces. Let's imagine the following problem: there is...
author? I won't judge it. Anyway, I want my very own Radecki algorithm, so let me give it a try. If

Full text and comments »

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

41.
By galen_colin, 3 years ago, In English
WF23 Luxor _(Long blog ahead. Reader discretion advised.)_ I feel we have a rather interesting WF story (note: we did the 47th finals, as the University of Maryland, <b><i>as 2 people</i></b>... explained below), so I figured I'd tell it. Exposition ---------- It actually starts way before WF, too. Our teams were decided on (some form of) merit based on an internal qualifier. My team for the regional and NAC (North America superregional) ended up as {me, [user:Navick,2024-04-24], [user:mr.banana,2024-04-24]}. We did [fairly](https://nasouth22d1.kattis.com/contests/nasouth22d1/standings) [well](https://nac.icpc.global/wp-content/uploads/2023/06/NAC23-scoreboard.pdf) in those. However, for WF, my two teammates only had single-entry visas for the US, meaning that if they left, they couldn't come back into our country. So they couldn't really go with me... Luckily, in such situations, ICPC lets you just replace your teammates. So we held another internal qualifier, and ended up with two ...
(Note that the judge machines are claimed to be identical to the local machines. So the runtime on

Full text and comments »

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

42.
By Errichto, 8 years ago, In English
Lecture #3 — Exchange arguments (sorting with dp) Hi. I'm back from USA! I will do a new lecture tomorrow (Thursday) at 2pm CEST on my Youtube channel: [https://www.youtube.com/watch?v=7hFWrKa6yRM](https://www.youtube.com/watch?v=7hFWrKa6yRM). Watch me live (and ask questions), or just watch the video later. This will be part 1, and I will do part 2 in a few days (maybe Tuesday). **UPDATE** &mdash; part 2 is coming on Thursday, same time. Link: [https://www.youtube.com/watch?v=gXxu-Cr4b4c](https://www.youtube.com/watch?v=gXxu-Cr4b4c). There are no prerequisites this time. I recommend reading the materials below in advance, and trying to solve problems 1 and 5. If you are strong, just read problems and see if you can't solve something (maybe problem 8?). ### Technique "Exchange Arguments" If we're given $n$ items and we should choose some of them and choose their order, we should sort them with some strange/tricky comparator, and then do $O(N^2)$ dynamic programming. The dp should be $dp[pref][used]$ &mdash; best po...
1. **Boxes ([link to Polish judge ](http://ki.staszic.waw.pl/task.php?name=bombki))** There are $n

Full text and comments »

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

43.
By -is-this-fft-, history, 20 months ago, In English
Serious Heat Issue in IOI 2026 _Written on the first of April. This post is a parody: [original](https://codeforces.me/blog/entry/128667). I do think that altitude sickness can be a real concern, but the numbers in that post are ridiculous._ Hello, CodeForces! Today, I would like to discuss about an issue of IOI 2026 venue. The venue of IOI 2026 is still not officially announced, but judging by the image of [Registan](https://en.wikipedia.org/wiki/Registan) on the [website](https://ioi2026.uz/), there is a good chance at least part IOI 2026 will be held in Samarkand, Uzbekistan. ![ ](https://ioi2026.uz/img/bg.jpg) As you know, Samarkand is one of the hottest cities in the general Samarkand area. For example, the mean daily maximum temperature in August is 33.3 °C, and if you turn on the radiator, it can even get up to a whopping 40 °C. Therefore, **heat exhaustion can be a big concern.** I think that even the following things can happen: - 5% of the contestants will **instantly die** - 15% of the c...

Full text and comments »

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

44.
By Errichto, 7 years ago, In English
Bitwise operations 2 — popcount & bitsets Part 1 ([link](https://codeforces.me/blog/entry/73490)) introduces basic bitwise operations. This is part 2 and it's mainly about (in)famous bitsets and example problems. Also, see links to very useful advanced stuff at the bottom. EDIT: here's [video version](https://www.youtube.com/watch?v=jqJ5s077OKo&list=PLl0KD3g-oDOHpWRyyGBUJ9jmul0lUOD80) of this blog (on my Youtube channel). ### Built-in functions In C++, `__builtin_popcount(x)` returns popcount of a number &mdash; the number of ones in the binary representation of $x$. Use `__builtin_popcountll(x)` for long longs. There are also `__builtin_clz` and `__builtin_ctz` (and their long long versions) for counting the number of leading or trailing zeros in a **positive** number. Read more [here](https://www.geeksforgeeks.org/builtin-functions-gcc-compiler/). Now, try to solve these two simple tasks in $O(1)$, then open the spoiler to check the solution: <spoiler summary="Compute the biggest power of 2 that is a divisor o...

Full text and comments »

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

45.
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...
problems in April Fool contests (which I don’t enjoy), or problems where the judge or problem, The libraries I manage can be found at: https://maspypy.github.io/library/ I use online-judge

Full text and comments »

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

46.
By adamant, 12 months ago, In English
Finding all primes up to half a billion in 83 ms Hi everyone! I was itching to apply SIMD in another problem, and this time my attention picked the following problem: --- **[Library Checker &mdash; Enumerate Primes](https://judge.yosupo.jp/problem/enumerate_primes)**. You are given $N$, $A$ and $B$. Find $\pi(N)$, and print all $p_{kA + B} \leq N$. It is guaranteed that $N \leq 5 \cdot 10^8$ and that the total number of primes to print is at most $10^6$. --- After some tweaking, I managed ([#336744](https://judge.yosupo.jp/submission/336744)) to reduce my time consumption in this problem to **83 ms** and memory consumption to **25 MiB**, which makes it a top-1 submission on the Library Checker. For comparison, the top-2 solution ([#148169](https://judge.yosupo.jp/submission/148169)) takes 172 ms and 15 MiB, meaning that what I describe here is a 2x improvement in terms of the running time. We can also compare it to what appears to be the state of the art of sieving, the [primesieve](https://github.com/kimwalisch/...
-vectorize`. It is also recommended to set `avx2` target, unless the online judge uses `-march=native

Full text and comments »

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

47.
By SlavicG, history, 4 years ago, In English
The Toxic Mindset in Competitive Programming and How to Fight It #### Introduction Rating is a great measure of skill and a nice way to observe progress by comparing yourself to your past self and seeing where you stand in the community. As great measure as it is, there are a lot of problems that come with it. They have nothing to do with how the rating system works but rather with how human beings function. In this blog post, I will talk about some of the most pressing personal problems that come up with rating and try to provide some advice on how to solve them, speaking from personal experience and from the experience of a lot of other people I know. #### Associating self-worth to rating This is, in my opinion, the most significant problem people face, and it also pretty much contains all the following problems as a subset. It's extremely easy to fall into this rabbit hole since, as a competitive programmer, it only feels natural to associate our rating with intelligence and, respectively, our intelligence with self-worth. Why is this su...
more than your rank. Don't judge yourself solely based on your rating.

Full text and comments »

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

48.
By purplesyringa, history, 6 years ago, In English
crazySegmentTree: Segment Tree implementation with 5x faster queries than bottom-up tree Hello, Codeforces! A few days ago [user:MohammadParsaElahimanesh,2021-04-06] posted a blog titled [Can we find each Required node in segment tree in O(1)?](https://codeforces.me/blog/entry/89377) Apparently what they meant was to find each node in $\mathcal{O}(ans)$, according to [ecnerwala's explanation](https://codeforces.me/blog/entry/89377?#comment-777885). But I was too dumb to realize that and accidentally invented a parallel node resolution method instead, which speeds up segment tree a lot. A benchmark for you first, with 30 million RMQ on a 32-bit integer array of 17 million elements. It was run in custom test on Codeforces on Apr 6, 2021. - **Classic implementation from cp-algorithms:** 7.765 seconds, or 260 ns per query - **Optimized classic implementation:** (which I was taught) 4.452 seconds, or 150 ns per query (75% faster than classic) - **Bottom-up implementation:** 1.914 seconds, or 64 ns per query (133% faster than optimized) - **Novel parallel implement...

Full text and comments »

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

49.
By -Morass-, history, 9 years ago, In English
Problem Topics Good Day to you! I've been asked to make some topic-wise list of problems I've solved. Even though I couldn't involve all problems, I've tried to involve at least "few" problems at each topic I thought up (I'm sorry if I forgot about something "easy"). I've alredy made such list once anyway I've tried to include more problems now &mdash; so here it is: <spoiler summary="aho"> http://www.spoj.com/problems/ADAJOBS/ URI 2226 (5) //[NICE][NUMBERS][DP] http://www.spoj.com/problems/SUB_PROB/en/ http://codeforces.me/contest/696/problem/D 8 http://www.spoj.com/problems/AHOCUR/ 5 //Aho-Corassic + DP https://www.codechef.com/problems/LYRC (5) //Sample aho-brute-force http://codeforces.me/problemset/problem/346/B //Proposed by [user:bradyawn,2019-08-03] </spoiler> <spoiler summary="automat"> 6861 [LA] //CYK UVA 10679 //Suffix Automat http://www.spoj.com/problems/STRMATCH/ //Suffix Automat &mdash; trie might do too http://www.spoj.com/problems/NSUBST...
https://www.urionlinejudge.com.br/judge/en/problems/view/1030, https://www.urionlinejudge.com.br/judge/en/problems/view/1164, https://www.urionlinejudge.com.br/judge/en/problems/view/1348 (4) //[CLASSICAL][NICE][SCC], https://www.urionlinejudge.com.br/judge/en/problems/view/1503 (7) //[NICE][BS][OPTI], https://www.urionlinejudge.com.br/judge/en/problems/view/1530 //7 [VERY NICE][RMQ][SET][OFFLINE], https://www.urionlinejudge.com.br/judge/en/problems/view/1562 (5) //[VERY NICE][QUEUE][GREEDY], https://www.urionlinejudge.com.br/judge/en/problems/view/1592 (4) //[GRAPH], https://www.urionlinejudge.com.br/judge/en/problems/view/1610 (3) //[CYCLE], https://www.urionlinejudge.com.br/judge/en/problems/view/1617 (4) //[BASIC], https://www.urionlinejudge.com.br/judge/en/problems/view/1621 (4) //[TREE][IMPLE], https://www.urionlinejudge.com.br/judge/en/problems/view/1655 (4) //[EASY][PROBABILITY], https://www.urionlinejudge.com.br/judge/en/problems/view/1683 (4) //RAW histogram, https://www.urionlinejudge.com.br/judge/en/problems/view/2000 (5) //Basic disubstr counting, https://www.urionlinejudge.com.br/judge/en/problems/view/2290 (3) //Sort+check [fast], https://www.urionlinejudge.com.br/judge/en/problems/view/2652 (4) //Tree isomorphism, https://www.urionlinejudge.com.br/judge/en/problems/view/2676 (3) //simple FW, https://www.urionlinejudge.com.br/judge/en/problems/view/2683 (3) //[BASIC][MAXIMUM], https://www.urionlinejudge.com.br/judge/en/problems/view/2732 (3) //Easy flood, https://www.urionlinejudge.com.br/judge/en/problems/view/2810 (5) //[NICE][DOUBLE], https://www.urionlinejudge.com.br/judge/en/problems/view/2824 (4) //Classical, https://www.urionlinejudge.com.br/judge/en/problems/view/2866 (1) //Reverse, https://www.urionlinejudge.com.br/judge/en/problems/view/2876 (6) //[VERY NICE][GCD][IE], https://www.urionlinejudge.com.br/judge/en/problems/view/2910 (4) //[TREE], https://www.urionlinejudge.com.br/judge/en/problems/view/2911 (4) //[NICE][RULES][SIMPLE]

Full text and comments »

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

50.
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...
allowing all possible human resources was an ideal model, and we should judge our skills based on that, ban AI in online contests. Then, a CF rating will "really" be a number, similar to the onlinejudge

Full text and comments »

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

51.
By AmShZ, 2 months ago, In English
Contests for Math: Repovive Math Contest Grand Opening Hello everyone! Have you ever wished that math and combinatorics problems had the same live contest experience as competitive programming? We have, so we are building exactly that on Repovive! After beta testing our new Math section, we are ready to host the **Repovive Math Contest Grand Opening**. You can already try our beta math problems here: https://repovive.com/problems/math The theme of our first contest will be **Combinatorics**. The round will contain **5 combinatorics problems** to be solved in **2 hours and 30 minutes**. The problem set is intended to be suitable for a wide range of levels, so everyone is welcome to participate. The contest is **rated for everyone**. Since this is the first large live test of this format, we would especially love to have you participate, try the judging system, and share your feedback afterward. * Start Time: [Tuesday, 29 September 2026, 14:35 (UTC)](https://www.timeanddate.com/worldclock/fixedtime.html?iso=20260929T1...
works Instead of a traditional code judge, your written mathematical solutions will be evaluated by, Instead of a traditional code judge, your written mathematical solutions will be evaluated by **5

Full text and comments »

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

52.
By Aksenov239, 6 years ago, translation, In English
EDU: DSU Hello Codeforces! My name is Vitaly Aksenov and I present you the new [lesson](https://codeforces.me/edu/course/2/lesson/7) in English EDU section as a part of "ITMO Academy: pilot course". I will talk about Disjoint Sets Union (DSU). A little bit about myself, I cannot brag about being red (International Grandmaster), however, I was twice and each time afterwards there was a revolution of colours on Codeforces. :-) Right now I am the Researcher in [ITMO University](https://en.itmo.ru/) in parallel and distributed computing ([link](http://ctlab.itmo.ru/~vaksenov/)). Also, I am in Jury Committee of several olympiads such as NERC, Bioinformatics Contest, Russian Code Cup and etc. This is my first time to write a lecture so do not judge harshly. I hope you will like it! I want to thank [user:pashka,2020-09-07] for video editing, and thanks to [user:pashka,2020-09-07], [user:MikeMirzayanov,2020-09-07] and [user:niyaznigmatul,2020-09-07] for sharing the problems. ![ ](https...
This is my first time to write a lecture so do not judge harshly. I hope you will like it!

Full text and comments »

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

53.
By adamant, history, 4 years ago, In English
Osijek Competitive Programming Camp 2023 winter Hi everyone! <center><a href="https://ocpc.mathos.unios.hr/index.php"><img src="https://ocpc.mathos.unios.hr/images/ocpc.svg" height="100px"></a></center> I am happy to announce the [Osijek Competitive Programming Camp](https://ocpc.mathos.unios.hr) that is scheduled to happen on **18-26 February 2023** in Osijek, Croatia. The camp is hosted by the [Department of Mathematics at J. J. Strossmayer University of Osijek](https://www.mathos.unios.hr/index.php/en/) and is brought to you by the organizing team of [user:adamant,2022-12-21] (that's me!), [user:-is-this-fft-,2023-01-06], [user:mblazev,2023-01-06], [user:Tomx,2023-01-06] and [user:antontrygubO_o,2023-01-05]. The camp is inspired by various competitive programming camps that we attended during our active years in ICPC, and is aimed to help college students prepare for ICPC regional contests and finals. The camp will consist of 7 ICPC-style contests and 2 days off. Up until now, most top competitive programming training...
main page, [eolymp](https://eolymp.com) for providing us an online judge for the contests and [the

Full text and comments »

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

54.
By jonathanirvings, history, 3 years ago, In English
Live online mirror of The 2024 ICPC Asia Pacific Championship Hi, We would like to invite you to participate in the [live online mirror contest of The 2024 ICPC Asia Pacific Championship](https://codeforces.me/contests/1938) next weekend. ICPC Asia Pacific Championship is a new playoff round introduced to the Asia Pacific region this year. It is the contest for top non-winning teams from all regional contests in the region to qualify to the World Finals. See the [region rules](https://icpc.iisf.or.jp/asia-pacific/top/2023-24-cycle/) and [competition page](https://icpc.asia/) for more details. The official contest is scheduled to start at [Saturday, 2 March 2024, 9am (UTC+7)](https://www.timeanddate.com/worldclock/fixedtime.html?msg=The+2024+ICPC+Asia+Pacific+Championship&iso=20240302T09&p1=95&ah=5). The live online mirror contest is scheduled to start [**only 5 minutes later**](https://www.timeanddate.com/worldclock/fixedtime.html?msg=The+2024+ICPC+Asia+Pacific+Championship+-+Online+Mirror&iso=20240302T0905&p1=95&ah=5), to keep both conte...

Full text and comments »

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

55.
By zimpha, 6 years ago, In English
List of All Petrozavodsk Contests Like my last blog [List of All Open Cup Contests](https://codeforces.me/blog/entry/84466). I made this list for all contests from Petrozavodsk Training Camp, containing the standings, upsolving links and statements. The upsolving links of Petrozavodsk Summer 2020 are private, yandex.contest logins are needed. I will update the link if other sources found. And thanks to the efforts of [Baekjoon Online Judge](https://www.acmicpc.net/), most contests from winter 2015 to winter 2020 can be solved without private logins. For some of the rest contests, opentrains logins are needed. And for some of the rest contests, I found several other sources to virtual participant using [Virtual Judge](https://vjudge.net/), [Codeforces gyms](https://codeforces.me/gyms) and [Programmers club of PetrSU](http://acm.petrsu.ru/). For some of the rest contests, I could not find any public sources and maybe someone could help with it (I believe problems in Warsaw U Contests are from old POI or PA). ...
found several other sources to virtual participant using [Virtual Judge ](https://vjudge.net, And thanks to the efforts of [Baekjoon Online Judge](https://www.acmicpc.net/), most contests from

Full text and comments »

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

56.
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...
[AtCoder](https://atcoder.jp/), [Codeforces](https://codeforces.me/) and an [Italian onlinejudge

Full text and comments »

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

57.
By errorgorn, history, 6 years ago, In English
Codeforces Round #723 (Div. 2) Editorial [problem:1526A] ------------------ Setter: [user:antontrygubO_o,2021-05-28] Preparer: [user:errorgorn,2021-05-28] <spoiler summary="Hint 1"> Notice that the array size is even length. Usually in such problems, we would split the array into $2$ equal parts. Can you figure out what those $2$ parts are? </spoiler> <spoiler summary="Hint 2"> We sort the array and split it into the big half and the small half. </spoiler> <spoiler summary="Solution"> The main idea is that we can split the numbers into the two halves, the big half and small half, we can place the bigger half at the odd positions and the smaller half at the even positions. This works because the smallest big number is larger than the biggest small number. Hence, the mean of any two small numbers is smaller than any big number, and the mean of any two big numbers is bigger than any small number. </spoiler> <spoiler summary="Code (C++)"> ```c++ //雪花飄飄北風嘯嘯 //天地一片蒼茫 #include <bits/stdc++.h> #inc...

Full text and comments »

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

58.
By dario2994, 22 months ago, In English
European Championship 2025 (EUC) <img src="/predownloaded/e7/67/e767414385f88f6336aeb5fec7be1e5a29454d35.png" style="width:250px; float:right; margin: 0 1em 1em 1em"/> The [European Championship 2025](https://euc.icpc.global/) will take place on the 2nd of March in Porto. The top teams from the European ICPC regionals CERC, NWERC, SEERC, SWERC will compete for the title of European champions. It is the second edition of this ICPC super-regional. The mirror contest [contest:2068] will be held on Codeforces at [contest_time:2068] and will last 5 hours. The mirror contest will feature the same problems as the official competition, except for one problem, which will be presented in a more challenging version. I am the chief judge for the competition and I want to thank: - The amazing set of judges who proposed and prepared the problems: [user:bicsi,2025-02-07], [user:cip999,2025-02-07], [user:cdkrot,2025-02-07], [user:Egor,2025-02-07], [user:gangsterveggies,2025-02-07], [user:giove,2025-02-07], [user:Jork...
I am the chief judge for the competition and I want to thank:

Full text and comments »

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

59.
By Qingyu, 5 years ago, In English
An archive of old USACO Problems As we know, USACO is a competitive programming contest primarily for secondary school students in the US. It offers a large collection of excellent problems, from the easy to the difficult. Many of the problems are educational and worthwhile as training material. However, the official website only offers problems from as early as 2011, and older problems are hard to find. Some of the Online Judges, such as POJ, contain some of the problems, but they are not properly filed together, and it's difficult to find the corresponding solution and test data. In this post, I will try to list all the USACO materials that I have found so far. Most of the materials come from some old websites, and thanks to the efforts of web.archive.org, we can check out old websites that no longer exist. In addition, many of the problems were used as training materials in the training of Chinese IOI teams about 20 years ago. These materials have been preserved and are available through some Chinese websit...

Full text and comments »

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

60.
By jonathanirvings, history, 5 years ago, In English
ICPC should NOT be done online I have been thinking about this for more than a year. I think it's time to share my thoughts. **Disclaimer: all opinions written in this post are purely personal and not tied with any affiliation/institution I am working with.** The [global pandemic we are encountering](https://en.wikipedia.org/wiki/COVID-19_pandemic) has affected many aspects of our life. While we need to adapt to doing most of our activities online, competing in the [International Collegiate Programming Contest (ICPC)](https://en.wikipedia.org/wiki/International_Collegiate_Programming_Contest) -- or similar high-stakes team programming contest -- should not be one of them. I have no objection to the following online contests: International Olympiad in Informatics (IOI), Google Code Jam (GCJ) final, Facebook Hacker Cup (FBHC) final, and any similar contest final which is participated by the best ~20 competitive programmers in the world. What makes them different from ICPC is the amount of trust we have put in th...
I will not be the chief judge of the Jakarta site this year.

Full text and comments »

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

61.
By lnishan, 11 years ago, In English
An awesome list for competitive programming! This is a project I started from late January 2016. My motive is that: Although there's fantastic information out there, I think they're still spread all over the place. Therefore, in my opinion it would probably be cool if there's an [awesome list](https://github.com/sindresorhus/awesome) for competitive programming! ( *It's now featured on the main list!* ) I'm actively updating the list here: [https://github.com/lnishan/awesome-competitive-programming](https://github.com/lnishan/awesome-competitive-programming) # Awesome Competitive Programming [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome) A curated list of awesome `Competitive Programming`, `Algorithm` and `Data Structure` resources. Created with a view to connecting people to information, this list below contains a complete collection of all the fantastic resources I've collected over the course of my 11...
an online judge system. It holds a staggering amount of problems prepared by its community of, of competitive programming problems. | | ★★★ | [Virtual Judge (vjudge)](http://vjudge.net) | Virtual, ## Sites for Practice > Good online judge systems / contest platforms to practice., | ☆ | Name | Description | | --- | --- | --- | | ★★★ | [A2 Online Judge ](https://a2oj.com

Full text and comments »

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

62.
By TheScrasse, 12 months ago, In English
Codeforces Round 1066 (Div. 1 + Div. 2) <img src="/predownloaded/13/18/131877f87a8429bb2b0f2038d88cfa74db11fafd.png" align="right" style="height: 250px;" alt="text"/> Ciao, Codeforces! We're glad to invite you to take part in [contest:2157], which will start on [contest_time:2157]. You will be given **9 problems** and **3 hours** to solve them in both divisions. The round will share some problems with [The 2025 ICPC Southwestern Europe Regional Contest (SWERC) 2025](http://www.swerc.eu/2025/). **Note the unusual starting time.** Some of the problems might be interactive, so please read the [guide for interactive problems](https://codeforces.me/blog/entry/45307) if you are not familiar with it. The problems were authored and prepared by [user:KLPP,2025-11-19] and me. We would like to thank - [user:Dominater069,2025-11-19] for his &#128173; &#128161; &#127880; coordination; - [user:Alexdat2000,2025-11-19] for Russian translation; - [user:dario2994,2025-11-19] for VIP testing; - [user:Geothermal,2025-11-19],...

Full text and comments »

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

63.
By adamant, history, 3 years ago, In English
Dirichlet convolution. Part 1: Fast prefix sum computations Hi everyone! Suppose that you need to compute some sum of a number-theoretic function that has something to do with divisors: $$\begin{gather} \sum\limits_{k=1}^n \varphi(k) = ? \\ \sum\limits_{k=1}^n \sum\limits_{d|k} d^2 = ?? \\ \sum\limits_{x=1}^n \sum\limits_{y=1}^x \gcd(x, y) = ?!? \end{gather}$$ As it turns out, such and many similar sums can be computed with Dirichlet convolution in $O(n^{2/3})$, and in this article we will learn how. Let $f(n)$ and $g(n)$ be two [arithmetic functions](https://en.wikipedia.org/wiki/Arithmetic_function). Let $F(n)$ and $G(n)$ be their prefix sums, that is $$\begin{matrix} F(n) = \sum\limits_{i=1}^n f(i), & G(n) = \sum\limits_{j=1}^n g(j). \end{matrix}$$ We need to compute a prefix sum of the [Dirichlet convolution](https://en.wikipedia.org/wiki/Dirichlet_convolution) $(f * g)(n)$. In this article, we will consider some general methods, and show how to do so in $O(n^{2/3})$ if we can compute prefix sums of $F(n)$ and $G(n)$ in ...
**Example**: **[Library Judge — Sum of Totient Function](https://judge.yosupo.jp/problem

Full text and comments »

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

64.
By bashkort, history, 2 years ago, translation, In English
Codeforces Month of Blog Posts Pt. II (Win $800+!) **TL;DR:** Post an interesting Codeforces blog until October 15th and win $800+1. **UPD:** We decided to shift the deadline to 15th of November! _This blog is inspired by [user:peltorator,2024-09-10]'s [Codeforces Month of Blog Posts](https://codeforces.me/blog/entry/110840)._ Hi everyone! The last time, this initiative was a gem for me! I've enjoyed every bit of it and the [winner](https://codeforces.me/blog/entry/113041) in particular &mdash; it helped me when I needed it the most. So now I willing to pay back (or forward :D) &mdash; by organizing the Codeforces Month of Blog Posts one more time! #### Intro My view is the same as [peltorator's one](https://codeforces.me/blog/entry/110840) &mdash; I am a huge Codeforces fan, it almost replaces me social media, and the blogs section is one of the best parts of it! Many people may be waiting for the best time to publish their blogs &mdash; now the time has come! #### Rules & Deadlines The rules are simple: *...
novel. If I were to judge, one of the best post of the previous peltorator's months was probably his

Full text and comments »

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

65.
By chenjb, history, 15 months ago, In English
Comments on World Finals Baku's Problemset Distribution **UPD:** I modify the title to a more moderate version. I once again would like to emphasize that I am only questioning the medal distribution should be better and many things can be done to prevent a close cut-off line this year. I am sorry for whoever feel offended. Let’s keep this as a discussion and exchanging of views. Now that the results are released, let's congratulate all teams that made it to the World Finals, and especially those who have won medals and the trophy. **Disclaimer 1:** I respect all efforts from judges, and this blog is purely based on my observations and is not intended to be personal. It is not easy to make a problemset and your work is greatly appreciated. **Disclaimer 2:** I haven't read the problemset, which means I know nothing about the problems so far. Therefore, feel free to consider this as nonsense. **Disclaimer 3:** I don't know anything about the pipeline in the World Finals' problem setting. OK, I only want to emphasize one phenomen...
any judge can see this, feel free to share your thoughts., ** efforts are really appreciated. If any judge can see this, feel free to share your thoughts.

Full text and comments »

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

66.
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...
I think when people judge the interesting-ness of d2As, they try too hard to make it pleasing to

Full text and comments »

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

67.
By cry, 2 years ago, In English
Invitation to Codeforces Round 962 (Div. 3) <center> Hewwo Cowodeforcers! ------------------ </center> [user:sum,2024-07-04] and I are overjoyed to welcome you to participate in [contest:1996] on [contest_time:1996]. This contest is the last stop on our mission to problemset for every division. We hope you've been enjoying our stuff so far! The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of **open hacks**. After open hacks all accepted solutions will be rejudged on successful hacks. You will be given **7 problems** and **2 hours and 15 minutes** to solve them. Note that the **penalty** for each wrong submission in this round is **10 minutes**. [Remember](https://codeforces.me/blog/entry/59228) that only the trusted participants of the third division will be included in the official standings table. As it is written by link, this is a compulsory measure for combating unsp...

Full text and comments »

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

68.
By UNDERTAKER, history, 3 months ago, In English
My AI Slop Online Judge: DOJ Hello, Codeforces! I would like to introduce **Dadas Online Judge**, usually called **DOJ**: a community-run online judge made in Korea. Is it an AI-slop online judge? Maybe. Teehee. But the judge is real, the submissions are real, and the Wrong Answers are painfully real. ## What is DOJ? DOJ is a competitive programming community where you can solve problems, submit code, participate in contests, and watch a number next to your handle change so that you can feel either accomplished or miserable. The site currently includes: - hundreds of public problems - OI-style subtask and partial scoring - public and private contests - Elo-based ratings and tier-colored handles - user profiles, teams, achievements, and rankings - Korean and English interfaces - support for various judging formats and programming languages - an impressive collection of buttons and database rows You can visit the English version here: [DOJ](https://doj.kr/en) Creating an account ...
My AI Slop Online Judge: DOJ, Hello, Codeforces! I would like to introduce **Dadas Online Judge**, usually called **DOJ**: a, I would like to introduce **Dadas Online Judge**, usually called **DOJ**: a community-run online, Is it an AI-slop online judge? Maybe. Teehee. But the judge is real, the submissions are real

Full text and comments »

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

69.
By SecondThread, history, 13 months ago, In English
Hacker Cup Round 1 Recap Hacker Cup Round 1 Recap ================== **TLDR:** Hacker Cup Round 1 is a wrap! We’ll be holding Round 2 on **November 15th** (instead of November 1st) to allocate sufficient time for stress testing. Thanks to everyone who participated, and the judges hope you enjoyed the problems! First off, congratulations to [user:Geothermal,2025-10-29] for winning, and our top 3: 1. [user:Geothermal,2025-10-29], solving the set in 35 minutes and 35 seconds 2. [user:ksun48,2025-10-29], who solved C and D first and came back for B2 3. [user:tourist,2025-10-29], for placing third despite solving the set 12 seconds before Geothermal Additionally, I’d like to give a huge thanks to the people who helped make the round possible, including the authors: - A1/A2:[user:SecondThread,2025-10-29], with diagrams from Alex Li - B1/B2: [user:anhkha1004,2025-10-29] - C: [user:Intellegent,2025-10-29], with additional writing from SecondThread and Alex Li - D: [user:Intellegent,2025-10-29],...

Full text and comments »

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

70.
By vovuh, history, 6 years ago, translation, In English
Codeforces Round #656 (Div. 3) &lt;too-old-joke-about-copy-paste&gt; Hello! [contest:1385] will start at [contest_time:1385]. You will be offered 6 or 7 problems (or 8) with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have rating 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ACM-ICPC). Thus, during the round, solutions will be judged on preliminary tests, and after the round it will be a 12-hour phase of open hacks. I tried to make strong tests &mdash; just like you will be upset if many solutions fail after the contest is over. You will be given 6 or 7 (or 8) problems and 2 hours to solve them. Note that **the penalty** for the wrong submission in this round (and the following Div. 3 rounds) is **10 minutes**. [Remember] (/blog/entry/59228) that only the <i>trusted participants of the third division</i> will be included i...

Full text and comments »

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

71.
By csacademy, 11 years ago, In English
New Online Judge Platform — csacademy.com Hello, Codeforces! We are glad to invite all of you to test out our new Online Judge platform at [csacademy.com](http://csacademy.com). We're a Romanian based start-up that focuses on online education. Up until this point we've been working on creating a new environment for competitive programming contests. Our first beta round took place in January and it was an IOI-style contest of medium difficulty. You can have fun solving the problems in our [archive](https://csacademy.com/contest/arhiva/). Pay attention though, it is necessary to have an account in order to solve any problems on our website. You can connect via Facebook or Google+, or you can simply create a new account by providing a valid email address. Once you have an account you can choose a username, but all Codeforces handles are already reserved (so no [user:tourist,2016-03-02] for the locals :D). We have created for you the possibility of connecting your Codeforces user [here](https://csacademy.com/accounts/profile...
New Online Judge Platform — csacademy.com, Hello, Codeforces! We are glad to invite all of you to test out our new Online Judge platform at, We are glad to invite all of you to test out our new Online Judge platform at [csacademy.com](http

Full text and comments »

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

72.
By ToxicPie9, 8 months ago, In English
April Fools Day Contest 2026 Editorial Thanks for participating! ### [2214A &mdash; Odd One Out](https://codeforces.me/contest/2214/problem/A) Idea: [user:flamestorm,2026-04-01] <spoiler summary="Solution"> You just need to output the arrow that only appears once. That arrow is **C2**. </spoiler> <spoiler summary="Code (Python)"> ~~~~~ print("C2") ~~~~~ </spoiler> <spoiler summary="Feedback"> - I liked it! </spoiler> ### [2214B &mdash; Are You Smiling?](https://codeforces.me/contest/2214/problem/B) Idea: [user:prvocislo,2026-04-01] <spoiler summary="Solution"> One unusual thing about the statement is the presence of a emoji. More precisely, a smiling, emoji. Okay, let's try to print a smiling emoji. However, the output should be a string of characters and numbers, so we cannot do it directly. There's one more suspicious thing in the statement &mdash; the $U+?=HAPPY$ equation. If we should print ?, what is the meaning of U? U+ often indicates that an unicod...
If you submit "drive" the judge tells you:

Full text and comments »

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

73.
By soullless, history, 17 months ago, translation, In English
Codeforces Round 1037 (Div. 3) Hello, Codeforces! I am very excited to invite you to our contest [contest:2126], which starts on [contest_time:2126]. You will be given **7 problems** and **2 hours and 15 minutes** to solve them. The problems were authored by me, [user:__rose,2025-07-15], [user:Pishka12,2025-07-15], [user:Chalishkan,2025-07-15] and [user:I_HATE_MD_DM,2025-07-15] to solve and alter them. The round will be hosted by the rules of educational rounds (extended **ICPC**). Thus, all solutions will be judged on preliminary tests during the round, and after the round, there will be a **12-hour phase** of open hacks. After the open hack phase, all accepted solutions will be rejudged on successful hacks. Also, note that there is no score distribution — rank will be determined by number of problems solved, followed by penalty; wrong submissions will incur the usual penalty of 10 minutes, following the rules of educational rounds. [Remember](https://mirror.codeforces.com/blog/entry/59228) that only t...

Full text and comments »

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

74.
By -is-this-fft-, history, 2 years ago, In English
PSA on Meta Hacker Cup (must read if its your first time!) Meta Hacker Cup is upon us again. Along with it comes the unique format where we have to run our code on large test cases ourselves. Unfortunately, past experience shows that not everyone knows how to do this reliably. Usually, after the first round, many people lose points as a result of an unreliable workflow. This time, let's try to prevent that from happening. Sorry for the somewhat self-important title, but I really do wish that everyone understood this and that no one will fail the contest because of this. ### Don't EVER copy-paste huge files A lot of people's workflow to run a solution is the following: - Click some green button in the IDE - A box comes up, copy-paste the input into that box - The output shows up somewhere This may work well for running your solution on small sample test cases. It is **terrible** for running your solution on the huge test cases in Meta Hacker Cup. In last year's Round 1, the full test case for [problem C](https://www.facebook.com...
it, but every submission you submit to Codeforces or any other online judge is compiled with that

Full text and comments »

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

75.
By adamant, 3 years ago, In English
Osijek Competitive Programming Camp, Winter 2024 Hi everyone! <center><a href="https://ocpc.mathos.unios.hr"><img src="https://ocpc.mathos.unios.hr/images/ocpc.svg" height="100px"></a> <a href="https://icpc.foundation/"><img src="https://ocpc.mathos.unios.hr/images/ICPC.svg" height="100px"></a></center> <center> <b>Sponsored by</b><br> <a href="https://www.janestreet.com/join-jane-street/open-roles/?type=students-and-new-grads&location=london"> <img src="/predownloaded/ee/f2/eef26616a3661c658d1545f18ed21fabb14d5871.svg" height="50px" style="margin: 5px 5px 5px 5px;"> </a> <a href="https://pinely.com/"> <img src="/predownloaded/0a/0f/0a0f3f67435d1f6e467bc7203d4a2090ba8f92cc.svg" height="50px" style="margin: 5px 5px 5px 5px;"> </a> </center> After successful camps last year ([winter wrap](https://codeforces.me/blog/entry/113438), [fall wrap](https://codeforces.me/blog/entry/121684)), we are happy to announce that Osijek camp will be returning on **17.-25. February 2024** &mdash; just in time to prepare for the Wor...
page, [eolymp](https://eolymp.com) for providing us an online judge for the contests and the [School of

Full text and comments »

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

76.
By geranazavr555, 5 years ago, translation, In English
Polygon Updates (February 2022) Hello, Codeforces. In this post, I'll share with you a few recent improvements in Polygon made by [user:MikeMirzayanov,2022-03-03], [user:unreal.eugene,2022-03-03], [user:dk318,2022-03-03] and me. Polygon is a service to prepares programming problems and contests. It is usually used to prepare problems for olympiads/programming contests but it is also often used to prepare educational content. It is located at https://polygon.codeforces.com/ and is open to everybody. Here are three recent new features: * IOI-like Graders for Python * Problem Materials * User Groups [cut] <br/> <br/> IOI-like Graders for Python ================== About 3 years ago we announced support of IOI graders for C++ in Polygon (Please read [the old post](https://codeforces.me/blog/entry/66916)). Now we have added support for graders written in Python. However, since there is no concept of linkage in Python, Python graders are different from C++ ones. In the case of Python, the gra...

Full text and comments »

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

77.
By maomao90, 5 years ago, In English
[Tutorial] Intuition on Slope Trick # Introduction As mentioned in my previous blog, I will be writing a tutorial about slope trick. Since there are already many blogs that goes through the concept of slope trick, my blog will focus more on the intuition behind coming up with the slope trick algorithm. Hence, if you do not know slope trick yet, I suggest that you read other slope trick blogs such as https://codeforces.me/blog/entry/47821 and https://codeforces.me/blog/entry/77298 before reading my blog. In the future explanation on the example problems, I will assume that the reader already knows the big idea behind slope trick but do not know how to motivate the solution. Great thanks to [user:errorgorn,2022-06-25] for proofreading and writing the section on convex convolution and merchant otter. # When to use slope trick? Most of the time, slope trick can be used to optimise dp functions in the form of $dp_{i, j} = \min(dp_{i - 1, j - 1}, dp_{i - 1, j} + A_i)$ or dp functions containing costs with abs...
## Frisbee (problem is from local judge so I will not attach the link to the question), ## Merchant Otter (problem is from local judge so I will not attach the link to the question)

Full text and comments »

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

78.
By adamant, history, 4 years ago, In English
A bit more of general ideas Hi everyone! Here's another collection of [little tricks](https://codeforces.me/blog/entry/100910) and [general ideas](https://codeforces.me/blog/entry/48417) that might make your life better (or maybe worse). Most of them are somewhat well-known, but perhaps would still be useful to someone. [cut]<hr> 1<!---->. **Evaluating polynomial modulo small prime $p$**. Given a polynomial $q(x)$, it may be evaluated in all possible $a \in \mathbb Z_p$ in $O(p \log p)$. To do this, compute $q(0)$ separately and use [chirp Z-transform](https://codeforces.me/blog/entry/83532) to compute $q(g^0), q(g^1), \dots, q(g^{p-2})$, where $g$ is a primitive root modulo $p$. _This method can be used to solve [problem:1054H]._ 2<!---->. **Generalized Euler theorem**. Let $a$ be a number, not necessarily co-prime with $m$, and $k > \log_2 m$. Then $$ a^k \equiv a^{\phi(m) + k \mod \phi(m)} \pmod m, $$ where $\phi(m)$ is Euler's totient. This follows from the Chinese remainder theor...
_You can check your implementation on [Library Judge — Sqrt Mod](https://judge.yosupo.jp

Full text and comments »

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

79.
By adamant, 12 months ago, In English
OCPC 2026 Winter Hi everyone! <center><a href="https://ocpc.camp"><img src="https://ocpc.camp/images/ocpc_light.svg" height="80px"></a> <a href="https://icpc.foundation/"><img src="/predownloaded/43/08/43086529a28ccb5c9f2f2eec560ffa85e09c6881.svg" height="80px"></a></center> <center> <b>Supported by</b><br> <a href="https://www.janestreet.com/join-jane-street/open-roles/?type=students-and-new-grads&location=london"> <img src="/predownloaded/ee/f2/eef26616a3661c658d1545f18ed21fabb14d5871.svg" height="40px" style="margin: 10px 10px 10px 10px;"></a> <a href="https://www.hudsonrivertrading.com/"> <img src="https://ocpc.camp/images/HRT.svg" height="40px" style="margin: 10px 10px 10px 10px;"></a> <a href="https://www.silares.com/"> <img src="https://ocpc.camp/images/silares-red.svg" height="40px" style="margin: 10px 10px 10px 10px;"></a> <a href="https://pinely.com/"> <img src="/predownloaded/0a/0f/0a0f3f67435d1f6e467bc7203d4a2090ba8f92cc.svg" height="40px" style="margin: 10px 10px 10px 10px...
) for providing an online judge for the contests; - [Mathos](https://www.mathos.unios.hr/index.php/en

Full text and comments »

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

80.
By ZhangShan, history, 9 months ago, In English
usaco.org wouldn't let me register — so I built my own judge with all 484 USACO problems **TL;DR:** I couldn't register on usaco.org (Gmail verification bug), so I built [OJCloud](https://app.ojcloud.net) — all **484 USACO problems** (2011–2024, Bronze → Platinum) on a modern judge with partial scoring, 16 languages, real-time per-test-case verdicts, progress tracking, and both ICPC/IOI contest modes. Everything uses standard I/O. Register with just a handle + password — no email, no OAuth, no waiting. [cut] Hello, Codeforces! I've been using USACO problems to train for years, but practicing them on usaco.org always felt unnecessarily painful — so I built a judge that just works. Please join our [Discord](https://discord.gg/pg52FspEns) so you can feedback anything about our website (I know it has some troubles and I need your help !) The friction is real: Gmail users [often don't receive verification emails](https://usaco.guide/general/usaco-faq) and the only fix is emailing the contest director personally. Pre-2020 problems silently require file I/O — your ...
usaco.org wouldn't let me register — so I built my own judge with all 484 USACO problems, 21/8, Kotlin, Go, Rust, and more - **Real-time judging** — live verdict per test case as thejudge, the judge with zero explanation (this is the [#1 cause of "it works on my machine"](https, unnecessarily painful — so I built a judge that just works., /problems), submit, and see the judge in action., ://app.ojcloud.net) with a proper judge. Everything uses standard I/O — no file I/O surprises., ://app.ojcloud.net) — all **484 USACO problems** (2011–2024, Bronze → Platinum) on a modernjudge with

Full text and comments »

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

81.
By Vladosiya, history, 3 years ago, translation, In English
Codeforces Round #925 (Div. 3) Hello! [contest:1931] will start at [contest_time:1931]. You will be offered 6-8 problems with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have a rating of 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of **open hacks**. You will be given **7 problems** and **2 hours and 15 minutes** to solve them. Note that the **penalty** for the wrong submission in this round is **10 minutes**. [Remember](https://codeforces.me/blog/entry/59228) that only the trusted participants of the third division will be included in the official standings table. As it is written by link, this is a compulsory measure for combating unsporting behavior. To qualify as a _trusted participant of the third...

Full text and comments »

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

82.
By ko_osaga, history, 8 months ago, In English
The Day the Problem Solving Died [Baekjoon Online Judge will cease its operation in April 28, 16 years after its beginning.](https://www.acmicpc.net/board/view/165799) <spoiler summary="Translation"> Hello, BOJ, which began in March 2010, will be shutting down its service as of April 28, 2026. We sincerely thank all of our users who have been with us over the past 16 years. We made many efforts to continue operating the service, but due to various changes in circumstances, we have unfortunately decided to close it. Personally, it pains me deeply to shut down a site that has been with me through most of my 20s and 30s. Over these 16 years of running it alone, I have also built many fond memories. Some users joined as elementary school students and continued using the site all the way into their careers. It was a small dream of mine to one day see them using this site together with their own children. Sadly, the time has now come to let go of that dream. Rather than disappearing completely, I am con...
[Baekjoon Online Judge will cease its operation in April 28, 16 years after its beginning.](https

Full text and comments »

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

83.
By Monogon, history, 6 years ago, In English
Randomized Algorithms and Online Judges Randomization is known to be a powerful algorithmic technique, and I want to start a discussion about it specifically in the context of competitive programming. What extra considerations should we make about how online judges work when analyzing our randomized algorithms, and approving such problems for an official contest? In particular, I want to discuss algorithms whose running times are uncertain. Let's say that the running time of an algorithm is a random variable $X$. Typically, we might say the algorithm is acceptable if the expected running time is a fraction of the time limit: $E(X)=T/k$. With Markov's inequality, we can say $P(X>T)\le 1/k$. That is, the probability of failing a test case due to timeout is at most $1/k$. TLE Trick ------------------ Online judges usually run your program a few times before giving the Time Limit Exceeded verdict. This fact is known to help randomized algorithms, as mentioned here: https://codeforces.me/blog/entry/78817 Let's apply...

Full text and comments »

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

84.
By adamant, history, 5 years ago, In English
Recovering a linear recurrence with the extended Euclidean algorithm Hi everyone! The task of finding the minimum linear recurrence for the given starting sequence is typically solved with the Berlekamp-Massey algorithm. In this article I would like to highlight another possible approach, with the use of the extended Euclidean algorithm. Great thanks to [user:nor,2022-04-08] for the proofreading and all the useful comments to make the article more accessible and rigorous. ### Tl'dr. The procedure below is essentially a formalization of the extended Euclidean algorithm done on <!--$a$-->$F(x)$ and $x^{m+1}$. If you need to find the minimum linear recurrence for a given sequence $F_0, F_1, \dots, F_m$, do the following: Let $F(x) = F_m + F_{m-1} x + \dots + F_0 x^m$ be the generating function of the reversed $F$. Compute the sequence of remainders $r_{-2}, r_{-1}, r_0, \dots, r_k$ such that $r_{-2} = F(x)$, $r_{-1}=x^{m+1}$ and $$r_{k} = r_{k-2} \mod r_{k-1}.$$ Let $a_k(x)$ be a polynomial such that $r_k = r_{k-2} - a_k r_{k-1}$. ...
**[Online Judge — Rational Approximation](https://onlinejudge.org/index.php?option, You can see this [Library Judge submission](https://judge.yosupo.jp/submission/85025) for further

Full text and comments »

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

85.
By Hoks_, history, 12 months ago, In English
Maybe It’s Time to Stop Unrated Accounts from Submitting Recently, we’ve run into an unpleasant situation: some large companies have been using a huge number of accounts to submit AI-generated solutions purely for model training, which ended up causing serious “in queue” congestion for everyone else. **Maybe it’s time to consider restricting submissions from unrated users.** If those AI-driven accounts were required to participate in at least one contest before being allowed to submit normally, it would drastically cut down the number of accounts they could abuse. On top of that, we could improve AI-detection during contests and apply stricter monitoring to accounts that submit massive amounts of AI-generated code. For regular users, the requirement is trivial — just join a single Codeforces round, and you’re good to go. Compared to the awful experience of having the queues jammed for hours, this small inconvenience might be a reasonable trade-off. That’s the best idea I can think of at the moment. What do you think? How can we ...

Full text and comments »

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

86.
By purplesyringa, history, 4 years ago, In English
Fixing the contest management mess ...or "How legacy systems fight obstacles no sane person would introduce in the first place". Hello, Codeforces! I am sure that those of you who tried to host their own programming competitions or write their own utilities for contest management are aware of the state of affairs regarding contest hosting. There are lots of incompatible formats, no one knows exactly how stuff ought to work, Polygon is full of nondescript and seemingly contradictory options, ej-polygon never seems to work quite correctly, modifications have to be applied to jury archives to make them work on your particular installation, non-trivial problem types require constant maintenance and hacks, *ad infinitum*. Personally, I stumbled upon all these problems when I tried to get my own judge system working and suddenly discovered that the difficult part is not judging complex problems, but handling artificial complexity introduced by legacy software and standards. So here I am, attempting to solve these pro...
algorithm that is then executed by the judge., Personally, I stumbled upon all these problems when I tried to get my own judge system working and

Full text and comments »

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

87.
By errorgorn, 2 years ago, In English
OCPC 2025 Winter Singapore Mirror Camp (22-26 Feb) Hi everyone! <center><img src="https://ocpc.camp/images/ocpc.svg" height="100px"></center> For the [Winter 2025 edition of the Osijek Competitive Programming Camp (OCPC)](https://codeforces.me/blog/entry/138091), we are working with the [National University of Singapore (NUS)](https://www.nus.edu.sg/) to host a mirror of the OCPC in **Singapore**, during **22-26 Feb 2025**. The mirror will consist of 4 training contests, that are a subset of the main 7 contests of OCPC (scheduled for 15 Feb-23 Feb 2025 in Osijek, Croatia and online). The contest days will be on 22, 23, 25 and 26 Feb, and 24 Feb will be a rest day. The mirror takes place right before [ICPC APAC Championship 2025](https://apac.icpc.global/), scheduled for 27 Feb-2 Mar, and is a good training opportunity for its participants. Please note that the mirror is a private initiative of NUS and OCPC, and is not an official part of the ICPC event. If you want to get a feel of the contests, refer to [this comment](h...
physical set-up, but we will be in a different room in NUS. The online judge used will also very

Full text and comments »

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

88.
By EJIC_B_KEDAX, history, 3 years ago, translation, In English
Codeforces Round #881 (Div. 3) Hello, Codeforces! On [contest_time:1843] [contest:1843] will start. You will be offered 7 problems with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have a rating of 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of **open hacks**. You will be given **7 problems** and **2 hours and 15 minutes** to solve them. Note that the **penalty** for the wrong submission in this round is **10 minutes**. [Remember](https://codeforces.me/blog/entry/59228) that only the *trusted participants of the third division* will be included in the official standings table. As it is written by link, this is a compulsory measure for combating unsporting behavior. To qualify as a *trusted partic...

Full text and comments »

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

89.
By adamant, history, 3 years ago, In English
OCPC 2024 Winter — wrap Hi everyone! <center><a href="https://ocpc.mathos.unios.hr"><img src="https://ocpc.mathos.unios.hr/images/ocpc.svg" height="100px"></a> <a href="https://icpc.foundation/"><img src="https://ocpc.mathos.unios.hr/images/ICPC.svg" height="100px"></a></center> <center> <b>Sponsored by</b><br> <a href="https://www.janestreet.com/join-jane-street/open-roles/?type=students-and-new-grads&location=london"> <img src="/predownloaded/ee/f2/eef26616a3661c658d1545f18ed21fabb14d5871.svg" height="50px" style="margin: 5px 5px 5px 5px;"></a> <a href="https://pinely.com/"> <img src="/predownloaded/0a/0f/0a0f3f67435d1f6e467bc7203d4a2090ba8f92cc.svg" height="50px" style="margin: 5px 5px 5px 5px;"></a> </center> Yesterday marked the conclusion of the third [Osijek camp](https://ocpc.mathos.unios.hr) (also see the [announcement](https://codeforces.me/blog/entry/124573) on Codeforces). Similar to the last time, the camp was organized by Tähvend Uustalu ([user:-is-this-fft-,2024-02-26]) and m...
timing, doubts about our contests, online judge, location, pricing or something else entirely? Whatever

Full text and comments »

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

90.
By BledDest, 12 months ago, In English
About ER185, problem D Judging by the comments in the ER announcement, people seriously disliked problem D (to say the least). I want to explain why it exists. But first, I have to admit that I made two serious mistakes when setting the problem. My first mistake is actually putting it into a 2-hour solo round; in its current state, it is much more suitable for a longer contest with a team of three people, where you can actually get some help in debugging the code or verifying your solution logic. The second mistake will be explained a bit later, but I want to say that I understand why people think this is a terrible problem. I am sorry if this problem made the contest much worse for you. However, I am also asking that you consider my point of view. You don't have to agree with it, but I don't want anyone to view me as some insane author who's setting a problem just to watch everyone get furious while implementing it. This is definitely an implementation-heavy problem. But I think that implementation...

Full text and comments »

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

91.
By AmShZ, 2 months ago, In English
Feedback on Repovive's First Math Contest Hello everyone! We recently held the **first Math Contest on Repovive**, and it was a really interesting experience. You could genuinely feel people's excitement about trying something new, and we also had many very strong participants from Japan. I really love the Japanese competitive programming community! You can check out the contest here: https://repovive.com/contests/math-round-1 Also, [user:Um_nik,2026-09-30], [user:Golovanov399,2026-09-30], and [user:maspy,2026-09-30] made videos about their participation in the contest, which was really cool to see! * Um_nik: https://www.youtube.com/watch?v=XknZrW2LFsE * Golovanov399: https://www.youtube.com/watch?v=-hzi7gWXWnk * maspy: https://www.youtube.com/watch?v=YgZneoJoR7Y For those who did not follow the original announcement, each written solution was evaluated by **5 GPT 6 judge agents**. The judging was binary: your solution was either **Accepted** or **Rejected**. Rejected submissions had no penalty, but you had at...
GPT 6 judge agents**. The judging was binary: your solution was either **Accepted** or **Rejected, This becomes especially important in a live contest. If the judge is too strict, participants may, judge was probably a little too strict about details. A solution with the correct main idea could still

Full text and comments »

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

92.
By vovuh, history, 6 years ago, translation, In English
Codeforces Round #653 (Div. 3) &lt;almost-copy-pasted-part&gt; Hello! [contest:1374] will start at [contest_time:1374]. You will be offered 6 or 7 problems (or 8) with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have rating 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ACM-ICPC). Thus, during the round, solutions will be judged on preliminary tests, and after the round it will be a 12-hour phase of open hacks. I tried to make strong tests &mdash; just like you will be upset if many solutions fail after the contest is over. You will be given 6 or 7 (or 8) problems and 2 hours to solve them. Note that **the penalty** for the wrong submission in this round (and the following Div. 3 rounds) is **10 minutes**. [Remember] (/blog/entry/59228) that only the <i>trusted participants of the third division</i> will be included in the ...

Full text and comments »

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

93.
By adamant, history, 4 years ago, In English
Shift of polynomial sampling points Hi everyone! Previously, I had a [blog](https://codeforces.me/blog/entry/99646) on how, given $s$ and a polynomial $f(x)$, to compute coefficients of the polynomial $f(x+s)$. Today we do it in values space. Consider the problem **[Library Judge &mdash; Shift of Sampling Points of Polynomial](https://judge.yosupo.jp/problem/shift_of_sampling_points_of_polynomial)**. In this problem, you're given $s$ and the values $f(0), f(1), \dots, f(n)$ of a polynomial of degree at most $n$ and you need to find $f(s), f(s+1), \dots, f(s+n)$. In particular, I used this to generate test cases for [problem:1817C], there might be other applications too. [cut]<br> #### General linear recurrence shift _If you have further questions about something here, please refer to [this blog](https://codeforces.me/blog/entry/100158)_ Let's, for a moment, consider even more generic problem now. Let $f_0, f_1, \dots$ be a linear recurrence, such that $$ f_m = a_1 f_{m-1} + \dots + a_{n+1} f_{m...
Today we do it in values space. Consider the problem **[Library Judge — Shift of Sampling, You can also refer to my [solution](https://judge.yosupo.jp/submission/85876) on the LibraryJudge.

Full text and comments »

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

94.
By Proof_by_QED, 20 months ago, In English
Codeforces Round 1017 (Div. 4) # Good Morning/Afternoon/Evening/Night Codeforces ---------- <center> <br/> <img src="https://i.ibb.co/dZM4Rgm/1000015885-removebg-preview.png" alt="1000015885-removebg-preview" border="0"><br/> This is Orangutini Ananasini Emoji </center> ---------- [user:cry,2025-04-07] and I are overjoyed to welcome you to participate in [contest:2094] at [contest_time:2094]. **Note the unusual time of the round**. You will be given $2$ hours and $15$ minutes to solve $8$ problems. The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of **open hacks**. After open hacks all accepted solutions will be rejudged on successful hacks. Note that the **penalty** for each wrong submission in this round is **10 minutes**. Also, **note the [rule restricting AI use](https://codeforces.me/blog/entry/133941)!!!** If you are caught using AI, your submissio...

Full text and comments »

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

95.
By adamant, history, 4 years ago, In English
Duality in linear programming. Part 2 — in competitive programming Hi everyone! Previously, I wrote a [general introduction](https://codeforces.me/blog/entry/105049) to linear programming duality. In this blog, I would like to write about several problems that could be solved with this technique. Familiarity with the first blog, or general knowledge of dual problems and how to construct them is generally expected to navigate in this one. Thanks to [user:brunovsky,2022-08-09] and [user:Golovanov399,2022-08-09] for problem suggestions! And particularly special thanks to [user:WeakestTopology,2022-08-09] for problem suggestions and all insightful discussions on the topic! [cut]<br> ### Dual construction mnemonics To simplify the construction of dual problems, let's recall the correspondence between constraints/variables in primal and dual problems. <spoiler summary="LP duality mnemonics"> Standard definition of LP dual problem looks like this: $$\begin{gather} \max\limits_x & c^\top x & \color{red}{\text{(maximization)}} & \ove...
- **[problem:1307G]**. - **[Baekjoon Online Judge — Ito](https://www.acmicpc.net/problem

Full text and comments »

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

96.
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...
can you find the problems? For example, [AIZU ONLINE JUDGE ](http://judge.u-aizu.ac.jp/onlinejudge

Full text and comments »

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

97.
By tmt514, history, 2 years ago, In English
2024 ICPC Asia Taichung Regional Contest [Online Mirror, ICPC Rules] Hello Codeforces! I am pleased to invite you to participate in [contest:2041], which will be held on [contest_time:2041]. This is an online mirror contest for the 2024 ICPC Asia Taichung Regional Contest, and the official offline contest was conducted on November 17th, 2024. The duration of the contest will be 5 hours and the contest is best for **teams of three people**. The mirror will use the ICPC format. The contest tasks are proposed by the task authors ([user:baluteshih,2024-11-21], [user:waynetuinfor,2024-11-21], [user:skylinebaby,2024-11-21],[user:samsam2310,2024-11-21], [user:hank55663,2024-11-21], [user:ltf0501,2024-11-21], [user:Jeffrey,2024-11-21], [user:shik,2024-11-21], [user:tmt514,2024-11-21], Bangye Wu, [user:kasuistry,2024-11-21], and Peter Rossmanith), prepared and polished by the judge team (Regional Contest Director Ling-Ju Hung, Chief Judge Peter Rossmanith, [user:kasuistry,2024-11-21], Hung-Lung Wang, [user:baluteshih,2024-11-21], [user:waynetuinfor,2024...
and polished by the judge team (Regional Contest Director Ling-Ju Hung, Chief Judge Peter, On behalf of the 2024 ICPC Asia Taichung Regional Contest Judge Team, we hope you enjoy this, judge team (Regional Contest Director Ling-Ju Hung, Chief Judge Peter Rossmanith, [user:kasuistry

Full text and comments »

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

98.
By MikeMirzayanov, 8 years ago, translation, In English
Polygon: resources advanced properties (graders) Hello, Codeforces! Today I’ve released an important update of the Polygon &mdash; partial support for advanced properties of resources. The main task that is being solved by this update is to support the development of problems with graders. In most competitions, participants need to submit a complete solution code, including reading an input reading and an output writing. For example, in Codeforces rounds you solve such kind of problems. However, in some competitions another approach is using: a participant needs to implement the required function or interface. For example, in a problem statement can be written that in a C ++ solution you need to implement a function that has prototype `int sum (int a, int b)` and submit the implementation. In this case, a participant has to submit a source code that contains the implementation of this function. Then, in the process of judging this solution for such a problem, an online judge should compile and link into a single executable f...
the process of judging this solution for such a problem, an online judge should compile and link

Full text and comments »

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

99.
By Crysfly, history, 12 months ago, In English
UOJ Long Round #3: 60h Challenge We will hold [UOJ Long Round #3](https://uoj.ac/contest/103) contest! The contest will run for **60** hours, spanning the entire weekend. You will be given **6** problems. (so it will be like a PA-Runda 5 contest XD) Overall, the difficulty should be a bit easier than previous ULR contests (?). Everyone is welcome to come and enjoy solving them without worry. - Contest link: https://uoj.ac/contest/103 - Start Time: https://www.timeanddate.com/worldclock/fixedtime.html?iso=20251121T1000&p1=33 - Writers: [user:Coffee_zzz,2025-11-20], [user:_istil,2025-11-20], [user:OIer1048576,2025-11-20], [user:Tony2_CF,2025-11-20], [user:ODT,2025-11-20] - Testers: [user:Flamire,2025-11-20], [user:zjy2008,2025-11-20], [user:hos.lyric,2025-11-20], [user:XY_eleven,2025-11-20], [user:dqstz,2025-11-20], [user:Urd-,2025-11-20] - Duration: 60 hours - Difficulty: CF Div.1+ - The point values: 100-100-100-100-100-100 Additionally, one of the problems will be judged with WASM-judge support. Sp...
Additionally, one of the problems will be judged with WASM-judge support. Special thanks to

Full text and comments »

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

100.
By adamant, history, 4 years ago, In English
Nimbers and Sprague-Grundy theorem Hi everyone! Today I'd like to write about the so-called Grundy numbers, or nimbers. I will start by providing a formal recap on the Sprague-Grundy theorem and then will advance to the topic that is rarely covered in competitive programming resources, that is I will write about nimber product and its meaning to the game theory. _I was asked to add the following to the blog: THANK SIR MASTER [user:ADAM_GS,2022-06-12] FOR GREAT AND VALUABLE REVIEW SIR_ ## Prerequisites Familiarity with the following concepts: - Basic [set theory](https://en.wikipedia.org/wiki/Set_theory) notion: [union](https://en.wikipedia.org/wiki/Union_%28set_theory%29), [cartesian product](https://en.wikipedia.org/wiki/Cartesian_product) and [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference) of sets, [set of all subsets](https://en.wikipedia.org/wiki/Power_set) denoted as $2^A$, etc; - [Groups](https://en.wikipedia.org/wiki/Group_%28mathematics%29) and [fields](https://en.wiki...
://judge.yosupo.jp/submission/92233) that takes 1.4s on the Library Judge.

Full text and comments »

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

101.
By errorgorn, 5 years ago, In English
Pragma Insanity: Weird Behaviour with Pragma O3 Here is a simple problem. Count the number of array $A$ of non-negative integers size $N$ such that $\sum\limits_{i=1}^{N} A_i \cdot i=K$. Where $N,K \leq 5000$. Find the answer modulo $1000000007$. I unfortunately cannot share the link to a submissions page as it is on a private local judge. Update: I have asked judge devs of the local judge, the compile command is `g++ -O2 -o {compiledName} {sourceName} -m64 -static -std=gnu++14 -lm -s -w -Wall -Wshadow -fmax-errors=512` But anyways, here is the problem. <spoiler summary="AC code"> ~~~~~ #pragma GCC optimize("O3,unroll-loops") #pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt") #include <bits/stdc++.h> using namespace std; #define rep(x,start,end) for(auto x=(start)-((start)>(end));x!=(end)-((start)>(end));((start)<(end)?x++:x--)) const int MOD=1000000007; int n,k; int memo[5005]; int main(){ cin>>n>>k; memo[k]=1; rep(x,n+1,1) if (k>=x) rep(y,k+1,x){ assert(y-x>=0); memo[y-x]=(memo[y-x]+...
I unfortunately cannot share the link to a submissions page as it is on a private localjudge., Update: I have asked judge devs of the local judge, the compile command is `g++ -O2 -o

Full text and comments »

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

102.
By Lewin, 8 years ago, In English
Forethought Future Cup Hi Codeforces! I'm excited to announce the Forethought Future Cup! It will consist of two rounds, an online round on [April 20th, 11:05am PDT](https://www.timeanddate.com/worldclock/fixedtime.html?day=20&month=4&year=2019&hour=21&min=5&sec=0&p1=166), and an onsite round on [May 4th, 10:05am PDT](https://www.timeanddate.com/worldclock/fixedtime.html?day=4&month=5&year=2019&hour=20&min=5&sec=0&p1=166). **Both of these rounds will be rated and open for all participants**. The top 25 local contestants near San Francisco will be invited to the Forethought office to take part onsite. Each round will be a combined round. In the first round, there will be 8 problems in 2.5 hours. There will be at least one interactive problem in this round. Please read the [interactive problem guide](https://codeforces.me/blog/entry/45307) if you haven’t already. The problems in this round were all written by me. Thanks to [user:ismagilov.code,2019-04-18], [user:mohammedehab2002,2019-04-18], [user:Je...
], and [user:dojiboy9,2019-04-18] (our CEO, who is also an ICPC World Finals Judge). I’m happy to

Full text and comments »

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

103.
By Qingyu, 10 months ago, In English
The IOI 2026 China Team ... is announced to be [user:Kevin114514,2026-02-11],[user:fake_banana,2026-02-11],[user:Z-301,2026-02-11],[user:NKheyuxiang,2026-02-11]! The full standings are available [here](https://docs.google.com/spreadsheets/d/1RW3yH8TGjACzyxOG3I1XvqrKROTRLQ2YpvRVS4fY4Z4/edit?gid=0#gid=0), and the tasks for the team selection have been published [here](https://qoj.ac/category/680). As you may notice from the scoreboard, this year's China Team Selection problems were exceptionally challenging. We will be adding English statements to the judge so that more participants can try these tasks, but, keep in mind that the contests are intentionally designed to be significantly more difficult than the IOI itself &mdash; even the strongest contestant in China scored only around 130 points. In the past three years we have organized joint team training sessions with several delegations prior to the IOI. We will see the possibility of holding similar events again this year. Huge thanks to all the pr...
challenging. We will be adding English statements to the judge so that more participants can try

Full text and comments »

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

104.
By BledDest, 5 years ago, translation, In English
Codeforces Round #760 (Div. 3) Hello, Codeforces! On [contest_time:1618] the [contest:1618] will start. This is a usual round for the participants from the third division. The round will contain 8 problems, which are mostly suited for participants with rating below 1600 (or we hope so). Although, as usual, participants with rating of 1600 and greater can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ACM-ICPC). Thus, during the round, solutions will be judged on preliminary tests, and after the round it will be a 12-hour phase of open hacks (we hope that our tests are strong enough, so there won't be too many solutions hacked during this phase). You will have to solve **8 problems** in **2 hours and 15 minutes**. The penalty for a wrong submission is equal to **10 minutes**. [We remind you](https://codeforces.me/blog/entry/59228) that only _the trusted participants of the third division_ will be included in the official standings table. As it is w...

Full text and comments »

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

105.
By vovuh, history, 6 years ago, translation, In English
Codeforces Round #661 (Div. 3) Hello! [contest:1399] will start at [contest_time:1399]. You will be offered 6 or 7 problems (or 8) with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have rating 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ACM-ICPC). Thus, during the round, solutions will be judged on preliminary tests, and after the round it will be a 12-hour phase of open hacks. I tried to make strong tests &mdash; just like you will be upset if many solutions fail after the contest is over. You will be given 6 or 7 (or 8) problems and 2 hours to solve them. Note that **the penalty** for the wrong submission in this round (and the following Div. 3 rounds) is **10 minutes**. [Remember] (/blog/entry/59228) that only the <i>trusted participants of the third division</i> will be included in the official standings table. As it is ...

Full text and comments »

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

106.
By UNDERTAKER, history, 3 months ago, In English
Looking for contests to host — we'll adapt our judge to your problems # Looking for contests to host — we'll adapt our judge to your problems Hello, Codeforces! Some of you may remember DOJ, the questionable AI-slop online judge we introduced here a few weeks ago. This time, we're not here to introduce the judge again. **We're looking for contests.** If you have a contest you'd like to host — whether you're an individual problem setter, a school, a university club, or an online competitive programming community — we'd be happy to host it on DOJ. And since DOJ is still a relatively young online judge, we can offer something that larger and more established platforms usually can't: **we can be unusually flexible.** ## The judge should adapt to the problem Normally, when an online judge doesn't support something, the problem has to be changed to fit the judge. We'd like to try the opposite. > **If a good problem requires something DOJ cannot currently do, we may change DOJ for the problem.** A different scoring method? ...
Looking for contests to host — we'll adapt our judge to your problems, extend the judge for it., ## The judge should adapt to the problem, **What's a contest/judging feature you've always wanted an online judge to support?**, > "This would be cool, but the judge probably can't support it.", And since DOJ is still a relatively young online judge, we can offer something that larger and more, Normally, when an online judge doesn't support something, the problem has to be changed to fit the, Some of you may remember DOJ, the questionable AI-slop online judge we introduced here a few weeks, This time, we're not here to introduce the judge again.

Full text and comments »

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

107.
By sevlll777, history, 3 years ago, translation, In English
Codeforces Round 895 (Div. 3) Hello Codeforces! [contest:1872] will start at [contest_time:1872]. You will be offered 7 problems with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have a rating of 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of **open hacks**. You will be given **7 problems** and **2 hours and 15 minutes** to solve them. Note that the **penalty** for wrong submission in this round is **10 minutes**. [Remember](https://codeforces.me/blog/entry/59228), that only the _trusted participants of the third division_ will be included in the official standings table. As it is written by link, this is a compulsory measure for combating unsporting behavior. To qualify as a _trusted participant of t...

Full text and comments »

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

108.
By tmt514, 13 months ago, In English
2025 ICPC Asia Taichung Regional Contest [Online Mirror, ICPC Rules] Hello Codeforces! <img src="/predownloaded/f7/83/f7835d12df1132fa5dfa5fab70d4661285a4408a.png" style="float: right;height: 300.0px;margin: 10.0px;max-width: 100.0%;max-height: 100.0%;" /> I am pleased to invite you to participate in [contest:2172], which will be held on [contest_time:2172]. This is an online mirror contest for the **2025 ICPC Asia Taichung Regional Contest**. The duration of the contest will be 5 hours and the contest is best for teams of three people. The mirror will use the ICPC format. We have an excellent judge team (Regional Contest Director Ling-Ju Hung, Chief Judge Peter Rossmanith, [user:baluteshih,2025-11-16], [user:henotrix,2025-11-16], [user:toxicpie9,2025-11-16], [user:marmot0814,2025-11-16], [user:kasuistry,2025-11-16], [user:cthbst,2025-11-16], [user:leo900807,2025-11-16], [user:olmrgcsi,2025-11-16], [user:hank55663,2025-11-16], [user:alan8585,2025-11-16], [user:waynetuinfor,2025-11-16], [user:CindyLinz,2025-11-16], [user:samsam2310,2025-11-16], ...
the ICPC format. We have an excellent judge team (Regional Contest Director Ling-Ju Hung, Chief, **UPDATE2**: The full list of the judge teams, task authors, and the tester teams are up! We will, On behalf of the 2025 ICPC Asia Taichung Regional Contest Judge Team (with Regional Contest, We have an excellent judge team (Regional Contest Director Ling-Ju Hung, Chief Judge Peter

Full text and comments »

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

109.
By reirugan, 17 months ago, In English
Codeforces Round 1034 (Div. 3) Hello, Codeforces! ================== I am very excited to invite you to my first-ever contest, [contest:2123], which will start on [contest_time:2123]! In this contest, you will be given **2 hours and 15 minutes** to solve **7 problems**. The round will be hosted by the rules of educational rounds (extended ICPC). Thus, all solutions will be judged on preliminary tests during the round, and after the round, there will be a 12-hour phase of **open hacks**. After the open hack phase, all accepted solutions will be rejudged on successful hacks. Also, note that there is no score distribution &mdash; rank will be determined by number of problems solved, followed by penalty; wrong submissions will incur the usual penalty of **10 minutes**, following the rules of educational rounds. [As a reminder](https://codeforces.me/blog/entry/59228), only trusted participants of the third division will be included in the official standings table. This is a compulsory measure for combating unspo...

Full text and comments »

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

110.
By ICPCNews, 4 years ago, In English
ICPC World Finals Dhaka — Live Broadcast and Mirror! Hello, Codeforces! <img alt="ICPC World Finals Dhaka Logo" src="/predownloaded/34/3e/343e3d2ae8f44d7c5225d52db21632db4bec56fe.svg" style="height: 300.0px;max-width: 100.0%;max-height: 100.0%;" align="right"> The ICPC World Finals Dhaka will begin on [November 10, 2022 at 11:00 (UTC+6)](https://www.timeanddate.com/worldclock/fixedtime.html?msg=ICPC+World+Finals+Dhaka&iso=20221110T11&p1=73&ah=5). This is the culmination of the 2020-2021 ICPC season, and we have over 130 teams competing for the title of ICPC champion. Please join us on the live broadcast for the main event of the year in competitive programming; commentators will include [user:ecnerwala,2022-11-09], [user:SecondThread,2022-11-09], [user:Egor,2022-11-09], and more! There will also be a live mirror for you to solve the problems alongside the contestants! Some useful links: * [ICPC Homepage](https://icpc.global/) * [World Finals Homepage](https://worldfinals.icpc.global/) * [World Finals Schedule](https://docs....
Mirror/Judge!](https://judge.icpc.global)

Full text and comments »

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

111.
By gKseni, 10 years ago, translation, In English
Code Festival 2016: interview and photos from participants [Code Festival 2016](http://codeforces.me/blog/entry/48616) was held in Tokyo on 25-30 of November. Boris [user:qwerty787788,2016-12-13] Minaev has shared with us his impressions, and Maxim [user:Zlobober,2016-12-13] Ahmedov and Nicolay [user:KAN,2016-12-13] Kalinin shared photos. &mdash; _To start with, let's mention that,_ [AtCoder](https://atcoder.jp/) _and_ [Indeed company](http://ru.indeed.com/about) _announced the festival. How many quals were there? In what way were they arranged?_ &mdash; There were 3 contests, in which you could take part. In the first part TOP-10 were selected, in the second one — TOP-5, the third one — TOP-5. To sum up, there are 20 foreigners to be selected. &mdash; _Which quals the Japanese had then?_ &mdash; Probably the same, but 200 participants passed the qual there. &mdash; _That means, the event is more orientated on Japanese people?_ &mdash; The previous years the event was held only for Japanese, this year they decided ...
foreigners. [user:rng_58,2016-12-13] was the judge. The Japanese were strong competitors.

Full text and comments »

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

112.
By AmShZ, history, 2 months ago, In English
Repovive Math Contest Round 1 — Combinatorics Hello everyone! After the **Repovive Math Contest Grand Opening**, we are back with our second live math contest! This round will be entirely about **Combinatorics**. Our goal is still the same: to bring the experience of competitive programming contests to proof-based mathematics. You solve a problem, write your proof, submit it, get a live verdict, and compete on a live leaderboard. The next contest will be **Repovive Math Contest Round 1**, held this Tuesday. * Start Time: [Tuesday, 6 October 2026, 14:35 (UTC)](https://www.timeanddate.com/worldclock/fixedtime.html?iso=20261006T1435&p1=1440&msg=Repovive+Math+Contest+Round+1) * Duration: $2$ hours, $30$ minutes * Problems: $5$ combinatorics problems * Points: $500,\ 1000,\ 1500,\ 2000,\ 2500$ * Registration: https://repovive.com/contests/m1 The contest is **rated for everyone**. ### What changed after the first contest? After our first math contest, we selected **534 borderline submissions** and graded them...
For this round, the judge will still return a **binary verdict**: each submission is either

Full text and comments »

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

113.
By adamant, history, 4 years ago, In English
Computing n! modulo pᵏ for small p Hi everyone! There is an [article](https://cp-algorithms.com/algebra/factorial-modulo.html) on cp-algorithms about how to compute $n!$ modulo prime number $p$. Today I was wondering, how to do it if we need to compute modulo $p^k$ rather than just $p$. Turns out one can do it efficiently if $p$ is small. #### Motivational example **[Xiaoxu Guo Contest 3 &mdash; Binomial Coefficient](https://www.acmicpc.net/problem/19124)**. Given $1 \leq n,k \leq 10^{18}$, find $\binom{n}{k}$ modulo $2^{32}$. There are also some projecteuler problems that require it, including with several queries of distinct $n$ and $k$. #### Task formulation and outline of result To clarify the task a bit, our ultimate goal here is to be able to compute e.g. binomial coefficients modulo $p^k$. Thus, what we really need is to represent $n! = p^t a$, where $\gcd(a, p)=1$, and then report $t$ and $a$ modulo $p^k$. This is sufficient to also compute $\binom{n}{r}$ modulo $p^k$. We will show that, ass...
**[Library Judge — Binomial Coefficient](https://judge.yosupo.jp/problem/binomial_coefficient, It [works 5.5s](https://judge.yosupo.jp/submission/142533) on the aforementioned LibraryJudge

Full text and comments »

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

114.
By I_love_Hoang_Yen, history, 11 years ago, In English
My story at ACM ICPC World Final 2016 My team (me + [user:flashmt,2016-05-20] + [user:nguyenhungtam,2016-05-20]) was probably never noticed by anyone, but we were actually aiming for medal. And I think we performed ok in the final, ending up at #15, still need some more luck & brain to win a medal. Anw, I decided to share my story. Btw if you are Vietnamese, you can also read [this](https://www.facebook.com/notes/thanh-trung-nguyen/t%C3%B3m-t%E1%BA%AFt-acm-world-final-2016/1157851804228014?pnref=story). Back story ========== In the ACM history, a Vietnamese team has never won any WF medal. 5 years ago, team of [user:ktuan,2016-05-20] (only Vietnamese red target on Topcoder) had high hope, but ended up at #17. 4 years ago, team of [user:ConanKudo,2016-05-20] also had high hope, but messed up in the first 3 hours and ended up at #17. So I really wanted to win medal. And I've been planning for this World Final for several years.. Team formation ============== I've chosen [user:flashmt,2016-05-20] as teamm...
judge solution for B is nice, but I think they are not very familiar with Divide & conquer DP

Full text and comments »

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

115.
By vovuh, history, 6 years ago, translation, In English
Codeforces Round #686 (Div. 3) Hello! [contest:1454] will start at [contest_time:1454]. You will be offered 6 or 7 problems (or 8) with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have rating 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ACM-ICPC). Thus, during the round, solutions will be judged on preliminary tests, and after the round it will be a 12-hour phase of open hacks. I tried to make strong tests &mdash; just like you will be upset if many solutions fail after the contest is over. You will be given 6 or 7 (or 8) problems and 2 hours to solve them. Note that **the penalty** for the wrong submission in this round (and the following Div. 3 rounds) is **10 minutes**. [Remember] (/blog/entry/59228) that only the <i>trusted participants of the third division</i> will be included in the official standings table. As it is ...

Full text and comments »

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

116.
By Sammarize, 12 years ago, translation, In English
Way of problemsetter *The mystery of creating rounds unveiled by author of the 4 of them! The guide for preparing the round without horror-fiction and pastorals!* Thanks for [user:RodionGork,2014-06-13], who push me to writing this post and thanks for [user:lucAbalo,2014-06-13], who push [user:RodionGork,2014-06-13] to pushing me to writing this post. Also, many thanks to [user:RodionGork,2014-06-13] for the translation of this post to English. ##1. Inventing problems It's hard to advise anything on this point. There's no some standard way of creating problems &mdash; and if one have existed we'll have only "complicated algorithmic exercises" instead of "problems". People who participated in Russian Code Cup do know well the tasks of that sort. To cook good and interesting problem there should be some **idea!** which came to your mind (and later to minds of participants of the contest). Even the simplest problems of `A` level for the `Div2` should have some **idea**. So here is the war...
In complicated cases (e.g. when multiple arbitrary answers could be correct) checker shouldjudge

Full text and comments »

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

117.
By vovuh, 9 years ago, In English
Codeforces Round #479 (Div. 3) Hello! [contest:977] will start on [May 6 (Sunday) at 14:05 (UTC)] (http://www.timeanddate.com/worldclock/fixedtime.html?day=6&month=5&year=2018&hour=17&min=5&sec=0&p1=166). It will be the first Div.3 round in the history of Codeforces. You will be offered 6 problems with expected difficulties to compose an interesting competition for participants with ratings up to 1600. Probably, participants from the first division will not be at all interested by this problems. And for 1600-1899 the problems will be too easy. However, all of you who wish to take part and have rating 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ACM-ICPC). Thus, during the round, solutions will be judged on preliminary tests, and after the round it will be a 12-hour phase of open hacks. I tried to make strong tests &mdash; just like you will be upset if many solutions fail after the contest is over. [Remember] (/blog/entry/59228) t...

Full text and comments »

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

118.
By adamant, history, 4 years ago, In English
Osijek Competitive Programming Camp 2023 winter — wrap Hi everyone! <center><a href="https://ocpc.mathos.unios.hr"><img src="https://ocpc.mathos.unios.hr/images/ocpc.svg" height="100px"></a></center> <center> <b>Sponsored by</b><br> <a href="https://www.janestreet.com/join-jane-street/open-roles/?type=students-and-new-grads&location=london"> <img src="/predownloaded/ee/f2/eef26616a3661c658d1545f18ed21fabb14d5871.svg" height="50px" style="margin: 5px 5px 5px 5px;"> </a> <a href="https://www.think-cell.com/osijek2023"><img src="/predownloaded/97/88/97887beeb75a4601259414b36ecee0160c29d027.svg" height="40px" style="margin: 5px 5px 5px 5px;"></a> <a href="https://pinely.com/"> <img src="/predownloaded/0a/0f/0a0f3f67435d1f6e467bc7203d4a2090ba8f92cc.svg" height="50px" style="margin: 5px 5px 5px 5px;"> </a> </center> The [Osijek competitive programming camp](https://ocpc.mathos.unios.hr) (also see the [announcement](https://codeforces.me/blog/entry/110945) on Codeforces) just concluded last Sunday, on February 26, and I'd lik...

Full text and comments »

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

119.
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...
/problems/GRASSPLA/) (SPOJ; original source is USACO but the judge doesn't work for that problem

Full text and comments »

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

120.
By MikeMirzayanov, 15 years ago, translation, In English
Codeforces::Gym <p> We've made it! Or in any case, we are at least very close to it. </p> <p> On January 19, 2012 at 12:00 we open a sub-project called &quot;Gym&quot;. In short, its goal is to enable the Codeforces coders not only to participate in competitions and discuss them, but also to train and coach easily. </p> <p> In fact, despite the wide diversity of online judges in the world, a well thought-out training service system does not exist. So, the expectations from this system are: </p> <ol> <li>Collection of online contests, composed mainly of the past official contests. </li><li> Opportunity to integrate the final standings of past contests in the online contests to be able to train &quot;against&quot; the official participants. </li><li> Opportunity to participate in the training at any time whatsoever, without fear that something breaks down and the server will fall. In short, reliability. </li><li> Opportunity to write virtual contests and to solve the problems in a practice mode. </li...

Full text and comments »

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

121.
By diskoteka, 3 years ago, translation, In English
Codeforces Round #894 (Div.3) **☀ ☀ ☀ Hey Codeforces ☀ ☀ ☀** ---------------------------------- Summer is ending, but my team and I are happy to invite you to participate in [contest:1862]. The round will take place on [contest_time:1862]. You will be offered 7 problems with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have a rating of 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of **open hacks**. You will be given **7 problems** and **2 hours and 15 minutes** to solve them. Note that the **penalty** for the wrong submission in this round is **10 minutes**. [Remember](https://codeforces.me/blog/entry/59228) that only the trusted participants of the third division will be included in the official s...

Full text and comments »

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

122.
By defnotmee, 5 years ago, In English
Ideone is evil and I can prove it (not anymore!) So, on the last round i wasnt at home, and therefore had to use another person's computer to do the contest. Waking up to close to the start time made me not be able to set up the IDE properly, so I thought "why not just use ideone"? But what is Ideone anyway? ------------------ ![ ](https://media.discordapp.net/attachments/911814528277307392/920062296867356703/unknown.png) Well it *says* its an online compiler, so it must be a great alternative to a text editor to test things locally. However, little did I know that it was, in fact, a trap meticulously crafted by the devil, as I received those kind messages from codeforces: ![ ](https://cdn.discordapp.com/attachments/911814528277307392/920063125338861649/unknown.png) There are 5 more of these. Well, let me explain. This is what appears when you go into ideone: ![ ](https://cdn.discordapp.com/attachments/911814528277307392/920065828794273843/unknown.png) Notice something wrong? Right at the corner of the screen...
coders little by little. Not only do they do the shittiest judge imaginable (SPOJ, that has no one using, relates to? Yes, [Sphere Online Judge, or SPOJ](https://www.spoj.com/). We don't even have to go as, And what does spoj have to do with it? See, SPOJ is an online judge, but it has another

Full text and comments »

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

123.
By erniepsycholone, 3 years ago, In English
Codeforces Round 929 (Div. 3) _“It is not important to be better than someone else, but to be better than you were yesterday.”_ — Master Oogway, Kung Fu Panda Hello, Codeforces! We are proud to present [contest:1933], and we hereby invite all of you to take part in it. This round will start on [contest_time:1933]. You will have **2 hours and 15 minutes** to solve **7 problems**. The **penalty** for a wrong submission is equal to **10 minutes**. This round will be rated for participants with ratings lower than 1600. However, all of you who wish to take part and have a rating of 1600 or higher, are welcome to register for the round unofficially. The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of open hacks. Remember that only the trusted participants of the third division will be included in the official standings table. As stated in [this blog](https://codeforce...

Full text and comments »

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

124.
By Um_nik, history, 5 years ago, In English
Changes in CodeChef Problemsetting Hello Codeforces! For the last half a year I have been working on CodeChef and was proposing ideas on how to change the problemsetting practices (hopefully, for the best). For some time the changes were in brainstorming phase, but as of now many of them are implemented. Today we are ready to share the information with you. But first I would like to approach people who are going to close this blog without reading: If you are not interested in CodeChef contests at all, I think you should change your mind. Monthly short contests (Cook-Off and Lunchtime) have interesting quality problems, on par with Codeforces in my opinion (not AtCoder level yet, but who are?). Long and Starters are more targeted to newbie participants, with more classical educational problems. If you are interested in setting problems for regular contests, you might want to do it on CodeChef. Some reasons: - You don't have to set the whole round, as we work on per problem basis. - This may be especially...
article on good practices when working with Polygon next. - We have increased ourjudge server

Full text and comments »

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

125.
By errorgorn, 19 months ago, In English
1/phi Halving in Interactive Tree Problems Thanks to [user:toxicpie9,2025-04-22] for proofreading and emotional support. Recently, I was thinking about JOISC 2025 Space Thief. And there is a part where you need to do divide and conquer on a tree, where you need to split the edges of the tree into two components where the edges are both connected. Basically, we consider an interactive problem on a tree where there is a hidden edge. We are allowed to ask queries of the form $(v,N_v)$ where $v$ is a vertex of the tree and $N_v$ is a set of neighbouring edges of $v$. Then the query returns to us whether the hidden edge is in the subtree of one of $N_v$ when we root the tree at $v$. We maintain a set of edges that the hidden edge can be in. In each query, we try to split the set of edges into two parts and ask a query to separate them. In the worst case, we replace the set of edges by the larger component. Let $R$ be the maximum ratio of the larger component. In [this blog](https://codeforces.me/blog/entry/120446)...
judge, it was claimed in [the editorial](https://docs.google.com/presentation/d/1PKDy3BdizK

Full text and comments »

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

126.
By wilcot, history, 4 years ago, In Russian
Solve Judge System Привет всем. Хочу рассказать про свою разработку &mdash; тестирующую систему Solve с открытым исходным кодом. Да, можно сказать Yet Another Online Judge :) Но не стоит сразу расходиться, у нее есть некоторые крутые моменты и может быть вам захочется поднять собственную инсталляцию для проведения какого-нибудь соревнования. Вообще, система разрабатывается уже давно, но вот почему я решил написать только сейчас. Да потому что стабильный релиз вышел совсем недавно и полноценного тестирования до этого момента не проводилось. ### Для кого этот пост 1. Для тех, кто хочет проводить соревнования по СП. 2. Для тех, кто готовит задачи преимущественно в великолепной системе Polygon. 3. Для тех, кто хочет запустить свою систему без разработки с нуля (например огранизации). 4. Для тех, кто просто интересуется. ### Зачем вообще писать еще одну систему Это самый лучший вопрос, который стоит задать. Я не буду здесь сравнивать с другими, уже существующими аналогами, скажу лишь что для...
Solve Judge System, исходным кодом. Да, можно сказать Yet Another Online Judge :) Но не стоит сразу расходиться, у нее есть

Full text and comments »

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

127.
By ksun48, 8 years ago, In English
Codeforces Round #492 [Thanks, uDebug!] Hello denizens of Codeforces once again! After our last [two](http://codeforces.me/blog/entry/21860) [rounds](http://codeforces.me/blog/entry/43848), Yang Liu ([user:desert97,2018-06-19]) and I ([user:ksun48,2018-06-19]) are pleased to announce Codeforces Round #492, which will happen on [June 24, 2018 at 19:35 MSK](https://www.timeanddate.com/worldclock/fixedtime.html?day=24&month=6&year=2018&hour=19&min=35&sec=0&p1=166). There will be two versions of the contest, one for users in Division 1 and one for users in Division 2. Both versions will have six problems, with four problems shared between the versions. The round will feature our friend and superstar member of ACM-ICPC team MIT TWO, Allen Liu ([user:cliu568,2019-06-19]). The scoring distribution will be visible once the contest begins. As usual, we'd like to thank our wonderful problem coordinator [user:KAN,2018-06-19] and Codeforces administrator [user:MikeMirzayanov,2018-06-19], as well as the rest of the Codeforce...

Full text and comments »

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

128.
By AmShZ, 7 weeks ago, In English
Repovive Math Contest Round 2 — Combinatorics & Algebra Hello everyone! We are back with another live Math Contest on Repovive! After two rounds focused on combinatorics, we are expanding the problem set. This time, the contest will feature problems from **both Combinatorics and Algebra!** Our goal is to bring the excitement of competitive programming contests to proof-based mathematics. You solve problems, write your proofs, submit them for live judging, and compete on a live leaderboard. Whether you enjoy clever algebraic ideas or beautiful combinatorial arguments, we hope you will find something interesting in this round! * Start Time: [Sunday, 18 October 2026, 13:35 (UTC)](https://www.timeanddate.com/worldclock/fixedtime.html?iso=20261018T1335&p1=1440&msg=Repovive+Math+Contest+Round+2) * Duration: $2$ hours, $30$ minutes * Problems: $5$ * Points: $500,\ 1000,\ 1500,\ 2000,\ 2500$ * Registration: https://repovive.com/contests/m2 The contest is **rated for everyone**. ### Rules and judging The rules are current...
Participants submit written mathematical solutions, which are evaluated by **5 GPT-6judge agents

Full text and comments »

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

129.
By vovuh, history, 7 years ago, In English
Codeforces Round #642 (Div. 3) &lt;almost-copy-pasted-part&gt; Hello! [contest:1353] will start at [contest_time:1353]. You will be offered 6 or 7 problems (or 8) with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have rating 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ACM-ICPC). Thus, during the round, solutions will be judged on preliminary tests, and after the round it will be a 12-hour phase of open hacks. I tried to make strong tests &mdash; just like you will be upset if many solutions fail after the contest is over. You will be given 6 or 7 (or 8) problems and 2 hours to solve them. Note that **the penalty** for the wrong submission in this round (and the following Div. 3 rounds) is **10 minutes**. [Remember] (/blog/entry/59228) that only the <i>trusted participants of the third division</i> will be included in the ...

Full text and comments »

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

130.
By arvindf232, history, 2 years ago, In English
How might LGMs cheat using current AI. Or, are these not cheating? Disclaimer: My natural English ability is questionable. I have passed the blog through chatgpt to correct grammatical mistakes. I experimented with o1-mini and tried to understand its implications for competitive programming on Codeforces at level 2500 or higher. Obviously, the current AI cannot outright provide you with solutions; however, there are already ways it can help quite a lot. ### Brute Force Writing I believe most competitors regularly use brute-forces. They are kind of an admission of failure to find your mistakes on your own. Previously, brute-forces came with the cost of taking 5 minutes to write. I would not do it unless it is a very hard problem, or I have tried debugging by hand for 10 minutes and seen nothing. If AI usage is assumed, then these 5 minutes would be completely saved. Five minutes would correspond to approximately a 10 performance rating if on the final problem and increasingly more on earlier problems. ### Translations of Languages Thi...
I realized I am not qualified to judge and make the verdict, and my current opinion is, "I don't

Full text and comments »

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

131.
By KluydQ, history, 10 months ago, translation, In English
Codeforces Round 1076 (Div. 3) Hello, Codeforces! ------------------ <img src="/predownloaded/b1/86/b1863bb9ac63822d00c2bcf47725b2cb03758307.png" style="float: right; width: 200px; margin-left: 0px;"> We are glad and excited to invite you to take part in [contest:2193], which will take place on [contest_time:2193]. You will be given **2** hours and **15** minutes to solve **7-8** probmles. At least one problem will be interactive, so we highly recommend to read [guide for interactive problems](https://codeforces.me/blog/entry/45307) before the contest. The round will be hosted by the rules of educational rounds (extended ICPC). Thus, all solutions will be judged on preliminary tests during the round, and after the round, there will be a 12-hour phase of open hacks. After the open hack phase, all accepted solutions will be rejudged on successful hacks. [As a reminder](https://codeforces.me/blog/entry/59228), only trusted participants of the third division will be included in the official standings table....

Full text and comments »

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

132.
By awoo, history, 4 years ago, translation, In English
Codeforces Round #839 (Div. 3) Привет, Codeforces! On [contest_time:1772], [contest:1772] will start. This is a usual round for the participants from the third division. The round will contain 7 problems, which are mostly suited for participants with rating below 1600 (or we hope so). Although, as usual, participants with rating of 1600 and greater can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ICPC). Thus, during the round, solutions will be judged on preliminary tests, and after the round it will be a 12-hour phase of open hacks. You will be given **7 problems** and **2 hours and 15 minutes** to solve them. The penalty for a wrong submission is equal to **10 minutes**. [We remind you](https://codeforces.me/blog/entry/59228) that only the _trusted participants of the third division_ will be included in the official standings table. As it is written on the blog which you can access by this link, this is a compulsory measure for combating unspor...

Full text and comments »

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

133.
By ko_osaga, 3 months ago, In English
Response to "Is IOI Becoming Too Heuristic?" I wrote a comment for [this post](https://codeforces.me/blog/entry/156303) by [user:AmShZ,2026-08-30] and it became too long, so I made a separate blogpost. Contains a bit of the spoiler for 2026 day 2 problems. ### On the title I define heuristic problems as problems for which there is no reasonable way to infer the score of your solution (full or partial) solely from the problem statement PDF. Your score depends not on the objective merit of your solution, but on what the author decided to put in the input file. Magic City has a solution that could reasonably be inferred solely from the PDF. It does not admit any heuristic that scores well. Therefore, I don’t think it is a heuristic problem. I highly object to heuristic problems in top-level contests, especially for high school students. But I don’t think this was an issue for IOI 2026, so I would not open that can of worms here. ### Problems too hard I think the main recurring issue with the IOI (not specific...
idea is to identify a problem that can be graded fractionally and assign a scoring function tojudge

Full text and comments »

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

134.
By vovuh, history, 6 years ago, translation, In English
Codeforces Round #667 (Div. 3) Hello! [contest:1409] will start at [contest_time:1409]. You will be offered 6 or 7 problems (or 8) with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have rating 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ACM-ICPC). Thus, during the round, solutions will be judged on preliminary tests, and after the round it will be a 12-hour phase of open hacks. I tried to make strong tests &mdash; just like you will be upset if many solutions fail after the contest is over. You will be given 6 or 7 (or 8) problems and 2 hours to solve them. Note that **the penalty** for the wrong submission in this round (and the following Div. 3 rounds) is **10 minutes**. [Remember] (/blog/entry/59228) that only the <i>trusted participants of the third division</i> will be included in the official standings table. As it is ...

Full text and comments »

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

135.
By Qingyu, 4 years ago, In English
The 1st Universal Cup. Stage 17: Guangzhou (CCPC Final 2022) The 17th round of the first Universal Cup is happening this week. The contest is based on the Final Contest of the China Collegiate Programming Contest (中国大学生程序设计竞赛, CCPC), which took place in Guangzhou on May 14th, 2023. Around 130 teams joined the on-site round. Onsite Judges: [user:amiya,2023-05-17], [user:Qingyu,2023-05-17] Tasks Authors: [user:amiya,2023-05-17], [user:djq_cpp,2023-05-17], [user:flowerletter,2023-05-17], [user:gyh20,2023-05-17], [user:ix35,2023-05-17], [user:Rebelz,2023-05-17], [user:Qingyu,2023-05-17], [user:Yakumo_Ran,2023-05-17] Testers: [user:AcFunction,2023-05-17], [user:changruinian2020,2023-05-17], [user:cnnfls_csy,2023-05-17], [user:Crystally,2023-05-17], [user:emptyhope,2023-05-17], [user:flowerletter,2023-05-17], [user:gyh20,2023-05-17], [user:He_Ren,2023-05-17], [user:Heltion,2023-05-17], [user:kgqy,2023-05-17], [user:llzer,2023-05-17], [user:loveye,2023-05-17] , [user:lqx2005,2023-05-17], [user:MagicNiu,2023-05-17], [user:Mr_Eight,2023-05-17], ...

Full text and comments »

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

136.
By ko_osaga, history, 4 years ago, In English
SMAWK algorithm as an alternative for D&C optimization Yesterday I participated in a local contest involving a problem about Monge arrays. I could've wrote some d&c optimization, but I got bored of typing it so I copypasted [user:maroonrk,2023-01-01]'s SMAWK implementation to solve it. Today, I somehow got curious about the actual algorithm, so here it goes. ## 1. Definition I assume that the reader is aware of the concept of D&C Optimization and Monge arrays. The goal of SMAWK is to compute the row optima (ex. row minima or maxima...) in a $n \times m$ **totally monotone** matrix. By *totally monotone*, it means the following: **Def: Monotone.** The matrix is monotone if the position of row optima is non-decreasing. **Def: Totally Monotone (TM).** The matrix is totally monotone if every $2 \times 2$ submatrix is monotone. Totally monotone matrices are monotone (proof easy but nontrivial), but not vice versa. The latter is a stronger condition. Note that Divide and Conquer Optimization works on a monotone matrix, therefore ...

Full text and comments »

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

137.
By Error_Yuan, history, 2 years ago, In English
Refact.ai Match 1 (Codeforces Round 985) Editorial Thank you all for participating in the round! We apologize for the wrong checker in problem E at the beginning of the contest, as well as the weak tests in problem B. To be honest, all the hacked submissions have similar logic and codes in B, which made me suspicious. Anyway, we are sorry for the inconvenience! >_< <spoiler summary="Rating Predictions"> | |A|B|C|D|E|F|G|H|I| |:--:|:--:|:--:|:--:|:--:|:--:|:--:|:--:|:--:|:--:| |[user:Error_Yuan,2024-11-7]|800|1200|**1600**|**2100**|**2300**|2600|**3000**|3400|**3500**| |[user:sszcdjr,2024-11-7]|800|1100|1600|2000|2300|**2600**|2900|**3300**|3500| |[user:wyrqwq,2024-11-7]|800|**1000**|1400|2200|**2300**|2600|**3000**|3500|3500| |[user:Otomachi_Una,2024-11-7]|**800**|1000|1600|2200|2400|2600|3200|3500|3500| |[user:dxqwq,2024-11-7]|900|1100|1700|2200|2400|2600|3200|3500|3500| |[user:Kubic,2024-11-7]|800|1000|1600|2400|2200|2800|3000|3500|3300| |[user:wsc2008qwq,2024-11-7]|800|1100|1600|1900|2200|2700|3100| | | |[user:chroma...
And we can judge them in $\mathcal{O}(n)$ time complexity.

Full text and comments »

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

138.
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...

Full text and comments »

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

139.
By vovuh, history, 7 years ago, In English
Codeforces Round #634 (Div. 3) &lt;almost-copy-pasted-part&gt; Hello! [contest:1335] will start at [contest_time:1335]. You will be offered 6 or 7 problems (or 8) with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have rating 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ACM-ICPC). Thus, during the round, solutions will be judged on preliminary tests, and after the round it will be a 12-hour phase of open hacks. I tried to make strong tests &mdash; just like you will be upset if many solutions fail after the contest is over. You will be given 6 or 7 (or 8) problems and 2 hours to solve them. Note that **the penalty** for the wrong submission in this round (and the following Div. 3 rounds) is **10 minutes**. [Remember] (/blog/entry/59228) that only the <i>trusted participants of the third division</i> will be included in the ...

Full text and comments »

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

140.
By rui_er, 3 years ago, In English
Codeforces Round 942 (Div. 1, Div. 2) Editorial [problem:1972A] <spoiler summary="Hint 1"> Only add problems when they are needed. </spoiler> <spoiler summary="Tutorial"> [tutorial:1972A] </spoiler> <spoiler summary="Solution"> ```cpp //By: OIer rui_er #include <bits/stdc++.h> #define rep(x, y, z) for(int x = (y); x <= (z); ++x) #define per(x, y, z) for(int x = (y); x >= (z); --x) #define endl '\n' using namespace std; typedef long long ll; const int N = 105; int T, n, a[N], b[N]; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); for(cin >> T; T; --T) { cin >> n; rep(i, 1, n) cin >> a[i]; rep(i, 1, n) cin >> b[i]; int diff = 0, ans = 0; rep(i, 1, n) { if(a[i - diff] > b[i]) { ++ans; ++diff; } } cout << ans << endl; } return 0; } ``` </spoiler> [problem:1972B] <spoiler summary="Hint 1"> Is there anything that _never...
The key is to judge $\mathcal O(m\log n)$ times whether vertex $u$ is reachable from vertex $v$ in, Use the simplest way to judge if an $a$ is valid.

Full text and comments »

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

141.
By Nachia, history, 3 years ago, In English
Mutate Array and Sort All Obtained Arrays in Lexicographic Order I got AC on [Codeforces Round 905 (Div. 1) C. Minimum Array](https://codeforces.me/contest/1887/problem/C) with my prewritten code sorting all arrays obtained (in lexicographic order) in $\mathcal{O}(n\log n + q\log q)$ time. https://codeforces.me/contest/1887/submission/229244614 How is the processing time achieved? I made a tutorial (in Japanese) before. (https://www.mathenachia.blog/sortseqs/ and https://nachiavivias.github.io/cp-library/cpp/array/point-update-lex-sort.html) This time I make a brief explanation in English. ## Problem First you are given an array $(A _ 0[0],A _ 0[1],\ldots ,A _ 0[N-1])$ of length $N$ . You will construct other $Q$ arrays $A _ 1, A _ 2, \ldots , A _ Q$ as follows : * For $k=1,2,\ldots ,Q$ (in order) , you are given an integer $p _ k$ $( 0 \leq p _ k \leq N - 1 )$ and a value $x _ k$ . Overwrite $A _ k$ with the copy of $A _ {k-1}$ and change the value of $A _ {k}[p _ k]$ to $x _ k$ . Find an array $(F _ 0,F _ 1,F _ 2,\ldots ,F _...
on this topic. * Baekjoon Online Judge already has a [judge for a similar problem](https

Full text and comments »

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

142.
By -is-this-fft-, 3 years ago, In English
Osijek Competitive Programming Camp, Fall 2023 Hi everyone! <center><a href="https://ocpc.mathos.unios.hr"><img src="https://ocpc.mathos.unios.hr/images/ocpc.svg" height="100px"></a> <a href="https://icpc.foundation/"><img src="https://ocpc.mathos.unios.hr/images/ICPC.svg" height="100px"></a></center> <center> <b>Sponsored by</b><br> <a href="https://www.janestreet.com/join-jane-street/open-roles/?type=students-and-new-grads&location=london"> <img src="/predownloaded/ee/f2/eef26616a3661c658d1545f18ed21fabb14d5871.svg" height="50px" style="margin: 5px 5px 5px 5px;"> </a> <a href="https://pinely.com/"> <img src="/predownloaded/0a/0f/0a0f3f67435d1f6e467bc7203d4a2090ba8f92cc.svg" height="50px" style="margin: 5px 5px 5px 5px;"> </a> </center> After a successful camp last February ([announcement](https://codeforces.me/blog/entry/110945), [wrap-up](https://codeforces.me/blog/entry/113438)), we are happy to announce that Osijek camp will be returning on **16.-24. September 2023** &mdash; just in time to prepare for th...
main page, [eolymp](https://eolymp.com) for providing us an online judge for the contests and [the

Full text and comments »

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

143.
By adamant, 23 months ago, In English
Osijek Competitive Programming Camp, Winter 2025 Hi everyone! <center><a href="https://ocpc.camp"><img src="https://ocpc.camp/images/ocpc.svg" height="100px"></a> <a href="https://icpc.foundation/"><img src="/predownloaded/43/08/43086529a28ccb5c9f2f2eec560ffa85e09c6881.svg" height="100px"></a></center> <center> <b>Supported by</b><br> <a href="https://www.quantco.com/"><img src="https://ocpc.camp/images/quantco.svg" height="60px" style="margin: 10px 10px 10px 10px;"></a> <a href="https://ordercapital.com/"> <img src="https://ocpc.camp/images/OrCa.svg" height="60px" style="margin: 10px 10px 10px 10px;"> </a> <a href="https://www.janestreet.com/join-jane-street/open-roles/?type=students-and-new-grads&location=london"> <img src="/predownloaded/ee/f2/eef26616a3661c658d1545f18ed21fabb14d5871.svg" height="60px" style="margin: 10px 10px 10px 10px;"></a> <a href="https://pinely.com/"> <img src="/predownloaded/0a/0f/0a0f3f67435d1f6e467bc7203d4a2090ba8f92cc.svg" height="60px" style="margin: 10px 10px 10px 10px;"></a> </cent...
page; - [eolymp](https://eolymp.com) for providing an online judge for the contests; - [School of

Full text and comments »

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

144.
By Proof_by_QED, history, 15 months ago, In English
Codeforces Round 1047 (Div. 3) # Hello Codeforces ---------- <center> <br/> <img src="https://i.ibb.co/Y7DHkcpW/2025-09-06-12-40-07.png" alt="2025-09-06-12-40-07" border="0" /> <br/> Thanks to these nerds for 15 winstreak on Hypixel bedwars </center> ---------- [user:SpyrosAliv,2025-09-02] and I are excited to welcome you to participate in [contest:2137] at [contest_time:2137]. You will be given $2$ hours and $15$ minutes to solve $7$ problems. The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of **open hacks**. After open hacks all accepted solutions will be rejudged on successful hacks. The **penalty** for each wrong submission in this round is **10 minutes**. [Remember](https://codeforces.me/blog/entry/59228) that only the trusted participants of the third division will be included in the official standings table. As it is written by link, this is a...

Full text and comments »

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

145.
By -is-this-fft-, 5 years ago, In English
[Tutorial] Proving the inverse Ackermann complexity of Union-Find #### Introduction Most of us are familiar with the union-find data structure and the two optimizations one can do on it: _union by rank_ and _path compression_. Most tutorials will introduce these methods and state that if both optimizations are used, the complexity will be $\mathcal{O}((n + m) \alpha(n))$. Here, $n$ and $m$ are the number of vertices and queries respectively. What is $\alpha$? Generally, we are told that $\alpha$ is some mysterious function that grows very slowly: $\alpha(N) < 5$ where $N$ is the number of subsets of particles in the observable universe and whatnot. What it is is usually not clarified very much. And there is typically no proof (or intuition and other such justifications) as to why the complexity is like that: usually we're told that the complexity analysis is quite long and complicated. At the time of writing, both [cp-algorithms](https://cp-algorithms.com/data_structures/disjoint_set_union.html) and [Wikipedia](https://bit.ly/3EvnzrI) are like th...
shouldn't settle for $\log^*$. I'll let you judge based on this comparison: $$\alpha(2 \uparrow^4 3

Full text and comments »

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

146.
By wasa855, history, 6 years ago, In English
Are there any mistakes in the special judge of problem 1078E? Are there any mistakes in the special judge of problem 1078E? I wrote my own special judge to check my answer and it passed, so I think the special judge is wrong. Or anyone can find mistakes in my code or my special judge? Thanks a lot. If you can help me, I believe you can find a girlfriend easily. ( **upd: My construct method also passed special judges written by my friends. But my friends and I submitted different construct methods, and discoverd that the official special judge might don't support doing operation `t` many times.** My Code: ```cpp #include<bits/stdc++.h> using namespace std; #define pb push_back #define eb emplace_back #define mp make_pair #define Fast_IO ios::sync_with_stdio(false); #define DEBUG fprintf(stderr,"Running on Line %d in Function %s\n",__LINE__,__FUNCTION__) //mt19937 rnd(chrono::steady_clock::now().time_since_epoch().count()); #define fir first #define sec second #define mod 998244353 #define ll long long #define inf 0x...
Are there any mistakes in the special judge of problem 1078E?, submitted different construct methods, and discoverd that the official special judge might don't, I wrote my own special judge to check my answer and it passed, so I think the specialjudge is, My Special Judge:, Or anyone can find mistakes in my code or my special judge?

Full text and comments »

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

147.
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...
judge and start doing more virtual contests, but at that point you probably don't need this guide.

Full text and comments »

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

148.
By adamant, history, 3 years ago, In English
Useful substitutions with generating functions Hi everyone! Today I would like to write about some identities that might come handy when using generating functions to solve competitive programming problems. I will also try to include some useful examples about them. #### Some notation For brevity, we will sometimes skip the specific bounds in indexed sums, meaning that the summation happens among all _valid_ indices. Please also read the information below if you're not familiar with generating functions, or want to brush up on some aspects. <spoiler summary="Definitions and notation"> Let's briefly recall that, for a sequence $a_0, a_1, \dots$, it's **ordinary generating function** (OGF) is defined as a formal power series $$ F(x) = \sum\limits_k a_k x^k, $$ and its **exponential generating function** (EGF) is defined as $$ F(x) = \sum\limits_k a_k \frac{x^k}{k!}. $$ Generating functions are used because it's very simple to represent convolutions with them. For two sequences $a_0, a_1, \dots$ and $b_...
**Example 9**. Solve **[Library Judge — Sum of Exponential times Polynomial Limit](https, **Exercise 3**. Solve **[Library Judge — Sum of Exponential times Polynomial](https

Full text and comments »

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

149.
By racsosabe, 7 months ago, In English
IEEEXtreme 20.0 Call for Judges / Problem Authors ![ ](/predownloaded/a4/67/a4673e869e05bfeff7cee9d29ee8411ddd7406a1.jpg) Are you fascinated by programming? We, the IEEEXtreme 20.0 Executive Committee, are opening the registrations for a select few judges and problem authors. IEEEXtreme is a global challenge in which teams of IEEE student members compete in a 24-hour time span against each other to solve a set of programming problems authored by industry professionals and coding experts like yourself. Over the 20 years since it began, the competition has attracted over 70,000 competitors from over 2,500 schools in 90 countries around the world. This is an opportunity where you can not only develop the coding challenges but also you can evaluate them while having the opportunity to associate with some of the top experts in the field. The judging staff of IEEEXtreme are all volunteers who strive to make the contest a fun and exciting experience for all. Judges responsibilities may include one or more of the following: - D...

Full text and comments »

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

150.
By ninja_28, history, 6 years ago, In English
CodeCraft-21 and Codeforces Round #711 (Div. 2) Editorial [problem:1498A] ================== #### [**Video Editorial**](https://www.youtube.com/watch?v=lV5cb8wh3sE) **Author and Problemsetting:** [user:ninja_28,2021-03-29] **Editorialist:** [user:sigma_g,2021-03-29] <spoiler summary="Hint"> Can you think of the simplest properties that relate a number and its sum of digits? </spoiler> <spoiler summary="Hint 2"> Note that if $X$ is a multiple of 3, then **both** $X$ as well as the sum of digits of $X$ are a multiple of 3! Can you put this property to use here? </spoiler> <spoiler summary="Hint 3"> If $X$ is a multiple of 3, then $\texttt{gcd-sum}(X) \ge 3$. Therefore, we are guaranteed that at least every third number will satisfy the constraints required by our problem $(\texttt{gcd-sum}(X) > 1)$. </spoiler> <spoiler summary="Solution"> Therefore, for the input $n$, we can simply check which one of $n$, $n+1$, and $n+2$ has its gcd-sum $> 1$, and print the lowest of them. </spoiler> <spoi...
$"? \ b \ a"$ and if the judge responds by "Yes", then it means both $a$ and $b$ are reachable from, from the judge? Because if we ask $"? \ a \ b"$ i.e whether there is a path from $a$ to $b$ or not

Full text and comments »

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

151.
By diskoteka, 3 years ago, translation, In English
Codeforces Round #878 (Div.3) **Hey Codeforces (ノ◕ヮ◕)ノ*:・゚✧** ---------------------------------- My team and I are happy to invite you to participate in [contest:1840]. The round will take place on [contest_time:1840]. You will be offered 8 problems with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have a rating of 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of **open hacks**. You will be given **8 problems** and **2 hours and 15 minutes** to solve them. One of the problems in this round is interactive. Don't forget to read the [guide on interactive problems](https://codeforces.me/blog/entry/45307). Note that the **penalty** for the wrong submission in this round is **10 minutes**. [Remember](http...

Full text and comments »

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

152.
By __baozii__, 16 months ago, In English
Codeforces Round 1042 (Div. 3) Hello Codeforces! We are glad to invite you to participate in [contest:2131], which will start on [contest_time:2131]. You will be given **2 hours and 15 minutes** to solve **8** problems. The problems are authored and prepared by [user:-firefly-,2025-08-07], [user:efishel,2025-08-07], [user:Tobo,2025-08-07], and [user:__baozii__,2025-08-07]. The round will be hosted by the rules of educational rounds (extended ICPC). Thus, all solutions will be judged on preliminary tests during the round, and after the round, there will be a 12-hour phase of **open hacks**. After the open hack phase, all accepted solutions will be rejudged on successful hacks. Also, note that there is no score distribution &mdash; rank will be determined by number of problems solved, followed by penalty; wrong submissions will incur the usual penalty of **10 minutes**, following the rules of educational rounds. [As a reminder](https://codeforces.me/blog/entry/59228), only trusted participants of the th...

Full text and comments »

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

153.
By adamant, history, 3 years ago, In English
Dirichlet convolution. Part 2: Dirichlet series and prime counting Hi everyone! Recently I've published a [blog](https://codeforces.me/blog/entry/117635) about how one can multiply and divide sequences with Dirichlet convolution. In this blog, we will learn about a convenient framework to reason about them in a "coordinate-free" notation, similar to how generating functions are used to analyze sequences under the regular convolution. - **[Part 1: Fast prefix sum computation](https://codeforces.me/blog/entry/117635)** - **Part 2: Dirichlet series and prime counting** We will learn how to deal with Dirichlet multiplication and division in the framework of Dirichlet series, and derive a number of well known number theoretic results from this perspective. While doing so, we will learn about Riemann zeta function and will have a glimpse into why it is so important in analyzing behavior of prime numbers. We will also learn how Dirichlet series framework helps us to, given $g(1), \dots, g(n)$, to compute $f(1), \dots, f(n)$ in $O(n \log n)$ s...
**[Library Judge — Counting Primes](https://judge.yosupo.jp/problem/counting_primes)**. Count

Full text and comments »

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

154.
By Pyqe, 2 years ago, In English
Online mirror of The 2024 ICPC Asia Jakarta Regional Contest Selamat pagi Codeforces! We're going to hold The 2024 ICPC Asia Jakarta Regional Contest. We invite you to join the online mirror contest [2024-2025 ICPC, Asia Jakarta Regional Contest (Online Mirror, Unrated, ICPC Rules, Teams Preferred)](https://codeforces.me/contests/2045) on Codeforces. It'll be held on [contest_time:2045] and will last for 5 hours. The mirror will be held using ICPC-style scoring with 10 to 13 problems. The problem statements will only be available in English. We encourage participating as a team using only one computer for coding (as in ICPC contests). The mirror will be unrated. Some useful links: * [The 2024 ICPC Asia Jakarta homepage](https://competition.binus.ac.id/icpc2024) * [The regional information in ICPC Global](https://icpc.global/regionals/finder/Jakarta) * [The onsite scoreboard](https://competition.binus.ac.id/contest) We hope that you'll enjoy the contest. Good luck and have fun! **UPD.** The mirror has ended! You can find...

Full text and comments »

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

155.
By Vladosiya, history, 3 years ago, translation, In English
Codeforces Round 913 (Div. 3) Hello! [contest:1907] will start at [contest_time:1907]. You will be offered 6-8 problems with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have a rating of 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of **open hacks**. You will be given **6-8 problems** and **2 hours and 15 minutes** to solve them. Note that the **penalty** for the wrong submission in this round is **10 minutes**. [Remember](https://codeforces.me/blog/entry/59228) that only the trusted participants of the third division will be included in the official standings table. As it is written by link, this is a compulsory measure for combating unsporting behavior. To qualify as a _trusted participant of the thi...

Full text and comments »

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

156.
By vovuh, history, 7 years ago, translation, In English
Codeforces Round #629 (Div. 3) &lt;almost-copy-pasted-part&gt; Hello! [contest:1328] will start at [contest_time:1328]. You will be offered 6 or 7 problems (or 8) with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have rating 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ACM-ICPC). Thus, during the round, solutions will be judged on preliminary tests, and after the round it will be a 12-hour phase of open hacks. I tried to make strong tests &mdash; just like you will be upset if many solutions fail after the contest is over. You will be given 6 or 7 (or 8) problems and 2 hours to solve them. Note that **the penalty** for the wrong submission in this round (and the following Div. 3 rounds) is **10 minutes**. [Remember] (/blog/entry/59228) that only the <i>trusted participants of the third division</i> will be included in the ...

Full text and comments »

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

157.
By vovuh, history, 7 years ago, In English
Codeforces Round #590 (Div. 3) **UPD**: Special thanks to Mikhail [user:PikMike,2019-10-01] Piklyaev for help with translation and problems discussing, Maksim [user:Ne0n25,2019-10-01] Mescheryakov for problems discussing, Artem [user:Rox,2019-10-01] Plotkin, Daria [user:ZeroAmbition,2019-10-01] Stepanova and Tommy [user:STommydx,2019-10-01] Li for testing the round! **UPD2**: [Editorial](https://codeforces.me/blog/entry/70233) is published! &lt;almost-copy-pasted-part&gt; Hello! [contest:1234] will start at [contest_time:1234]. You will be offered 6 or 7 problems (or 8) with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have rating 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ACM-ICPC). Thus, during the round, solutions will be judged on preliminary tests, and after the round it will be a 12-hour phase of open hacks. I tried ...

Full text and comments »

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

158.
By Arpa, history, 4 years ago, In English
Ten years of Competitive Programming Hey Codeforces! I’m AmirReza PourAkhavan, Codeforces Contest Coordinator. I let the story become complete and I’m sharing it now. The story is about a 16-year competitive programmer, who left his family and migrated to another city alone to follow competitive programming. After seven years, he advanced to the International Collegiate Programming Contest World Finals, twice. ### Why I’m writing this Six years ago someone asked me [here](https://codeforces.me/blog/entry/45186?#comment-297837) to write my story. I think it can help you to never give up. ### A brief about me I've been doing competitive programming for ten years. I advanced to ICPC (International Collegiate Programming Contests) World Finals twice, in 2019 at Porto and 2020 at Moscow. At ICPC World Finals 2020, our team took high-honored place twenty-four, which is equal to the top 0.03% of 200k students participating in ICPC. <center> <br> <img width="50%" src="/predownloaded/c2/0c/c20c501bba688...
, CodeChef, and HackerEarth, for five years. Also, I am (was) a judge at Africa and Arab Collegiate

Full text and comments »

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

159.
By OddImage, history, 4 years ago, In English
Invitation to Goodbye Renyin Hello, Codeforces! It’s our pleasure to invite you to [Goodbye Renyin](https://uoj.ac/contest/80), which takes place on [Friday, January 20, 2023 at 13:00<sup title="timezone offset" style="font-size:8px;">UTC+8</sup>](https://www.timeanddate.com/worldclock/fixedtime.html?msg=The+contest+will+hold+at&iso=20230120T13&p1=33&ah=5). You will have 5 hours to solve 5 problems sorted roughly by difficulty. Each problem is worth 100 points and may have several subtasks. There might be interactive or output-only problems. The contest is open to everyone, though Codeforces-Div. 1-level contestants are more likely to enjoy it. For details, you may check last year’s [Goodbye Xinchou](https://uoj.ac/contest/74) (only available in Chinese, Simplified). The problems are authored by [user:changruinian2020,2023-01-17], [user:ix35,2023-01-17], [user:flowerletter,2023-01-17], [user:Melania,2023-01-17] and [user:qingyu,2023-01-17]. The competition format will be similar to (but a bit different...
About us: [Universal Online Judge](https://uoj.ac) (UOJ) is a non-profit competitive programming

Full text and comments »

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

160.
By LMydd0225, history, 2 years ago, In English
Codeforces Round 969 (Div. 1, Div. 2) Editorial [problem:2007A] <spoiler summary="Hint 1"> How many odd integers are there in a pair $(a, b, c)$? <spoiler summary="Answer"> At least 2. </spoiler> </spoiler> <spoiler summary="Hint 2"> It's always better to put **exactly $2$** odd integers and **exactly $1$** even integer in one pair of $(a, b, c)$. Is there a way to always choose optimal $(a, b, c)$? </spoiler> <spoiler summary="Hint 3"> Try consecutive integers. </spoiler> <spoiler summary="Tutorial"> [tutorial:2007A] </spoiler> <spoiler summary="Implementation"> ```py T = int(input()) for _ in range(T) : l, r = map(int, input().split()) print(((r + 1) // 2 - l // 2) // 2) ``` </spoiler> [problem:2007B] <spoiler summary="Hint"> Consider the position of the maximum value in one array. If there's multiple maximum values, choose any. What can you observe? <spoiler summary="Answer"> The position of the maximum value never changes. That is, if one element is the maximum value...
Let's try to judge whether an array is brilliant, and try to sort it, We can build a directed bipartite graph. How to judge whether it is, . So let's try to change blocks $(3,1),(3,2),(4,1),(4,2)$ to judge whether it is possible.

Full text and comments »

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

161.
By maomao90, history, 5 years ago, In English
Tutorial on SIMD vectorisation to speed up brute force I decided to write a blog on this as I was doing a problem on our local judge and I decided to try to speed up my brute force code. However, it was quite difficult to find resources on SIMD vectorisation, so I decided to try to compile some of the resources I found to hopefully allow more people to learn <s>to scam brute force solutions</s> Thanks to ~iloveioi,2022-01-02 and ~jamessngg,2022-01-02 for proofreading. Introduction ================== SIMD stands for single instruction, multiple data. SIMD allows us to give vector instructions which will allow the code to run faster. Vector instructions are instructions that handle short (length 2-16) vectors of integers / floats / characters in a parallel way by making use of the extra bits of space to do operations simultaneously. The most common form of vectorisation is making use of pragmas such as ~~~~~ #pragma GCC optimize("O3,unroll-loops") #pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt") ~~~~~ This form of vecto...
I decided to write a blog on this as I was doing a problem on our local judge and I decided to try

Full text and comments »

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

162.
By adamant, 2 years ago, In English
Osijek Competitive Programming Camp, Fall 2024 Hi everyone! <center><a href="https://ocpc.mathos.unios.hr"><img src="https://ocpc.mathos.unios.hr/images/ocpc.svg" height="100px"></a> <a href="https://icpc.foundation/"><img src="https://ocpc.mathos.unios.hr/images/ICPC.svg" height="100px"></a></center> <center> <b>Sponsored by</b><br> <a href="https://www.janestreet.com/join-jane-street/open-roles/?type=students-and-new-grads&location=london"> <img src="/predownloaded/ee/f2/eef26616a3661c658d1545f18ed21fabb14d5871.svg" height="50px" style="margin: 5px 5px 5px 5px;"> </a> <a href="https://pinely.com/"> <img src="/predownloaded/0a/0f/0a0f3f67435d1f6e467bc7203d4a2090ba8f92cc.svg" height="50px" style="margin: 5px 5px 5px 5px;"> </a> <a href="https://quantco.com/"> <img src="/predownloaded/5d/d5/5dd574cd921167d19fb0907b542835e09e6490f4.svg" height="50px" style="margin: 5px 5px 5px 5px;"> </a> </center> We are happy to announce that Osijek camp will be returning this Autumn, on **August 31-September 8 2024**, right ...
the main page; - [eolymp](https://eolymp.com) for providing an online judge for the contests

Full text and comments »

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

163.
By PersistentLife, history, 3 months ago, In English
Competitive Programming Training: Curated Problem Set #1 [1200–2600, with Editorials] **UPD: Curated problem set 1 (both normal and advanced) for subscribers is ready! Feel free to join our Discord server and subscribe!** A few days ago, I published a blog post on Codeforces about how to train for competitive programming: [Link](https://codeforces.me/blog/entry/156161) In that post, I mentioned that I planned to regularly publish recommended training problems. Now, here they are! Please join our Discord server to receive the latest updates: https://discord.gg/DsHSfmVgG ### Problem Set Overview Each release will include $5$ problems and their editorials. After converting the difficulty of every problem into a Codeforces rating, the problems will be distributed approximately uniformly across the range $[1200,2600]$. The problems will be selected from relatively obscure problem series that are not suitable for being worked through indiscriminately from beginning to end. For this reason, some problem statements may not be available in English; you can use...
Bonus: Think about how to implement the Special Judge for this problem.

Full text and comments »

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

164.
By dreamoon_love_AA, history, 7 years ago, In English
Codeforces Round #631 Editorial [tutorial:1330A] <spoiler summary="author's code:"> ~~~~~ #include<cstdio> const int MAX_V = 201; bool achieve[MAX_V]; void solve() { int n, x; scanf("%d%d", &n, &x); for(int i = 1; i <= n + x; i++) { achieve[i] = false; } for(int i = 1; i <= n; i++) { int ranking; scanf("%d", &ranking); achieve[ranking] = true; } for(int k = n + x; k > 0; k--) { int v = 0; for(int i = 1; i <= k; i++) { if(!achieve[i]) v++; } if(v <= x) { printf("%d\n", k); return; } } } int main() { int T; scanf("%d", &T); while(T--) solve(); return 0; } ~~~~~ </spoiler> [tutorial:1330B] <spoiler summary="author's code"> ~~~~~ #include<cstdio> const int SIZE = 200000; int p[SIZE]; int ans[SIZE][2]; int ans_cnt; bool judge(int a[], int n){ static int used[SIZE+1]; for(int i = 1; i <= n; i++) used[i] = 0...
]; int ans[SIZE][2]; int ans_cnt; bool judge(int a[], int n){ static int used[SIZE+1]; for

Full text and comments »

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

165.
By Vladosiya, history, 3 years ago, translation, In English
Codeforces Round #888 (Div. 3) Hello! [contest:1851] will start at [contest_time:1851]. You will be offered 6-8 problems with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have a rating of 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of **open hacks**. You will be given **7 problems** and **2 hours and 15 minutes** to solve them. Note that the **penalty** for the wrong submission in this round is **10 minutes**. [Remember](https://codeforces.me/blog/entry/59228) that only the trusted participants of the third division will be included in the official standings table. As it is written by link, this is a compulsory measure for combating unsporting behavior. To qualify as a _trusted participant of the third...

Full text and comments »

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

166.
By Qwerty1232, 19 months ago, In English
Making NTT convolution 10x faster with avx2 > Text is also available on [github pages](https://piskareviv.github.io/blog_aux_ntt_1/) (formatting may look a bit cleaner there) > Thanks [user:alexxela12345,2025-05-05] for reviewing this blog Hello everyone! I want to share some of my thoughts and experiments on vectorizing NTT. I prefer NTT to real-valued FFT because of the imprecision of the latter. I use `avx2` because it is the most advanced vector extension supported by the majority of modern online judges (including Codeforces), as of 2024. And I have no idea how many bugs (already found two) and how much UB my code contains, at least it passes some kind of tests. ### Benchmark info All the benchmarks are performed on my `Ubuntu 22` `Intel i5-1135g7` laptop. I execute `cpupower frequency-set -d 3.0ghz -u 3.0ghz` before benchmarks to (attempt to) fix CPU frequency for better accuracy. Code is available at [github](https://github.com/piskareviv/blog_aux_ntt_1). You can try running all the benchmarks o...
`stderr` (luckily the judge shows `stderr` on every test).

Full text and comments »

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

167.
By Balajiganapathi, history, 7 years ago, In English
CodeDrills — A new online judge We are going through an unprecedented situation currently. There are lockdowns and quarantines in many parts of the world. We feel the best way to cope with everything that is going on is to keep ourselves occupied. To help with that, we at CodeDrills have something for all the competitive coders out there. On 25th March, we launched our own online judge and also launched the CodeDrills covid 21 days challenge. Every day, for the 21 days starting from 25th March, we will upload 1 problem. Just visit [codedrills.io](https://codedrills.io), login and start solving! The launch coincided with the start of a full lockdown in India. Since the situation was unexpected, we rushed to put up the site as soon as possible, so there might be issues. If you find any bugs or want to request a feature, please write to us at [email protected] with as much details as possible. Here is our mascot Ufu wearing a mask (if you are unable to see him here, head over to [our page](https://codedrills...
CodeDrills — A new online judge, 25th March, we launched our own online judge and also launched the CodeDrills covid 21 days challenge

Full text and comments »

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

168.
By Vladosiya, 5 years ago, translation, In English
Codeforces Round #762 (Div. 3) Hello! [contest:1619] will start at [contest_time:1619]. You will be offered 7-8 problems with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have a rating of 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ACM-ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of open hacks. You will be given 7-8 problems and 2 hours and 15 minutes to solve them. Note that the penalty for the wrong submission in this round (and the following Div. 3 rounds) is 10 minutes. Remember that only the trusted participants of the third division will be included in the official standings table. As it is written by link, this is a compulsory measure for combating unsporting behavior. To qualify as a trusted participant of the third division, you must: ...

Full text and comments »

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

169.
By Error_Yuan, history, 2 years ago, In English
How to Participate in Luogu Contests **UPD**: (From [user:MatrixGroup,2024-07-13]) To copy Markdown for discuss and articles, you can: For discuss, use the code: ``` console.log(_feInstance.currentData.post.content); ``` For articles, use: ``` console.log(JSON.parse(document.getElementById('lentille-context').innerText).data.article.content); ``` *** Luogu is a famous OJ (Online Judge) in China. Many users of Codeforces may know it, but don't know how to participate contests on Luogu. So I'm writing this blog to offer a brief tutorial. I suppose that you do not have a Luogu account, so let's start from registering. ### Step 1. Create An Account Enter the site: [link](https://www.luogu.com.cn/auth/register) Here is the English translation for this page. ![ ](https://cdn.luogu.com.cn/upload/image_hosting/z38wtrkv.png) You need to fill in: + username, + password (and confirm), + the secret code in the picture, + your email, (and click the "send verification code" button) + chec...
Luogu is a famous OJ (Online Judge) in China. Many users of Codeforces may know it, but don't know

Full text and comments »

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

170.
By den2204, history, 8 years ago, translation, In English
Codeforces Round #532 (Div. 2) Hi, Codeforces! At [contest_time:1100] will start [contest:1100]. Round will be rated for second division (rating below 2100). As usual, participants from the first division can participate in a contest out of competition. The round will consist of 6 problems and you will be given two hours to solve them. Task prepared by me, [user:den2204,2019-01-12]. Thanks [user:MikeMirzayanov,2019-01-12] for the platform Codeforces, [user:KAN,2019-01-12] for round coordination and help with preparation. Thanks [user:gritukan,2019-01-12], [user:Andreikkaa,2019-01-12], [user:flyrise,2019-01-12], [user:Um_nik,2019-01-12], [user:Aleks5d,2019-01-12] and [user:osaaateiasavtnl.,2019-01-12] for help with preparation and testing round, [user:arsor,2019-01-12] for translating statements into English, [user:arsijo,2019-01-12] for assistance in conducting the round. Thanks [user:Andreikkaa,2019-01-12] for the idea of the problem E. Good luck! P.S. It is my first round on Codeforces, please, ...
P.S. It is my first round on Codeforces, please, do not judge strictly :)

Full text and comments »

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

171.
By reirugan, 13 months ago, In English
Codeforces Round 1065 (Div. 3) <img src="https://c.tenor.com/G25fbL0QjmYAAAAd/tenor.gif" style="width: 400.0px;float: right;margin: 0 1.0em 1.0em 1.0em;max-width: 100.0%;max-height: 100.0%;"> Hello, Codeforces! ================== I am very excited to invite you to my second-ever contest, [contest:2171], which will start on [contest_time:2171]! In this contest, you will be given **2 hours and 30 minutes** to solve **7 problems, two of which have been split into subtasks**. The subtasks for a given problem are not necessarily placed adjacently in the problemset. The round will be hosted by the rules of educational rounds (extended ICPC). Thus, all solutions will be judged on preliminary tests during the round, and after the round, there will be a 12-hour phase of **open hacks**. After the open hack phase, all accepted solutions will be rejudged on successful hacks. Also, note that there is no score distribution &mdash; rank will be determined by number of problems solved, followed by penalty; wrong submissions...

Full text and comments »

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

172.
By Vladosiya, history, 3 years ago, translation, In English
Codeforces Round #903 (Div. 3) Hello! [contest:1881] will start at [contest_time:1881]. You will be offered 6-8 problems with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have a rating of 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of **open hacks**. You will be given **7 problems** and **2 hours and 15 minutes** to solve them. Note that the **penalty** for the wrong submission in this round is **10 minutes**. [Remember](https://codeforces.me/blog/entry/59228) that only the trusted participants of the third division will be included in the official standings table. As it is written by link, this is a compulsory measure for combating unsporting behavior. To qualify as a _trusted participant of the third...

Full text and comments »

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

173.
By MikeMirzayanov, history, 11 years ago, translation, In English
2015-2016 ACM-ICPC, NEERC, Southern Subregional Contest (Online Mirror, ACM-ICPC Rules, Teams Preferred) <img src="http://assets.codeforces.com/images/neerc-southern-2015-small.png?1" style="margin:0 1em 1em 1em; float:right;"/> <b>You may print PDF-statements: http://assets.codeforces.com/statements/589.pdf</b> Recently 2015-2016 ACM-ICPC, NEERC, Southern Subregional Contest has been finished. On behalf of jury and hosts I congratulate winners and advancers to the semifinals. Prize places are (horray!): * 1 place: Nizhny Novgorod State University #1 (Vladislav [user:vepifanov,2015-10-16] Epifanov, Nikolay [user:KAN,2015-10-16] Kalinin, Mikhail [user:mike_live,2015-10-16] Krivonosov) * 2 place: Innopolis University #1 (Evgeniy [user:savinov,2015-10-16] Savinov, Sergey [user:sokian,2015-10-16] Kiyan, Alexander [user:map,2015-10-16] Mashrabov) * 3 place: Saratov State University #1 (Edvard [user:homo_sapiens,2015-10-16] Davtyan, Vitaliy [user:kuviman,2015-10-16] Kudasov, Danil [user:dans,2015-10-16] Sagunov) On <a href="http://timeanddate.com/worldclock/fixedtime.html?day=17&...

Full text and comments »

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

174.
By tibinyte2006, 4 years ago, In English
CodeTON Round 3 (Div. 1 + Div. 2) Editorial [A — Indirect Sort](https://codeforces.me/contest/1750/problem/A) ===== Authors: [user:mejiamejia,2022-10-31], [user:Ecrade_,2022-11-06] <spoiler summary="Solution"> We claim that we can sort the array if and only if $a_1 = 1$. **Necessity** We can notice that index $1$ cannot be affected by any swap operation. Let's see what happens to the value $1$. According to the definition of the operation, it can either increase or be swapped. In order to be increased, there must exist some $k$ such that $1 > a_k$, but since $1$ is the minimum possible value, it will never be true as other values in array $a$ can only increse as well. Since index $1$ can not be affected by a swap operation and $a_1>1$, we conclude that if $a_1 \neq 1$, the answer is **No**. **Sufficiency** Let's focus on the second operation. Since we have $a_1 = 1$, we can always choose $i=1$ and the operation then turns into picking some pair $2 \le j < k \le n$ and swapping $a_j$ with $a_k$. It's t...
is complementary, so you must judge whether all $[a_i=b_i]$ are the same at the beginning. If they

Full text and comments »

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

175.
By -is-this-fft-, history, 6 years ago, In English
CodeChef virtual contests on Vjudge A week ago, I made [this](https://codeforces.me/blog/entry/90896) blog post. Earlier, I already wrote a small update to the blog, but I wanted to make a separate post to <s>get more contribution</s> properly announce what I did as well as to share my code. Thanks to vjudge's suggestion, there is now a way to participate in CodeChef Cook-Off contests virtually on vjudge. #### How to participate - Go to [the list](https://vjudge.net/contest#category=replay&running=0&title=CodeChef&owner=). - Open a contest by clicking on its name. - Click the "clone" button to create your own private copy of the contest. - Set the "begin time" to the time you'd like to start the contest, somewhere in the future. Keep reading if you want to know how it works. [cut] $~$ #### How it works The contests are so-called _replays_ -- they are generated from the final ranklists (complete with "time of AC" and penalty for every problem and contestant) of the contests. The contest data is downl...
Huge thanks for virtual judge for making this possible and to anyone who gave advice on the subject!

Full text and comments »

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

176.
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...
Interact with the judge using queries. Each query is of the form:, `l r` You choose two positive integers $l$ and $r$ $(1 \leq l \leq r \leq n)$.Thejudge will reply

Full text and comments »

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

177.
By awoo, history, 3 years ago, translation, In English
Codeforces Round 916 (Div. 3) Hello, Codeforces! On [contest_time:1914] the [contest:1914] will start. You will be offered 6-8 problems with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have a rating of 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ICPC). Thus, during the round, solutions will be judged on preliminary tests, and after the round it will be a 12-hour phase of open hacks. You will be given **2 hours and 15 minutes** to solve **6-8 problems**. The penalty for a wrong submission is equal to **10 minutes**. [We remind you](https://codeforces.me/blog/entry/59228) that only _the trusted participants of the third division_ will be included in the official standings table. As it is written on the blog which you can access by this link, this is a compulsory measure for combating unsporting behavior. To qualify as _a tru...

Full text and comments »

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

178.
By AmShZ, 5 weeks ago, In English
Repovive Premier Round 10 — Sponsored by Cognition | $2,550 in Prizes! Hello everyone! We are back with another Premier round! Get ready for **Repovive Premier Round 10**. We've prepared an outstanding problem set, ranging from easy to extremely challenging, featuring creative algorithmic ideas and clean, elegant solutions. This time, expect a **very difficult problem set, even by Premier standards**. And to make things even more exciting, we have **$2,550 in total prizes**, with **$1,850 from Cognition** and **$700 from Repovive**! ![ ](https://cdn.discordapp.com/attachments/661223549515857931/1565477019045855242/photo_2026-10-30_00-51-20.jpg?ex=6ae50b96&is=6ae3ba16&hm=973a172fb3ceb50e7cb073b8fcd495a78f892cb08d4f06b82e4216d47168e37b&) Premier rounds are currently the highest level among our contest series. We hope you enjoy the challenge! * Start Time: [Sunday, 1 November 2026, 14:35 (UTC)](https://www.timeanddate.com/worldclock/fixedtime.html?iso=20261101T1435&p1=1440&msg=Repovive+Premier+Round+10) * Duration: $2$ hours, $30$ minutes ...

Full text and comments »

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

179.
By racsosabe, 18 months ago, In English
IEEEXtreme 19.0 Call for Judges / Problem Authors ![ ](/predownloaded/a4/67/a4673e869e05bfeff7cee9d29ee8411ddd7406a1.jpg) Are you fascinated by programming? We, the IEEEXtreme 19.0 Executive Committee, are opening the registrations for a select few judges and problem authors. IEEEXtreme is a global challenge in which teams of IEEE student members compete in a 24-hour time span against each other to solve a set of programming problems authored by industry professionals and coding experts like yourself. Over the 19 years since it began, the competition has attracted over 70,000 competitors from over 2,500 schools in 90 countries around the world. This is an opportunity where you can not only develop the coding challenges but also you can evaluate them while having the opportunity to associate with some of the top experts in the field. The judging staff of IEEEXtreme are all volunteers who strive to make the contest a fun and exciting experience for all. Judges responsibilities may include one or more of the following: - D...

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

180.
By BledDest, history, 23 months ago, In English
Codeforces Round 995 (Div. 3) Hello, Codeforces! On [contest_time:2051] the [contest:2051] will start. The round will contain 7 problems, which are mostly suited for participants with rating below 1600 (or we hope so). Although, as usual, participants with rating of 1600 and greater can register for the round unofficially. Participants with rating below 1600 can also use unrated registration to participate unofficially. The round will be hosted by rules of educational rounds (extended ACM-ICPC). Thus, during the round, solutions will be judged on preliminary tests, and after the round it will be a 12-hour phase of open hacks (we hope that our tests are strong enough, so there won't be too many solutions hacked during this phase). You will have to solve **7 problems** in **2 hours and 15 minutes**. The penalty for a wrong submission is equal to **10 minutes**. [We remind you](https://codeforces.me/blog/entry/59228) that only _the trusted participants of the third division_ will be included in the offic...

Full text and comments »

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

181.
By rng_58, history, 11 years ago, In English
What do you do if you get WA? _One day you came up with a brilliant solution during a contest, implemented it very carefully, and submitted it confidently. The verdict was ...... WA._ Probably most of you have experienced this sad situation. You can start debugging if you know the reason of WA, but what do you do otherwise? I frequently have trouble with this situation, so I'd like to ask your opinion. What should we do when we get WA? Here are several possibilities: **1. Reread your code.** This is the simplest way of debugging. You may find some stupid typos. **2. Try various manual testcases.** Examples may not be very strong. Try some small tricky cases against your code. **3. Recheck the correctness of your algorithm.** Have you proved your solution? Is the proof correct? **4. Reread the statement.** You may have misunderstood the statement. Read it again to make sure that you understood the task correctly. **5. Stress-testing.** Write a straightforward solution, create lot...
**7. Doubt the judge.**

Full text and comments »

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

182.
By andr1y, 3 years ago, In English
Ukrainian Teams on EGOI and EJOI From 16th to 22th May, Ukrainian Selection Camp for the EJOI (European Junior Olympiad in Informatics) and EGOI (European Girls Olympiad in Informatics) was held in Wrocław, Poland. Thanks to University of Wrocław and [user:gawry,2024-05-21] for the second time for help in organising the selections! We are very grateful to Sergey Kolodyazhnyy for creating powerful online judge [Eolymp](https://eolymp.com). Also, I would like to thank [user:wasvlad,2020-05-21] for helping me in preparing problems. Maryna, Olena and Melissa [user:Melissa_14,2021-12-21] for looking after the participants and Federation of Olympic Programming of Ukraine presented by [user:arsijo,2024-05-21] for coordinating the entire process. So, on **EGOI** Ukrainian Team will be represented by: - Daria [user:perekopska.d,2023-05-08] Perekopska, 2 attempts left - Kseniia [user:ksu_,2024-05-21] Strelbytska, 2 attempts left - Yunna [user:YKheifets,2024-05-21] Kheifets, 0 attempts left - Viktoriia [user:l...
We are very grateful to Sergey Kolodyazhnyy for creating powerful online judge [Eolymp](https

Full text and comments »

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

183.
By dj3500, 9 years ago, In English
Helvetic Coding Contest 2018 online mirror **UPDATE: the editorial is [here](https://assets.codeforces.com/files/helvetic/helvetic-coding-contest-2018-editorial.pdf)** Hello CodeForces! This year again, I'd like to invite you to the online mirror of an open championship of Switzerland called HC2 (the Helvetic Coding Contest). A mirror was also held [last year](http://codeforces.me/contest/802) and [two years ago](http://codeforces.me/contest/690). ![ ](http://dj3500.webfactional.com/petr-meme.jpg) [The Helvetic Coding Contest](http://hc2.ch/) is a yearly contest held at [the EPFL](http://epfl.ch/) in Lausanne by the [PolyProg](http://polyprog.epfl.ch/) association. The contest itself took place on March the 17th, but the online mirror is scheduled on [**Saturday, 14th of April, 10:05 Moscow time**](https://www.timeanddate.com/worldclock/fixedtime.html?msg=Helvetic+Coding+Contest+2017+online+mirror&iso=20180414T0705&ah=4&am=30). The duration is 4:30. Rules: - you can participate in teams or individually (1-3 peo...

Full text and comments »

Tags hc2
  • Vote: I like it
  • +240
  • Vote: I do not like it

184.
By spycoderyt, 11 months ago, In English
Codeforces Round 1071 (Div. 3) Hello, Codeforces! ================== [user:iceborworntat,2025-12-19], [user:nortglg,2025-12-19], [user:omsincoconut,2025-12-19], and I are excited to invite everyone to [contest:2179], which will take place on [contest_time:2179]. You will be offered **8 problems**, and you will be given **2 hours and 30 minutes** to solve them. Please note that this contest contains **at least one interactive problem** and **at least one run-twice problem**. Please read the guides for [interactive problems](https://codeforces.me/blog/entry/45307) and [run-twice problems](https://codeforces.me/blog/entry/147996) before the contest if you are unfamiliar with them. The round will be hosted by the rules of educational rounds (extended ICPC). Thus, all solutions will be judged on preliminary tests during the round, and after the round, there will be a 12-hour phase of **open hacks**. After the open hack phase, all accepted solutions will be rejudged on successful hacks. Also, note that there i...

Full text and comments »

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

185.
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

186.
By wuhudsm, 5 weeks ago, In English
Codeforces Round 1131 (Div. 3) #**Trick or participate, Codeforces?** We are glad to invite you to our <a class="rated-user user-orange">Halloween</a> round, [contest:2278], which will start on [contest_time:2278]. The problems were authored by [user:wuhudsm,2026-10-27], and prepared by [user:wuhudsm,2026-10-27] and [user:wakanda-forever,2026-10-27] You will be given **7 problems** and **135 minutes** to solve. The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of **open hacks**. After open hacks all accepted solutions will be rejudged on successful hacks. Note that the **penalty** for each wrong submission in this round is **10 minutes**. Also, **note the [rule restricting AI use](https://codeforces.me/blog/entry/133941)!!!** If you are caught using AI in an unorthodox manner, bad things will happen to you. We will be watching you all... [Remember](https://...

Full text and comments »

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

187.
By Qingyu, 8 months ago, In English
Partial Scores in ICPC Contests The ICPC CLI Symposium during World Finals 2025 and the presentation during the NAC 2026 suggested the idea of bringing partial scoring problems to ICPC contests. Based on my understanding, the NAC judge team is announced to have a medium-level task with subtasks/partial scores included in NAQ 2026 / NAC 2027. <div class="row"> <img src="https://qoj.ac/files/Qingyu/scoring.jpg" style="height: 262.0px;max-width: 100.0%;max-height: 100.0%;"> <img src="https://qoj.ac/files/Qingyu/scoring2.jpg" style="height: 262.0px;max-width: 100.0%;max-height: 100.0%;"> </div> As a judge/chief judge for several Asia EC regionals over the past few years, I've been eager to introduce more innovative ideas in regional contests. However, I feel the idea may lead to some non-trivial changes regarding problem-setting and competition strategy. Over the past few days, we, along with many other judges, coaches, and contestants, had several discussions about this proposal. Since I have yet to see...
As a judge/chief judge for several Asia EC regionals over the past few years, I've been eager to

Full text and comments »

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

188.
By 74TrAkToR, history, 2 years ago, translation, In English
Codeforces Round 954 (Div. 3) Hello! [contest:1986] will start at [contest_time:1986]. You will be offered 7 problems with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have a rating of 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of **open hacks**. You will be given **7 problems** and **2 hours and 15 minutes** to solve them. Note that the **penalty** for the wrong submission in this round is **10 minutes**. [Remember](https://codeforces.me/blog/entry/59228) that only the trusted participants of the third division will be included in the official standings table. As it is written by link, this is a compulsory measure for combating unsporting behavior. To qualify as a _trusted participant of the third d...

Full text and comments »

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

189.
By adamant, history, 8 years ago, In English
The history of some recurring problem Hi everyone! This one will be long and contain a lot of off-topic, prepare yourself (or skip down to solution of mentioned problem)! ### Intro In this blog post I would like to talk about some problem that somehow was on my mind for several years and yet only now I have some more or less complete understanding of how to deal with it. The problem is as follows: _You're given string $S$ and $q$ queries. In each query you have to count amount of distinct substrings of $S[l,r]$._ [cut] <br><br> Since then and for a long time this one was probably the hardest string problem I could ever imagine. In particular I saw some partial cases of it on several judges, which supported my assumption that problem is particularly tough. Some notable examples: - [To Queue or not to Queue](https://www.codechef.com/problems/TMP01) on codechef by [user:Gerald,2018-08-24]. It is the same problem, but queries are formed as queue, i.e. you have to add letter to the right, delete letters from th...

Full text and comments »

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

190.
By Error_Yuan, history, 2 months ago, In English
KDOI Tournament 2026 — Advanced Round 1 Invitation **UPD: The correct date should be Oct/24.** This is the English translation of [Announcement](https://www.oicon.cn/blogs/8). KDOI Tournament 2026 is here in full force! The first programming contest in the KDOI Tournament 2026 series, [KDOI Tournament 2026 Advanced Round 1](https://www.oicon.cn/contests/5), will be held on October 24, 2026, from 09:00 to 13:00 (UTC +8). The contest will feature **4 problems**, each worth **100 points**, with a total duration of **4 hours**. It will follow the **traditional OI** contest format. **English statements will be provided.** This will also be the first rated contest on OICon OJ! Advanced Round 1 is open to participants with a rating below **2400**. Since this is the first contest on our online judge, however, everyone is eligible to participate. The staff involved in organizing this contest are: - Problem setters: [user:Error_Yuan,2026-10-07] and [user:sszcdjr,2026-10-07]; - Testers: [user:Anonyme,2026-10-07], [user:qhj09...

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

191.
By Vladosiya, history, 3 years ago, translation, In English
Codeforces Round #946 (Div. 3) Hello! [contest:1974] will start at [contest_time:1974]. You will be offered 6-8 problems with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have a rating of 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of **open hacks**. You will be given **7 problems** and **2 hours and 15 minutes** to solve them. Note that the **penalty** for the wrong submission in this round is **10 minutes**. [Remember](https://codeforces.me/blog/entry/59228) that only the trusted participants of the third division will be included in the official standings table. As it is written by link, this is a compulsory measure for combating unsporting behavior. To qualify as a _trusted participant of the third...

Full text and comments »

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

192.
By catgirl, 12 months ago, In English
I have solved problems on Codeforces for 500 days in a row It's been a while since I started my journey into competitive programming and in this year and (almost) a half I would say that I learned a bit not only about problem solving but also about myself, so I wanted to share my reflections on some mental aspects of practicing competitive programming hoping they can help someone else. Please note that these reflections are merely personal and mostly stem from personal experience, if you disagree with something I would like to know your point of view! I would also like to thank [user:Intellegent,2025-12-08], [user:turska,2025-12-08] and [user:LMeyling,2025-12-08] for proofreading. ![ ](/predownloaded/07/0b/070b72002cfad69b15bb24a5a086d9b8466bcb96.png) #### Some background I used to do math olympiads for 8 years before starting university, in hindsight I did not really like it that much since I never practiced on my own and would've rather played League of Legends / Minecraft / VALORANT or whatever game I was obsessed at the time. ...
thing that differentiates programming problems to math problems is that an onlinejudge can

Full text and comments »

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

193.
By Radewoosh, 6 months ago, In English
About Codeforces rules, conventions and assumptions I don't feel like my attention-seeking senses are fulfilled with just comments, so I think it makes more sense to write a blog about it. Codeforces has evolved over the years and I think it might be a good move to talk about some relicts of the past that are still there, or even possibly do something about them. I'd like to note, that it's possible that there've been some blogs about this topic from the admins and I've missed them and lack information because of that. In this case, please pardon me. After the first two Spectral::Cup rounds I've commented on things that in my opinion are somehow harmful. The first comment was [this](https://codeforces.me/blog/entry/153179?#comment-1361697) one. It was mostly about the solution being judged twice on the same tests. I'm not much against it, as it seems to be well defined in theory: you have to pass both times to get AC (where the second time it might include extra tests), which is fine &mdash; not perfect, but ok, rules are rules. ...

Full text and comments »

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

194.
By RDDCCD, history, 4 years ago, In English
Editorial of CodeTON Round 4 (Div. 1 + Div. 2, Rated, Prizes!) [A. Beautiful Sequence](https://codeforces.me/contest/1810/problem/A) <spoiler summary="Hint"> What is the necessary and sufficient condition? </spoiler> <spoiler summary="Tutorial"> The necessary and sufficient condition for a beautiful sequence is that there exist one $i$, such that $a_{i} \le i$. Just check the sequence for the condition. </spoiler> <spoiler summary="Solution"> ~~~~~ #include<bits/stdc++.h> using namespace std; int a[100005]; void solve() { int n; scanf("%d",&n); for(int i =1;i <= n;i++) scanf("%d",&a[i]); for(int i = 1;i <= n;i++) { if(a[i] <= i) { puts("YES"); return; } } puts("NO"); } int main() { int t;scanf("%d",&t); while(t--) solve(); } ~~~~~ </spoiler> [B. Candies](https://codeforces.me/contest/1810/problem/B) <spoiler summary="Hint"> How the binary representation changes after an operation? </spoiler> <spoiler summary="Tutorial"...
$. Still, special judge for $L \le a$, where $n=1$ in this case.

Full text and comments »

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

195.
By AlexLuchianov, 5 years ago, In English
How NOT to use macros *"I used to be a competitive programmer like you, but then I took a macro to the knee."* First I want to say that I recognize the fact that not all macros are bad, there are even some ingenious macros that are really useful such as the `all(x)` macro from the post [C++ tips and tricks](https://codeforces.me/blog/entry/74684) by [user:Golovanov399,2022-03-16] . Another useful macro is `NDEBUG`. This macro is used to disable all assertion checks inside the code. It can be used like this: ~~~~~ #define NDEBUG #include <cassert> ~~~~~ Note that `NDEBUG` has to be defined before including `cassert` to have an effect. Other useful macros are the debug macros, a little more information about them can be found in the following blog, [Compilation and debugging tutorial](https://codeforces.me/blog/entry/79024) by [user:ramchandra,2022-03-16]. However, for every one such great macro there exist another countless macros that are, let's just say, not that great. Here are some reaso...
time negatively if the judge is using a 32-bit system.

Full text and comments »

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

196.
By MikeMirzayanov, 12 years ago, translation, In English
10 Reasons to Prepare Problems in Polygon <img src="http://assets.codeforces.com/images/poly21.jpg" style="float:right;margin:0 0.5em 1em 1em;"/> Hello Codeforces. Just a reminder about something most of you know. Polygon is a service to prepares programming problems and contests. It is usually used to prepare problems for olympiads/programming contests but it is also often used to prepare educational content. It is located at https://polygon.codeforces.com/ and is open to everybody. I have recently found out that it's been more than five years since the creation of Polygon. It's high time to summarize the experience we've accumulated. I first publicly spoke about Polygon in a narrow circle of Russian teams' coaches on ACM-ICPC World Finals in 2009. I cannot say that everybody was enthusiastic about the innovation. Some people were openly skeptical about such system's viability and relevance. After 5 years on the ACM-ICPC finals in Ekaterinburg Oleg Hhristenko ([user:snarknews,2014-11-03]) said that in his o...

Full text and comments »

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

197.
By Aris, history, 4 years ago, translation, In English
Codeforces Round #820 (Div. 3) Hello! [contest:1729] will start at [contest_time:1729]. You will be offered 6-8 problems with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have a rating of 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of **open hacks**. You will be given **6-8 problems** and **2 hours and 15 minutes** to solve them. One of the problems in this round is **interactive**. Don't forget to read the [guide on interactive problems](https://codeforces.me/blog/entry/45307). Note that the **penalty** for the wrong submission in this round is **10 minutes**. [Remember](https://codeforces.me/blog/entry/59228) that only the trusted participants of the third division will be included in the official s...

Full text and comments »

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

198.
By paxaq, history, 13 months ago, In English
[Project Update] Proof-based Competitive Math Online Judge **UPDATE:** (See the original project announcement below) It took some time but the proof of concept is now online (hooray!): [https://leanoj.org/](https://leanoj.org/). You can register and give some of the problems a try. As an example, here is a solution to problem C: <spoiler summary=""> ~~~~~ import Mathlib.Algebra.Ring.Parity theorem solution (k : ℕ) (hk : Even k) : 2 ∣ 3 ^ k + 1 ∧ ¬ 4 ∣ 3 ^ k + 12 := by rw [even_iff_exists_two_mul] at hk obtain ⟨n, rfl⟩ := hk constructor · simp [Nat.dvd_iff_mod_eq_zero, Nat.add_mod, Nat.pow_mod] · simp [Nat.dvd_iff_mod_eq_zero, Nat.add_mod, pow_mul, Nat.pow_mod] ~~~~~ </spoiler> There are many high-quality resources on different aspects of Lean you can find [here](https://lean-lang.org/learn/). The first few chapters of [Mathematics in Lean](https://leanprover-community.github.io/mathematics_in_lean/) should be enough to get started. I am also planning to make tutorials on Lean specifically for competitive math. If...
[Project Update] Proof-based Competitive Math Online Judge, communities. For now, I am planning to build an online judge using Mathlib ignoring previously, math platform) AND support _automated_ submission checking (since it is an onlinejudge). While there

Full text and comments »

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

199.
By kpw29, 5 years ago, In English
[ICPC blog series #0] My last ACM experience Disclaimer ================== This isn't really a first tutorial in the series. If you are interested in reading what participating in ICPC World Finals feels like, you can enjoy my <s>pathetic</s> behind-the-scenes story of the Cambridge silver-medal performance in WF2020. I tried to write a spoiler--free blog so that it contains minimum information about the problems. Motivation ================== In 2016 I have written a blogpost [My first ACM experience](https://codeforces.me/blog/entry/48082). It made sense to me to also close some chapter of the book by writing up about how my last serious contest went. I advise not to take the blog too seriously, it is just an honest stream of consciousness (some facts may not even be 100% accurate, though I will fix things people point me). Feel free to comment, praise, <s>or hate</s>. For a different perspective, check out [user:IBaloff,2021-10-07]'s [blog](https://codeforces.cc/blog/entry/95526). The hero and heroine of the story o...

Full text and comments »

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

200.
By Qingyu, 7 months ago, In English
CCPC Finals 2025 and Grand Prix of Nanyang Hey Codeforces! I'm exicited to invite you to The 4th Universal Cup, Stage 23, the Grand Prix of Nanyang, taking place on May 2nd, 2026. The contest is based on the Finals of the CCPC (China Collegiate Programming Contest), which was held on April 26, 2026. This is my fourth time create the problem-set and serve as a judge for the CCPC Finals. This contest is prepared by [user:EvenImage,2026-04-29], [user:Qingyu,2026-04-29], [user:RDDCCD,2026-04-29], and [user:Kevin114514,2026-04-29], with the help of our outstanding judge team [user:Gellyfish,2026-04-29], [user:zhoukangyang,2026-04-29], [user:ODT,2026-04-29], [user:Coffee_zzz,2026-04-29], [user:unputdownable,2026-04-29]. Although the style of problems differs a bit, the difficulty of this problem set is close to the last (the 2nd) [Universal Cup Finals](https://finals.ucup.ac). We believe the problems will be engaging for all Div. 1 participants, while still providing a challenge for the strongest teams. <spoiler summary=...
held on April 26, 2026. This is my fourth time create the problem-set and serve as ajudge for the, ,2026-04-29], and [user:Kevin114514,2026-04-29], with the help of our outstandingjudge team

Full text and comments »

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

201.
By feecIe6418, history, 20 months ago, In English
InfOJ April Fools Day Contest 2025 (On April 5th) Hello Codeforces! I am glad to invite you to [InfOJ April Fools Day Contest 2025](http://119.27.163.117/contest/28) (IAFDC for short) which will start on [April 5th 2025, 19:00 UTC+8](https://www.timeanddate.com/worldclock/fixedtime.html?day=5&month=4&year=2025&hour=19&min=00&sec=0&p1=33). The problem setters are me and [user:gyh20,2025-03-22]. This is not a joke: the contest will really be held! The contest will last for 2.5 hours with 10 tasks for you to solve. All problems are worth 100 points, and the contest will be in IOI mode with standings. You can see the past problems [here](http://119.27.163.117/contests). ## Why is April Fool's Contest not on April Fools Day? From the year 2023, the contest has always been held on April 5th, to match the Tomb Sweeping Day's break in Chinese schools. ## Language of Problem Statements We will provide English statements for all problems. However, in the past several years, only Chinese statements are available. If you wan...

Full text and comments »

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

202.
By qwexd, 4 years ago, In English
Hacking [GUIDE] _I've seen quite a lot of people asking about hacking but I couldn't find any guide in codeforces so I decided to make this blog._ --- ### **What is Hacking?** $\ $ In a codeforces round, test cases might not be enough to judge your code. It's very normal since we can't expect setters to consider every single wrong solution to add new test cases. In other words, if your code gets Accepted during the contest, this doesn't mean your submission is necessarily correct. To avoid incorrect solutions that get Accepted due to the lack of enough test cases to judge during the round we use Hacking. $\ $ There are two types of Hacking, one of them is after the contest and the other is during the contest; but the general idea of hack is providing a test case where you think someone's solution fails. The judge checks this specific test case you provided and determine if the solution actually fails. (Comparing outputs with actually working pre-made jury code to check if i...
$\ $ In a codeforces round, test cases might not be enough to judge your code. It's very normal

Full text and comments »

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

203.
By adamant, 5 months ago, In English
OCPC 2026 Summer Hi everyone! <center><a href="https://ocpc.camp"><img src="https://ocpc.camp/images/ocpc_light.svg?nocache" height="80px"></a> <a href="https://icpc.foundation/"><img src="https://ocpc.camp/images/ICPC.svg?nocache" height="80px"></a></center> The [OCPC](https://ocpc.camp/) (Osijek Competitive Programming Camp), an [award-winning](https://www.linkedin.com/feed/update/urn:li:activity:7368330111089131522/) camp for university students preparing for ICPC and other coding competitions, is back this **Summer 2026** — this time with **two onsite editions**: - **Hong Kong** — **8–16 August 2026**, hosted at the City University of Hong Kong. - **Iași, Romania** — **12–20 September 2026**, hosted at Alexandru Ioan Cuza University of Iași. Both editions are organized by us together with local hosts at each site, and use the **same contest set** — so you take part in **one** of them. As a rough guide, the **Iași** edition is most convenient for teams based in Europe, and **Hong Kong*...
online judge for the contests; - City University of Hong Kong and Alexandru Ioan Cuza University

Full text and comments »

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

204.
By Dragmon, 17 months ago, In English
Anyone can set problems, and so can You So yeah, hey guys. I'm [user:aryansanghi,2025-06-22], the "cyan author", the "trash problemsetter", the "author of [contest:2120]". So, you might be wondering, who am I to suggest anything to you? Well, I don't know, you clicked on the blog. I have made sections, you can just skip to what you want to read. Brief History of Me ================== First of all, I'll give a brief history of myself, because why not? You might not be expecting it, but problem-setting is my passion. I've been setting problems on Physics and Maths during my JEE time. If you are interested, you can find them [here in drive](https://drive.google.com/drive/folders/1UT9cvcx1KMmjFDHNEb5EFwuwT7i49BIg?usp=drive_link). I had ~100 more in [brilliant.org](brilliant.org), but sadly, the community feature was disabled around July 2021. If you are interested, I can get it exported and share it with you. After coming to IIT Kharagpur, I joined CodeClub and set some problems in the unrated CodeNite that we conduct hal...
going as shallow to just judge a person by one incident, which I’m not sure is true and neither do I

Full text and comments »

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

205.
By waipoli, history, 3 years ago, In English
Ukrainian Teams on IOI and BOI From 10th to 16th May, Ukrainian Selection Camp for the IOI (International Olympiad in Informatics), BOI (Balkan Olympiad in Informatics) was held in Wrocław, Poland. Thanks to University of Wrocław and [user:gawry,2024-05-21] for the second time for help in organising the selections! We are very grateful to Sergey Kolodyazhnyy for creating powerful online judge [Eolymp](https://eolymp.com/en). Also, I would like to thank [user:oleh1421,2024-05-21] and [user:kostia244,2024-05-21] for preparing amazing problems. Maryna, Ilona and [user:Melissa_14,2021-12-21] for looking after the participants and Federation of Olympic Programming of Ukraine presented by [user:arsijo,2024-05-21] for coordinating the entire process. So, on **IOI** Ukrainian Team will be represented by: - Andrii Smutchak([user:xGaz_,2024-05-19]) — 2nd time at IOI(IOI 23 Silver), 0 attempts left - Ihnat Zharikhin([user:Ignut,2023-11-08]) — 1st time at IOI, 0 attempts left - Denys Tereshchenko([user:TheQuant...
We are very grateful to Sergey Kolodyazhnyy for creating powerful online judge [Eolymp](https

Full text and comments »

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

206.
By adamant, history, 19 months ago, In English
OCPC 2025 Summer Hi everyone! <center><a href="https://ocpc.camp"><img src="https://ocpc.camp/images/ocpc_light.svg" height="100px"></a> <a href="https://icpc.foundation/"><img src="/predownloaded/43/08/43086529a28ccb5c9f2f2eec560ffa85e09c6881.svg" height="100px"></a></center> <center> <b>Supported by</b><br> <a href="https://www.janestreet.com/join-jane-street/open-roles/?type=students-and-new-grads&location=london"> <img src="/predownloaded/ee/f2/eef26616a3661c658d1545f18ed21fabb14d5871.svg" height="60px" style="margin: 10px 10px 10px 10px;"></a> <a href="https://pinely.com/"> <img src="/predownloaded/0a/0f/0a0f3f67435d1f6e467bc7203d4a2090ba8f92cc.svg" height="60px" style="margin: 10px 10px 10px 10px;"></a> </center> ... And a happy May day! We are very happy to announce that OCPC (formerly, the _Osijek Competitive Programming Camp_) is back this Summer, on **June 21-29, 2025**! While the dates are pretty tight, they appear to be the ones that are most suitable (among all the summ...
) for providing an online judge for the contests; - [Faculty of Mathematics and Computer Science of

Full text and comments »

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

207.
By yse, 18 months ago, In English
Codeforces Round 1029 (Div. 3) أهلاً, Codeforces! ---------------------- [user:cry,2025-06-04], [user:Intellegent,2025-06-04], and I are really excited to invite you to participate in [contest:2117], which will take place on [contest_time:2117]. You will be given $2$ hours and $15$ minutes to solve $8$ problems. The round will be hosted by rules of educational rounds (extended ICPC). Thus, all solutions will be judged on preliminary tests during the round, and after the round, there will be a 12-hour phase of **open hacks**. After the open hack phase, all accepted solutions will be rejudged on successful hacks. Also, note that there is no score distribution but the usual penalty of **10 minutes** for each wrong submission, following the rules of educational rounds. Note that the penalty for each wrong submission in this round is **10 minutes**. Also, **note the rule [restricting AI use](https://codeforces.me/blog/entry/133941)**. If you are caught using AI in an unorthodox manner, you will be sent to [use...

Full text and comments »

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

208.
By rulerofcakes, history, 21 month(s) ago, In English
My honest journey to Master in 4 years Hi all, this is my first blog on codeforces. I've just reached Master(+2100) after spending about 4 years on codeforces, and I'd like to talk about what I like and regret about my past decisions regarding practicing for this milestone. I know plenty of GM+s have written such blogs, but I think many of you(like my past self) may find these unrelatable simply because of how good they were from the beginning / how much time they have spent / etc, so I decided to write one of my own humble version. Hopefully some of you may find this helpful for your own journey. I honestly think it's possible to reach Master level proficiency in around 2 years, even if you're starting from scratch, assuming you practice hard enough with the right materials. This is based on my own experience. I say proficiency and not reaching the rating itself because I think having high codeforces rating may become even more meaningless in the near future with LLMs. ### The Beginning Like many of you all, I'm j...
korean online judge website, called Baekjoon Online Judge(BOJ). It is a phenomenal onlinejudge with

Full text and comments »

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

209.
By soullless, history, 20 months ago, translation, In English
Mass cheating using AI My friend [user:away_in_the_heavens,2025-03-29] sent me a screenshot that left me completely shocked. I have never seen anything like this on the platform before: ![ ](https://ltdfoto.ru/images/2025/03/29/asdasdasd.jpg) The image shows the standings of today’s round. For comparison, here's what standings typically looked like across 100 previous contests: ![ ](https://ltdfoto.ru/images/2025/03/29/tgtgtt.png) Of course, incidents of unfair play have happened before. However, judging by today’s round, the number of cheaters has increased **tenfold, if not a hundredfold**. And the reason is clear — the appearance of tools like ChatGPT o1 or ChatGPT mini-high-3, which are apparently capable of solving problems up to ~3000 rating in just a few minutes. As a result, the round turns into a minigame for cheaters: who can type faster or debug ChatGPT's solution more efficiently. In my opinion, the current state of affairs calls for action. Perhaps it's time to reconside...

Full text and comments »

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

210.
By errorgorn, 5 years ago, In English
Catalan Numbers and Generating Uniform Balanced Bracket Sequences Hi everyone! Today [user:nor,2022-05-27] sir and I would like to talk about generating uniform bracket sequences. Over the past few years when preparing test cases, I have had to generate a uniform bracket sequence a few times. Unfortunately I could not figure out how, so I would like to write a blog about this now. Hopefully this blog would be useful to future problem setters :) Scroll down to the end of the blog to copy our generators. First, let's define some things. A bracket sequence is a string with $n$ $\texttt{(}$ s and $n$ $\texttt{)}$ s. A **balanced** brackets sequence is a bracket sequence with the additional constraint that it becomes a valid arithmetic expression when we add some $\texttt{1}$ s and $\texttt{+}$ s. Let $p$ be the prefix sum array of a bracket sequence (we assign $1$ to $\texttt{(}$ and $-1$ to $\texttt{)}$ and take the prefix sum). For example, if our bracket sequence is $\texttt{())()((())}$, then $p=[1,0,-1,0,-1,0,1,2,1,0]$. An alternate way to thi...

Full text and comments »

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

211.
By adamant, history, 5 days ago, In English
OCPC 2027 Winter Europe <img align="right" height="120px" src="https://ocpc.camp/images/stickers/welcome-excited.png" alt="OCPC mascot waving hello"> Hi everyone! <center><a href="https://ocpc.camp/2027w/osijek/"><img src="https://ocpc.camp/images/ocpc_light.svg" height="80px" alt="OCPC"></a> <a href="https://icpc.foundation/"><img src="https://ocpc.camp/images/ICPC.svg" height="80px" alt="ICPC"></a></center> <center><b>Supported by</b></center> <center><a href="https://www.janestreet.com/"><img src="https://ocpc.camp/images/Jane%20Street.svg" height="48px" alt="Jane Street"></a> &nbsp; <a href="https://pinely.com/"><img src="https://ocpc.camp/images/Pinely.svg" height="56px" alt="Pinely"></a> &nbsp; <a href="https://www.mathos.unios.hr/"><img src="https://ocpc.camp/images/mathos.svg" height="48px" alt="University of Osijek"></a></center> We're happy to invite you back to **[OCPC 2027 Winter in Osijek](https://ocpc.camp/2027w/osijek/)**! This winter we'll meet at the **University of Osijek, Cro...

Full text and comments »

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

212.
By ko_osaga, history, 4 years ago, In English
[Tutorial] On Range LIS Queries, Part 2 ## Previous article * [On Range LIS Queries. Part 1](https://codeforces.me/blog/entry/111625) ## Chapter 4. Fast algorithm for $\boxdot$ operator We stopped at the point where we learned how to: * Implement the $\boxdot$ operator in $O(N^3)$ time * Use the $\boxdot$ operator for $O(N^2)$ time I actually didn't introduce the name to avoid unnecessary scare, but the [original paper](https://arxiv.org/abs/0707.3619) calls this operator as *unit-Monge matrix-matrix distance multiplication*. Throughout the article, we will call it as the **unit-Monge multiplication (of permutation)** or just $\boxdot$ operator as we did before. Let's see how to compute the $\boxdot$ operator in $O(N \log N)$ time. For a matrix $\Sigma(A), \Sigma(B)$ consider the partitioning $\Sigma(A) = [\Sigma(A)_{lo}, \Sigma(A)_{hi}], \Sigma(B) = \begin{bmatrix} \Sigma(B)_{lo} \newline \Sigma(B)_{hi} \end{bmatrix}$, where $lo$ denotes the first $N/2 + 1$ entries, and $hi$ denotes last $N/2$ entries. We ...
## Practice problems * [LibreOJ. 单位蒙日矩阵乘法](https://loj.ac/p/184) * [Yosupo Judge . Static Range

Full text and comments »

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

213.
By adamant, 12 years ago, translation, In English
Алгоритм Ахо-Корасик. Построение Всем привет! В этот раз я хотел бы написать про алгоритм Ахо-Корасик. Структура эта очень хорошо описана и многие о ней уже, должно быть, знают. Однако, я всё же постараюсь описать некоторые применения, которые не столь известны. [cut]<br> Для начала о самой структуре. Данный алгоритм был предложен Альфредом Ахо и Маргарет Корасик. Изначальное его предназначение &mdash; оптимальный поиск строк из какого-то набора в тексте. Т. е., допустим нам даны строки ${"a", "abba", "acb"}$ и дан текст, скажем, $"abacabba"$. С помощью Ахо-Корасик мы сможем для каждой строки из набора сказать, входит ли она в текст и, например, указать первое вхождение в строку за время $\mathit O(|T|+|S|)$, где $|T|$ &mdash; суммарная длина текста, а $|S|$ &mdash; суммарная длина шаблонов. Но на самом деле это капля в море по сравнению с тем, что позволяет делать этот алгоритм. Чтобы понять, как все это следует делать &mdash; обратимся к префикс-функции и алгоритму КМП. Напомню, префикс-функцией называет...
. [MIPT El Judge — Вопль](http://acm.mipt.ru/judge/problems.pl?problem=014) 3. [SPOJ — Morse, =1158) 2. [MIPT El Judge 014 — War-cry](http://acm.mipt.ru/judge /problems.pl?problem=014) 3

Full text and comments »

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

214.
By Vladosiya, history, 2 years ago, translation, In English
Codeforces Round 966 (Div. 3) Hello! [contest:2000] will start at [contest_time:2000]. You will be offered 6-8 problems with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have a rating of 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of **open hacks**. After open hacks all accepted solutions will be rejudged on successful hacks. You will be given **6-8 problems** and **2 hours and 15 minutes** to solve them. Note that the **penalty** for the wrong submission in this round is **10 minutes**. [Remember](https://codeforces.me/blog/entry/59228) that only the trusted participants of the third division will be included in the official standings table. As it is written by link, this is a compulsory measure for ...

Full text and comments »

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

215.
By Proof_by_QED, 23 months ago, In English
Codeforces Round 998 (Div. 3) Hellowo Codeforces o7 ====================================== <div style="float:right; margin:0 1em 1em 1em; text-align:center;"> <img src="/predownloaded/04/74/0474addd27ccbb4c93f5c8390645861706d295de.png" style="width:400px;"/> </div> [user:cry,2025-01-12], [user:larush,2025-01-12], [user:chromate00,2025-01-12], [user:LMeyling,2025-01-12], [user:Lilypad,2025-01-12], and I are [ebullient](https://www.merriam-webster.com/dictionary/ebullient) to welcome you to participate in [contest:2060] at [contest_time:2060]. We have cooked up $7$ problems to be solved in $2$ hours and $30$ minutes. The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of **open hacks**. After open hacks all accepted solutions will be rejudged on successful hacks. Note that the **penalty** for each wrong submission in this round is **10 minutes**. Also, **not...

Full text and comments »

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

216.
By ko_osaga, history, 9 years ago, In English
Checklist for OI problems **Update 2018.11.01**: [user:Rezwan.Arefin01,2018-11-01] made a very cool webapp which contains identical problemset, but with more usability. Thank you very much! [You can check it here.](http://codeforces.me/blog/entry/62898#comment-468763) **Note: There was some updates in 2018.10.05.** See [here](https://codeforces.me/blog/entry/59422?#comment-462081) for changes! Hello! APIO 2018 is near the end, and IOI 2018 is in this September. I hope you are preparing it well! I'm here to present my OI problem checklist : ![scale=0.6](https://i.imgur.com/K25OVF6r.png) I used this to train myself in IOI 2015~2016, and to train Korean IOI 2017 Team (probably 2018 too). For long it was in the "beta" phase, but I think it's now good enough to share! This problemset contains about 300 ~ 400 hard and interesting problems, with appropriate judge links given. (If there is problem in judging, maybe [user:ojuz,2018-05-12] can help that..) [Google Docs Link](https://docs.goog...
This problemset contains about 300 ~ 400 hard and interesting problems, with appropriatejudge

Full text and comments »

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

217.
By Vladosiya, history, 4 years ago, translation, In English
Codeforces Round #874 (Div. 3) Hello! [contest:1833] will start at [contest_time:1833]. You will be offered 6-8 problems with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have a rating of 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of **open hacks**. You will be given **6-8 problems** and **2 hours and 15 minutes** to solve them. Note that the **penalty** for the wrong submission in this round is **10 minutes**. [Remember](https://codeforces.me/blog/entry/59228) that only the trusted participants of the third division will be included in the official standings table. As it is written by link, this is a compulsory measure for combating unsporting behavior. To qualify as a _trusted participant of the thi...

Full text and comments »

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

218.
By TooNewbie, 9 years ago, In English
[Tutorial] Invariants and Monovariants Hello Codeforces! Some months ago I wrote tutorial about [basics of recurrent sequences](http://codeforces.me/blog/entry/54154). This blog, my second tutorial is about mine another favorite topic &mdash; Invariants and Monovariants. These are useful concepts which will help you solving problems, especially, constructive ones. Even if you are not familiar with this topics, I'm sure that you solved problems with use of invariants and monovariants without knowing it, continue reading, you will understand my point :) There will be hard problems which are based on old IMO problems, so I will try my best to explain solutions of examples. So, what are Invariants and Monovariants? An invariant is a quantity that doesn't change. A monovariant is a quantity that changes monotically (that is, non-decreasing or non-increasing). Seems simple, yes? Let's start with a few easy examples which you will better understand its point. I suggest you to try solving problems by your own before reading ...
**Remark:** Did you see that problem on any judge before? If yes, please write it in comments

Full text and comments »

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

219.
By BledDest, 2 years ago, In English
2024-2025 ICPC, NERC, Southern and Volga Russian Regional Contest [Online Mirror, ICPC Rules] **Note that initially this contest was scheduled on a different day. Due to technical difficulties, we had to postpone the online mirror. We are sorry about that; if you planned to participate, but are no longer able because the contest day has changed, you can use the virtual participation option.** Hello Codeforces! The Southern and Volga Russian Regional Contest was held in Saratov State University yesterday, on 12th of November. This contest was used to qualify the teams from Southern Russia and Volga region to the Northern Eurasia Finals. On [contest_time:2038], we will conduct the online mirror of this contest. It will last for 5 hours and is best suited for **teams of three people**, although it is not forbidden to participate in teams of smaller/larger size. The mirror will use ICPC rules, the same as the offline contest. The contest was prepared by [user:adedalic,2024-11-13], [user:awoo,2024-11-13], [user:dmitryme,2024-11-13], [user:elena,2024-11-13], [user:Neon,20...
As the chief judge of the contest, I hope you enjoy the problems!

Full text and comments »

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

220.
By himanshujaju, history, 11 years ago, In English
0-1 BFS [Tutorial] [Link To PDF version (Latex Formatted)](https://www.dropbox.com/s/sgzwlmsmx5rrrug/0-1%20BFS.pdf?dl=0) **Topic :** 0-1 BFS **Pre Requisites :** Basics of Graph Theory , BFS , Shortest Path **Problem :** You have a **graph G** with **V vertices** and **E edges**. The graph is a weighted graph but the weights have a contraint that they can only be 0 or 1. Write an efficient code to calculate shortest path from a given source. **Solution :** **Naive Solution &mdash; Dijkstra's Algorithm.** This has a complexity of O(E + VlogV) in its best implementation. You might try heuristics , but the worst case remains the same. At this point you maybe thinking about how you could optimise Dijkstra or why do I write such an efficient algorithm as the naive solution? Ok , so firstly the efficient solution isn't an optimisation of Dijkstra. Secondly , this is provided as the naive solution because almost everyone would code this up the first time they see such a question , assuming ...

Full text and comments »

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

221.
By Qingyu, 3 years ago, In English
The 2nd Universal Cup. Stage 11: Nanjing Hello! I'm happy to announce The 2nd Universal Cup. Stage 11: Nanjing, which will be held on November 25th, 2023. This contest is an official ICPC Regional Contest &mdash; The 2023 ICPC Asia Nanjing Regional Contest. The contest is prepared by the [SUA Programming Contest Problem Setter Team](https://sua.ac/), which was the fourth time for us to prepare the Nanjing Regional Contest. Due to the covid pandemic, the previous three Nanjing regionals were held online. As the pandemic has come to an end, we can finally gather in NUAA to participate in this wonderful contest. <div class="row"> <img src="/predownloaded/5c/18/5c188f4d780927880fd5d129119baea901acaabf.jpeg" style="height: 262.0px;max-width: 100.0%;max-height: 100.0%;"> <img src="/predownloaded/3e/09/3e095e729a6804b2a0bf171a7b06551f25c82368.jpg" style="height: 262.0px;max-width: 100.0%;max-height: 100.0%;"> </div> <div class="row"> <img src="/predownloaded/54/2f/542f1b72c1b4d6225be048a9ad31aac153ce7ad5.jpg" style...
This is also my first time as a chief judge in an ICPC regional contest. Great thanks to the host

Full text and comments »

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

222.
By vovuh, history, 7 years ago, translation, In English
Codeforces Round #636 (Div. 3) &lt;almost-copy-pasted-part&gt; Hello! [contest:1343] will start at [contest_time:1343]. You will be offered 6 or 7 problems (or 8) with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have rating 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ACM-ICPC). Thus, during the round, solutions will be judged on preliminary tests, and after the round it will be a 12-hour phase of open hacks. I tried to make strong tests &mdash; just like you will be upset if many solutions fail after the contest is over. You will be given 6 or 7 (or 8) problems and 2 hours to solve them. Note that **the penalty** for the wrong submission in this round (and the following Div. 3 rounds) is **10 minutes**. [Remember] (/blog/entry/59228) that only the <i>trusted participants of the third division</i> will be included in the ...

Full text and comments »

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

223.
By Errichto, 11 years ago, In English
Codeforces Round #318 [RussianCodeCup Thanks-Round] Hello Codeforces community! Codeforces Round #318 (for both divisions) will take place on [August, 29 at 19:30 MSK](http://www.timeanddate.com/worldclock/fixedtime.html?day=29&month=8&year=2015&hour=19&min=30&sec=0&p1=166). It is the Thanks-Round devoted to Russian Code Cup. You will be given 5 problems and 2 hours to solve them. Scoring will be announced close to the round. I strongly recommend you to read all problems. ![ ](http://codeforces.me/predownloaded/97/f0/97f0ed2e07a03e20ded192532c533b620734da64.jpg) <a href="http://www.russiancodecup.ru/">RussianCodeCup</a> is the largest open programming competiton for Russian-speaking participants by Mail.Ru Group. Its history started in 2011. And since the first championship RCC offers great problems and generous prizes. This year finals will be held on September, 19th. Wish good luck to all the finalists! Thank you, RussianCodeCup, for your gift on the 5th anniversary of Codeforces! I am honoured to be a problem setter ...
and diverse problemset, you will judge it. In all problems you will have to help Limak who is quite

Full text and comments »

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

224.
By Pajaraja, history, 17 months ago, In English
Olympicode Open Olympiad Hello everyone! We'd like to announce an olympiad style contest that will be held on our new Olympicode Judge &mdash; the Olympicode Open Olympiad! **What is the difficulty level and format of the contest?** The contest is envisioned as a warm-up for the IOI and similar international olympiads. So, it will be two days with 3 IOI-style tasks and the contest will be 5h. It will probably, on average, easier than the IOI, but it should still be fun for OI-level participants. **When is the contest?** The first day will be on [Saturday, July 5 2025 at 09:30 UTC](https://www.timeanddate.com/worldclock/fixedtime.html?msg=Olympicode+Open+Olympiad+Day+1&iso=20250705T0930&p1=1440&ah=5), while the second day will be on [Sunday, July 6 2025 at 09:30 UTC](https://www.timeanddate.com/worldclock/fixedtime.html?msg=Olympicode+Open+Olympiad+Day+2&iso=20250706T0930&p1=1440&ah=5). **Which programming languanges are allowed?** The only supported languages will be C++ and Python. **...
We'd like to announce an olympiad style contest that will be held on our new OlympicodeJudge

Full text and comments »

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

225.
By Supermagzzz, history, 6 years ago, translation, In English
Codeforces Round #690 (Div. 3) Hello, Codeforces! \<almost-copy-pasted-part\> Hello! [Codeforces Round #690 (Div. 3)](https://codeforces.me/contest/1462) will start at [contest_time:1462]. You will be offered 6 problems (one of them is split into two subtasks) with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have a rating 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ACM-ICPC). Thus, during the round, solutions will be judged on preliminary tests, and after the round it will be a 12-hour phase of open hacks. I tried to make strong tests — just like you will be upset if many solutions fail after the contest is over. You will be given 6 problems and 2 hours to solve them. Note that **the penalty** for the wrong submission in this round (and the following Div. 3 rounds) is **10 minutes**. [Remember](https://codeforces.me/bl...

Full text and comments »

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

226.
By Vladosiya, history, 4 years ago, translation, In English
Codeforces Round #855 (Div. 3) Hello! [contest:1800] will start at [contest_time:1800]. You will be offered 6-8 problems with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have a rating of 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of **open hacks**. You will be given **6-8 problems** and **2 hours and 15 minutes** to solve them. Note that the **penalty** for the wrong submission in this round is **10 minutes**. [Remember](https://codeforces.me/blog/entry/59228) that only the trusted participants of the third division will be included in the official standings table. As it is written by link, this is a compulsory measure for combating unsporting behavior. To qualify as a _trusted participant of the thi...

Full text and comments »

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

227.
By aka.Sohieb, history, 10 years ago, In English
Complaint against ACPC Hello everyone! 2 weeks ago the ACM-ICPC Arab regional contest was held. Our [Team](http://codeforces.me/team/24593) participated in it after earning gold medals at the ECPC ([3rd place](https://icpc.baylor.edu/regionals/finder/ecpc-2016/standings)). Our Sad Story ------------------ During the contest we came upon a problem that no other team has attempted yet, and we actually submitted about 6 solutions for it, with the first two getting TLE response and the other four getting WA. After failing to see what the problem is with our code we decided to leave it be and concern ourselves with other problems, that was nearly at minute 140. After exactly 194 minutes from the start of the contest another team attempted the problem only to get WA. Also, at minute 214 another team (which happens to be the champion of both the ECPC and the ACPC) submitted a solution and also got a WA. Then after a few minutes we find that there was some problems with the judge's solu...

Full text and comments »

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

228.
By Edvard, history, 10 years ago, translation, In English
Educational Codeforces Round 14 Hello, Codeforces! Educational Codeforces Round 14 will take place on [13 July 2016 at 19:00 MSK](http://www.timeanddate.com/worldclock/fixedtime.html?msg=Educational+Codeforces+Round+14&iso=20160614T1600) for the first and the second divisions. <I already have a long list of problems, so don't be upset if your problems wasn't used yet> The round will be unrated for all users and it will be held with extented ACM ICPC rules. You will have two hours to solve six problems. After that you will have one day to hack any solution you want. You will have access to copy any solution and test it locally. If you have ideas for some problems or maybe already prepared problems that you can't use in rounds or official competitions, you can write to me. It seems that it is harder to invent interesting simple problems (like A and B) than difficult ones. So don't be afraid to suggest interesting simple or very simple tasks (of course the difficult tasks are also needed). Please send onl...

Full text and comments »

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

229.
By MladenP, history, 9 months ago, In English
the ko_osaga interview I'm excided to finally show my interview with [user:ko_osaga,2026-03-01] that was recorded way too long ago (at World Finals, sorry ko_osaga). Still, I believe the conversation is timeless, so check it out! I was a big fan of ko_osaga back in high school, as he was one of the few top guys that was still active in the Olympiad community. He's the original creator of the OI checklist, IOI gold medalist and finalist of most big competitions you can think of. Now, he's a PhD candidate at MIT &mdash; we talk about the journey from competitive programming to algorithms research, competitive programming in South Korea and much more. P.S. As I mentioned in my last blog post, I've changed jobs and have much less time for working on Olympicode. I've also finished my ICPC career at last World Finals, so I don't expect to travel to many competitions in the near future, so this might be the last interview for a while. Might try switching to some online interviews, but I feel like that takes awa...
Additionally, since only a few people are submitting to Olympicode Judge a month and I've been

Full text and comments »

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

230.
By Arpa, history, 10 years ago, In English
New feature on Virtual judge : Add your own problems to contests. Hi ! About one month ago I asked Xu Han (admin of the Virtual judge) if it's possible to add my own problems (that aren't present in any online judge) to some contest in Virtual judge, and we worked together to find a way to do this, and here is it, you can now add your own problems to Virtual judge. Let's see how to do. 1. Register on [Codeforces polygon](http://polygon.codeforces.com), create a problem and add statements, tests, checkers, etc. 2. Create a mashup [here](http://codeforces.me/mashups). 3. Add the problem to your mashup. Follow the instruction in [this comment](http://codeforces.me/blog/entry/10099?#comment-155927). 4. From contest panel, go to "manage inventions" → "invite users" → add vjudge1, vjudge2, vjudge3, vjudge4, vjudge5, vjudge.1, vjudge.2, vjudge.3, vjudge.4, vjudge.5, vjudge.6, vjudge.7, vjudge.8, vjudge.9, vjudge.10. 5. The problem is added to Virtual judge now! 6. To add your problem to your contest, choose "gym" from judge list and add your pr...
New feature on Virtual judge : Add your own problems to contests., About one month ago I asked Xu Han (admin of the Virtual judge) if it's possible to add my own

Full text and comments »

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

231.
By physics0523, history, 4 years ago, In English
Strange Comparison: vector&lt;vector&lt;int&gt;&gt; vs vector&lt;pair&lt;int,int&gt;&gt; ? If we want to use a 2D dynamic array, some C++ user writes following 2D vector: ``` vector<vector<int>> a(n); // add y to a[x] a[x].push_back(y); // walkthrough a[x] for(auto &nx : a[x]){ cout << nx << "\n"; } ``` But we can do the equivalent thing with handwritten linked list (when we know the total size) by using 1D vector<pair<int,int>>: ``` pair<int,int> empty={-1,-1}; vector<pair<int,int>> b(n+total_size,empty); int add_point=n; // add y to b[x] if(b[x]!=empty){ b[add_point]=b[x]; b[x].second=add_point; add_point++; } b[x].first=y; // walkthrough b[x] int current=x; while(current!=empty.second && b[currnt]!=empty){ cout << b[current].first << "\n"; current=b[current].second; } ``` So, what's the benefit for the later implementation? The merit is the generation time of later one is very fast. vector size = $10^5$, Total elements = $10^6$ (this means we need `vector<vector<int>>(1e5)` and the sum of the size of $10^5$ vect...
( on CF judge(C++20 64bit), x10 average, [experiment code](https://ideone.com/ogOL7R) )

Full text and comments »

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

232.
By Aris, 5 years ago, In English
Codeforces Round #780 (Div. 3) Hello! [contest:1660] will start at [contest_time:1660]. You will be offered 6-8 problems with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have a rating of 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of **open hacks**. You will be given **6-8 problems** and **2 hours and 15 minutes** to solve them. Note that the **penalty** for the wrong submission in this round is **10 minutes**. [Remember](https://codeforces.me/blog/entry/59228) that only the trusted participants of the third division will be included in the official standings table. As it is written by link, this is a compulsory measure for combating unsporting behavior. To qualify as a _trusted participant of the th...

Full text and comments »

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

233.
By EnumerativeCombinatorics, history, 9 years ago, In English
How Japanese IOI team is selected I think this is the right time of showing the way of team selection in Japan, so I spare time for writing a blog, instead of preparing for Distributed Code Jam finals. Compared to other countries, Japanese selection rules are very simple. Perhaps this is the simplest rule among the countries getting gold medal almost every year. There are 3 rounds to go to IOI. Each round is **independent** so even if you don't do well in the previous round, you wouldn't have disadvantages for the next round (as long as you are qualified). 1. JOI Qualification Round (JOI 予選) ----------------------------------- The number of participants is a bit larger than 1,000. There are 6 tasks and contest duration is 3 hours. Judging from the past years' problems, the first task is really easy (like "I have 10 integers, and I'll give you 9 of my integers and the sum of all my integers. Can you guess the remaining integer?"), and about 5 students can solve the last task. This round is held online, and ...
You can also find and solve past problems on Aizu Online Judge.

Full text and comments »

234.
By Vladosiya, history, 4 years ago, translation, In English
Codeforces Round #826 (Div. 3) Hello! [contest:1741] will start at [contest_time:1741]. You will be offered 6-8 problems with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have a rating of 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of **open hacks**. You will be given **6-8 problems** and **2 hours and 15 minutes** to solve them. Note that the **penalty** for the wrong submission in this round is **10 minutes**. [Remember](https://codeforces.me/blog/entry/59228) that only the trusted participants of the third division will be included in the official standings table. As it is written by link, this is a compulsory measure for combating unsporting behavior. To qualify as a _trusted participant of the thi...

Full text and comments »

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

235.
By vovuh, history, 6 years ago, translation, In English
Codeforces Round #677 (Div. 3) Hello! [contest:1433] will start at [contest_time:1433]. You will be offered 6 or 7 problems (or 8) with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have rating 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ACM-ICPC). Thus, during the round, solutions will be judged on preliminary tests, and after the round it will be a 12-hour phase of open hacks. I tried to make strong tests &mdash; just like you will be upset if many solutions fail after the contest is over. You will be given 6 or 7 (or 8) problems and 2 hours to solve them. Note that **the penalty** for the wrong submission in this round (and the following Div. 3 rounds) is **10 minutes**. [Remember] (/blog/entry/59228) that only the <i>trusted participants of the third division</i> will be included in the official standings table. As it is ...

Full text and comments »

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

236.
By diskoteka, 4 years ago, translation, In English
Codeforces Round #867 (Div.3) Hello! [contest:1822] will start at [contest_time:1822]. You will be offered 6-8 problems with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have a rating of 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of **open hacks**. You will be given **6-8 problems** and **2 hours and 15 minutes** to solve them. Note that the **penalty** for the wrong submission in this round is **10 minutes**. [Remember](https://codeforces.me/blog/entry/59228) that only the trusted participants of the third division will be included in the official standings table. As it is written by link, this is a compulsory measure for combating unsporting behavior. To qualify as a _trusted participant of the thi...

Full text and comments »

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

237.
By vovuh, history, 7 years ago, translation, In English
Codeforces Round #595 (Div. 3) **UPD**: Thanks to Daria [user:ZeroAmbition,2019-10-22] Stepanova, Mikhail [user:PikMike,2019-10-22] Piklyaev and Artem [user:Rox,2019-10-22] Plotkin for help with round preparation! **UPD2**: [Editorial](https://codeforces.me/blog/entry/70779) is published! &lt;almost-copy-pasted-part&gt; Hello! [contest:1249] will start at [contest_time:1249]. You will be offered 6 or 7 problems (or 8) with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have rating 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ACM-ICPC). Thus, during the round, solutions will be judged on preliminary tests, and after the round it will be a 12-hour phase of open hacks. I tried to make strong tests &mdash; just like you will be upset if many solutions fail after the contest is over. You will be given 6 or 7 (or 8) problems and ...

Full text and comments »

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

238.
By Vladosiya, history, 4 years ago, translation, In English
Codeforces Round #811 (Div. 3) Hello! [contest:1714] will start at [contest_time:1714]. You will be offered 6-8 problems with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have a rating of 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ACM-ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of open hacks. You will be given 6-8 problems and 2 hours and 15 minutes to solve them. Note that the penalty for the wrong submission in this round (and the following Div. 3 rounds) is 10 minutes. [Remember](https://codeforces.me/blog/entry/59228) that only the trusted participants of the third division will be included in the official standings table. As it is written by link, this is a compulsory measure for combating unsporting behavior. To qualify as a trusted parti...

Full text and comments »

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

239.
By Vladosiya, history, 4 years ago, translation, In English
Codeforces Round #847 (Div. 3) Hello! [contest:1790] will start at [contest_time:1790]. You will be offered 6-8 problems with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have a rating of 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of **open hacks**. You will be given **6-8 problems** and **2 hours and 15 minutes** to solve them. Note that the **penalty** for the wrong submission in this round is **10 minutes**. [Remember](https://codeforces.me/blog/entry/59228) that only the trusted participants of the third division will be included in the official standings table. As it is written by link, this is a compulsory measure for combating unsporting behavior. To qualify as a _trusted participant of the thi...

Full text and comments »

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

240.
By vovuh, history, 7 years ago, translation, In English
Codeforces Round #627 (Div. 3) **UPD: Pay attention to the changed start time of the competition.** &lt;almost-copy-pasted-part&gt; Hello! [contest:1324] will start at [contest_time:1324]. You will be offered 6 or 7 problems (or 8) with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have rating 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ACM-ICPC). Thus, during the round, solutions will be judged on preliminary tests, and after the round it will be a 12-hour phase of open hacks. I tried to make strong tests &mdash; just like you will be upset if many solutions fail after the contest is over. You will be given 6 or 7 (or 8) problems and 2 hours to solve them. Note that **the penalty** for the wrong submission in this round (and the following Div. 3 rounds) is **10 minutes**. [Remember] (/blog/entry/59228) that only the <i...

Full text and comments »

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

241.
By kpw29, 5 years ago, In English
You can do it, too! Introduction ------------------------------- So, I set myself [that challenge](https://codeforces.me/blog/entry/81383) to retire as a red coder before 24.09.2020... and I failed **miserably**. At least I am less delayed than most civil infrastructure projects. This blog will be a recap of this _short_ challenge with a mixture of some tips on practicing (for all levels!), some random life advice and, of course my bad sense of humour. It is dedicated to all those who aren't wonderkids, go from failure to failure and feel like banging their head into a wall during most of their competitive programming journey. Whatever your goal is, I'd like to strengthen your beliefs &mdash; you can do it! How it all started ------------------ My skill level has been in constant stagnation for years. I've always thought that I'm just not talented enough to be a grandmaster. Although I've been red twice in the past, it was quite lucky and the next contests were solid $-137$ and $-189$ so th...

Full text and comments »

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

242.
By AksLolCoding, 9 months ago, In English
Codeforces Round 1084 (Div. 3) Hello, Codeforces! ================== I am exhilarated to invite you to participate in [contest:2200], which will be held on [contest_time:2200]! You will be given $7$-$8$ problems to solve in $2$ hours and $15$ minutes. All problems were authored and prepared by me. The round will be hosted by rules of educational rounds (extended ICPC). During the round, all solutions will be judged on preliminary tests. After the round, there will be a 12-hour phase of open hacks. After the open hack phase, all accepted solutions will be rejudged on successful hacks. There will also be the usual penalty of 10 minutes for each wrong submission. [As a reminder](https://codeforces.me/blog/entry/59228), only trusted participants of the third division will be included in the official standings table. This is a compulsory measure for combating unsporting behavior. To qualify as a trusted participant of the third division, you must: - participate in at least five rated rounds (and solve at leas...

Full text and comments »

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

243.
By xinchengo, history, 4 years ago, In English
Please be friendly to remote judging services Codeforces has recently adopted Cloudflare for security reasons. As a consequence, it brought some trouble to some remote judging providers. For example, the most popular ones, Vjudge and Luogu, can no longer scrape problem statements. Many Chinese competitve programmers are used to submitting Codeforces problem remotely, either to look for translation or to track their progress. Although bot accounts do cause problems (topping the 'Most solved' page), they never become dominant. Instead, remote judging services are just like CLI clients, they only increases the popularity of Codeforces. Users of remote judging services make up a large part of Codeforces contestants. Codeforces has always been generous and provides an extensive set of APIs, which is uncommon among online judges. So I don't think Codeforces is cracking down on remote juding services on propose. Is it possible for Codeforces to release an API for problem statements or specially treat bot accounts? Please be friendl...

Full text and comments »

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

244.
By Ahmadsm2005, history, 5 years ago, In English
Competitive Programming and MBTI personality types Hello, I have searched for a correlation between MBTI personality types and CPers but I haven't found an answer so, I am gathering statistics to see what are the most common personality types from CPers. You can divide personality types into 16 categories which makes up 4 letters(I/E,S/N,F/T,P/J). As a reference, here is the percentage of each personality type world-wide: ![ ](https://www.careerplanner.com/Images/social/TypeInPopulation-500w.png) For you to know which personality type you are, try the test [here](https://www.truity.com/test/type-finder-personality-test-new). It takes around 20 minutes to complete it. If you already know it, you can skip this step. Finally, fill [this form](https://forms.gle/NqsjjybrYSpMr3jw8) and please be honest in your answers. You will only be asked to pick your personality type corresponding with a rating range. I will share statistics within a few days. Note: Each letter corresponds to what you mostly are more. Example: I: Introve...

Full text and comments »

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

245.
By grhkm, history, 6 years ago, In English
[TUTORIAL] Basic Lagrange Interpolation Lagrange Interpolation by grhkm ===================================================================== No polynomial stuff because I don't know $O(n\log{n})$ polynomial multiplication :( Main results: ------------- Given $f(x_1)=y_1, f(x_2)=y_2, ..., f(x_n)=y_n$ we can calculate $f(X)$ where $f$ is the unique $(n-1)$-degree polynomial For general {$x_i$} we can do so in $O(n^2)$ For consecutive {$x_i$} i.e. $x_j=x_1+(j-1)$, we can do so in $O(n)$ excluding binary exponentiation Why useful? ------------------- Calculate $1^n+2^n+...+X^n$ in $O(n)$ DP optimization With polynomials you can do cool things but not gonna cover this blog Let's get started :) Assume all polynomials below are $(n-1)$ degree unless specified. <spoiler summary="disclaimer"> Sorry if it's a bit messy, this is my first time writing blog lol please give feedback~ </spoiler> <spoiler summary="Why (n-1) degree?"> We can write polynomial as $c_0+c_1x+c_2x^2+\cdots +c_kx^k$ wher...
(BZOJ 3453, judge dead): Find_ $\sum_{i=0}^n \sum_{j=1}^{a+id} \sum_{k=1}^j k^x \mod 1234567891, x

Full text and comments »

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