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.

Rules

Last visit:  15 months ago
Registered:  11 years ago
2.
By MikeMirzayanov, history, 2 years ago, In English
Rule Restricting the Use of AI [revision 2024-09-14] It seems that neural networks are working technological wonders. Not long ago, they struggled with even the simplest tasks in our competitions, but now they are reaching new heights that cannot be overlooked. There is reason to believe that progress will continue, and we can expect further advancements in neural networks within the realm of programming competitions. For this reason, we are explicitly limiting the use of AI-based systems (such as various models like GPT, Gemini, Gemma, Llama, Claude, and others) for solving programming problems. However, we recognize that AI can be a valuable tool for learning and coding assistance, so we aim to establish clear boundaries for its use. **Application of this Rule:**<br/>This rule applies strictly to in-contest participation. This includes both registered contestants and out-of-competition participants in any rated Codeforces round. If a round is unrated and this is explicitly stated in the round announcement or rules, the rul...
Rule Restricting the Use of AI [revision 2024-09-14], use. **Application of this Rule:** This rule applies strictly to in-contest participation, **Application of this Rule:** This rule applies strictly to in-contest participation. This, **Cheating Detection:** This rule allows us to continue identifying cheating incidents as we

Full text and comments »

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

3.
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 — ...
differ slightly in performance from the official ones, so the rule is this: if a solution runs within, unofficially. Please also remember the [rule restricting AI use](https://codeforces.me/blog/entry, ) invokers. These machines differ slightly in performance from the official ones, so therule is this

Full text and comments »

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

4.
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...
contest would clearly be cheating. - As far as I could determine, I found no rule prohibiting, during a contest would clearly be cheating. - As far as I could determine, I found norule

Full text and comments »

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

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

Full text and comments »

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

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

Full text and comments »

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

7.
By qwexd, 3 months ago, In English
Codeforces Round 1121 (Div. 2) <div class="problem-statement" style="border:0 !important; padding:0 !important; margin:0.5em !important; box-shadow:none !important;"> <div class="header"> <div class="title">1121. Another Round</div> <div class="time-limit"><div class="property-title">time limit per participant</div> 2 hours</div> <div class="memory-limit"><div class="property-title">memory limit per participant</div> 1 brain</div> </div> <div class="legend"> <p> <i>This is <s>an interactive problem</s> a contest with an <b>unusual start time</b>.</i> </p> <p> You are given a Codeforces account and $n = 6$ problems, authored and prepared by [user:qwexd,2026-09-12] and [user:jeroenodb,2026-09-12]. </p> <p> In one operation, you may choose a problem $i$ ($1 \le i \le n$) and submit a program intended to solve it. </p> <p> The maximum scores are given below. Problem E is divided into two subtasks. </p> <div style="overflow-x:auto; margin:0.5em 0 1em;"> <table style="border-collapse:co...

Full text and comments »

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

8.
By stevenkplus, history, 6 years ago, In English
I challenge you to a duel, Errichto (UPD: Saturday 11am PT) ![Scoreboard](/predownloaded/08/57/0857157477081fc11f0c1d1814de19e66cb0006c.png) Dear [user:Errichto,2020-09-17], In case you are unaware, you beat me by 3 seconds of penalty on [Facebook Hacker Cup Round 3](https://www.facebook.com/codingcompetitions/hacker-cup/2020/round-3/scoreboard). Upon deep reflection, I decided that I will not accept this lying down. In order to avenge this notorious defeat, I am challenging you to a 1v1 duel. **Rules:** 1. Duel will be held as a lockout competition and will be televised live 2. Lockout problems will be chosen by a neutral problem setter 3. Loser must change their main to honor the winner. See below for details ~~~~~ // your template if you lose #define stevenkplus main int stevenkplus() { // your code here } ~~~~~ --- **Update:** We're doing it this Saturday! https://www.timeanddate.com/worldclock/fixedtime.html?msg=Errichto+vs+Stevenkplus&iso=20200926T11&p1=224&ah=1 Will be broadcast live at https://www.twitch...

Full text and comments »

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

9.
By MikeMirzayanov, 3 years ago, In English
Codeforces Round 923 (Div. 3) Gamarjoba, Codeforces! On [contest_time:1927] will start [contest:1927], the next Codeforces round for the Div.3. Lately, I've been coming up with problem ideas less frequently, but I don't want to lose this skill. Welcome to the round where all problems are my own creation! I hope you'll enjoy them. A huge thank you to [user:Vladosiya,2024-02-05] for preparing the majority of problems in Polygon. Also, thanks to [user:pashka,2024-02-05] and [user:KAN,2024-02-06] for helping with the discussion of problem ideas. Thank you very much [user:74TrAkToR,2024-02-05], [user:CLown1331,2024-02-05], [user:EternalAlexander,2024-02-05], [user:Jostic11,2024-02-05], [user:Killever,2024-02-05], [user:KoT_OsKaR,2024-02-05], [user:LoveWX,2024-02-05], [user:MADE_IN_HEAVEN,2024-02-05], [user:dan_dolmatov,2024-02-05], [user:jnmtz111__,2024-02-05], [user:pedrolino,2024-02-05], [user:theRealChainman,2024-02-05], [user:yorky,2024-02-05] for testing the round. As usual for the Div.3 rounds: ...

Full text and comments »

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

10.
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...
[user:zh0ukangyang,2024-10-07] is such a talented coder and codeforces didn't treat therule of single, talented coder and codeforces didn't treat the rule of single account seriously at that time. Then more

Full text and comments »

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

11.
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 ...
problems (except for the thematic contest announced below). We will keep the "easy implementation"rule, will keep the "easy implementation" rule in the future — the next admin [user:maroonrk,2020-09-07

Full text and comments »

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

12.
By Monyura, history, 11 years ago, translation, In English
Announce of Looksery Cup 2015 Hi, Codeforces! <img src = "https://pp.vk.me/c622617/v622617180/32cdb/fCl4Wp0ouUM.jpg" style="float:right;width:18%;height:18%"/> I am glad to announce Looksery Cup 2015, that is prepared by our developers, each one of them has made a great impact: [user:Sfairat,2015-06-05], [user:olpetOdessaONU,2015-06-05], [user:Sklyack,2015-06-05], [user:MrDindows,2015-06-05], [user:Rubanenko,2014-08-30], [user:Krasnokutskiy,2015-06-05], [user:2222,2015-06-05], [user:MaximM,2015-03-05], [user:Avalanche,2015-06-05], [user:Igor_Kudryashov,2015-06-05], [user:Kepnu4,2015-06-05] and I. Special thank to coordinator [user:Zlobober,2015-06-05] for the help with problems and advices and to [user:Delinur,2015-06-05] for the translation. We've prepared 8 problems for you, that will have **random** order at the contest. Round will last 2 hours 30 minutes under the standard Codeforces rules with smooth dynamic scoring. We hope, that you will enjoy competition, and we will receive small amount of clars ...

Full text and comments »

Announcement of Looksery Cup 2015
  • Vote: I like it
  • +1426
  • Vote: I do not like it

13.
By Ra16bit, history, 5 years ago, In English
Competitive Programming Hall of Fame — cphof.org Hi Codeforces! Today I'd like to introduce the new [Competitive Programming Hall of Fame](https://cphof.org) project that is available at [cphof.org](https://cphof.org) ![ Logo ](/predownloaded/12/35/1235b4fcce22b33f83cf26221d889087e06d8592.png) #### Background A long time ago I've noticed that there is no single source of information with the results of previously held large programming competitions. Moreover, plenty of older championships don't maintain their websites anymore, and it becomes hard or even impossible to find any details about them, which is pretty sad. So I've decided to create [Competitive Programming Hall of Fame](https://cphof.org). #### About the project Competitive Programming Hall Of Fame is a project created to preserve the history of international championships in competitive programming. This website collects the results of the final stages for both worldwide and regional contests. By international championship we mean a contest consisting ...

Full text and comments »

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

14.
By Um_nik, history, 4 years ago, In English
Unimportant Um_nik Update Hello Codeforces! I have some big news. I am trying to fight depression and live a fuller life. That includes some self-realization, maybe even (I don't even want to think about it) a job. I love cp, and I love teaching, and I know I already tried that, but I believe that this is the way. With the help of my wife, I started to work on some related projects, and today we want to share them with the world. All of them are in the early stages, but we set a hard deadline for March 1, so... Um ================== Um... I am starting a series of educational YouTube videos / selected problems. Every episode of Um is focused on one problem. I will explain how to solve this problem and talk about some related concepts. The idea is to show off some cool concepts using real problems. The kicker: the problem is made public at least a week before the episode airs. So you can use Um as a source of problems. I will try to choose nice problems that highlight some ideas, and problems ...

Full text and comments »

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

15.
By tourist, 3 years ago, translation, In English
Code Weekend #1 <div align="right" margin="20px"> <img align="right" src="/predownloaded/72/f1/72f1f31badb1452243838a0fc2553c04accff164.jpeg" alt="logo" width="300px" height="300px" margin="20px"/></div> Hello everyone! We, the [RGBTeam](https://clist.by/team/Romka,tourist,%E2%88%A83886090/) ([user:qwerty787788,2024-05-21], [user:Romka,2024-05-21] and [user:tourist,2024-05-21]), are huge fans of heuristic programming competitions and are quite saddened by the fact that they are becoming less and less frequent each year. One day, we decided to organize our own competition :) Despite the fact that such ideas often remain just ideas, this time we have a serious mindset, and now we want to invite you all to participate in the first — and hopefully not last — **[Code Weekend #1!](https://codeweekend.dev)** The competition will be held in a format quite similar to ICFPC/Google Hashcode — there will be one problem and several dozen tests for it. You will need to submit just an output according to t...

Full text and comments »

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

16.
By zscoder, history, 7 years ago, In English
[Tutorial] Generating Functions in Competitive Programming (Part 1) Hi everyone! Inspired by the recent [Codeforces Round 641](https://codeforces.me/contest/1349), I decided to write an introductory tutorial on generating functions here. I am by no means an expert in generating functions so I will write about what I currently know about them. [user:MiFaFaOvO,2020-05-15] has written a really interesting [blog](https://codeforces.me/blog/entry/76447) here on Codeforces about more advanced applications of generating functions, but I think there is no English tutorial on the basics of this topic yet (or at least on CP sites). Thus, I would like to share about this topic here. I plan to split this tutorial into two parts. The first part (this post) will be an introduction to generating functions for those who have never learned about them at all, and some standard examples and showcases of generating functions. The second part will be a collection of several applications of generating functions in CP-style problems. If you are already familiar with ge...
values though, the general rule of thumb is that you can do it if the series converges., (x) = \frac{1 - \sqrt{1-4x}}{2x}$ (indeed, by L'Hopital Rule it converges to $c_{0}=1$ at $x=0$).

Full text and comments »

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

17.
By MikeMirzayanov, 5 years ago, In English
I am Mike Mirzayanov. AMA! <img src="/predownloaded/3f/31/3f31c3ac1f7b4e53128fc9708f5736eea40d7b94.jpg" style="width:250px; margin:1em 0 0 0; float:right;"/> But why not! Many people here seem to know me. Or maybe not quite? I am ready to answer your questions. Ask me anything! I plan to spend no more than 3 hours on answers. Sorry if I can't answer all the questions. Let's more or less follow the rules from here https://www.reddit.com/r/IAmA/wiki/index Below is actually a quote from the rules. The interviewee begins the process by starting a post, describing who they are and what they do. Then commenters from across the internet leave questions and can vote on other questions according to which they would like to see answered. The interviewee can go through and reply to the questions they find interesting and easily see those questions the internet is dying to have the answer to. Because the internet is asking the questions, they're going to be a mix of serious and lighthearted, and you'll ...

Full text and comments »

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

18.
By kostka, 5 years ago, In English
Cheater Report in Global Round 15 In the last contest, both [user:tourist,2021-07-26] and [user:ko_osaga,2021-07-26] copied the author's solution from the problem Matrix from Petrozavodsk Winter Camp 2013 Warsaw U contest: [submission:123723552] and [submission:123727448] respectively. You can easily verify that they didn't write this code themselves by looking at the comments in these solutions (written in Polish). This is **against the Codeforces rules**. According to [this post](https://codeforces.me/blog/entry/8790), we have the following rules: > Solutions and test generators can only use source code completely written by you, with the following two exceptions: > > 1. the code was written and published/distributed before the start of the round, > 2. the code is generated using tools that were written and published/distributed before the start of the round. and > Currently, the only reliable proof is the presence of code on the Internet and the presence of the used edition in the cache of well-kn...
cheating case? If that's the rule that we currently use, please add this to the aforementioned blog., the used edition in the cache of well-known search engines. > > For example, thisrule accepts the, -known search engines. > > For example, this rule accepts the use of the code from the website http

Full text and comments »

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

19.
By Qingyu, 17 months ago, In English
About the Universal Cup, the Semifinals, and myself... Hey'all! This gonna be a long post, so let me put an important TLDR here first: we are going to host **The 3rd Universal Cup Semifinals**, which will take place on August 24, 2025 **online**, at [11:00 (UTC)](https://www.timeanddate.com/worldclock/fixedtime.html?msg=The+3rd+Universal+Cup+Semifinals&iso=20250824T19&p1=33&ah=5). This contest will be a part of our Finals Team Selection, which the detailed rules and announcements will be published later next week. --- Now for some extra context, if you're interested. Last week, we hosted the [last online stage](https://codeforces.me/blog/entry/143954) of The 3rd Universal Cup. After that, I posted a [feedback form](https://docs.google.com/forms/d/1g5Txhiirh_lRsvGfkYWRozu0WDDGK31IAXjB7VgeVoM/edit) on our discord server. I received lots of thoughtful responses (P.S — it's still open, so feel free to fill it out if you haven't yet!). I've read through all the feedback, and I'd like to share a few thoughts. ### On the Number...

Full text and comments »

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

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

Full text and comments »

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

21.
By tourist, 9 years ago, In English
My strategy at AtCoder & CS Academy There's been much controversy lately about the late submission strategy not penalized by scoring systems of AtCoder and CS Academy. Most of the relevant discussion happened earlier at http://codeforces.me/blog/entry/53431 and http://codeforces.me/blog/entry/53449. I have a lot of thoughts on the topic, so I've decided to share them in a separate blog post. I really like the strategic part of programming competitions. Of course, problem solving is more important. But every contest consists of multiple problems, so there has to be a way of comparing participants which performed better at different problems. There's a huge variety of scoring rules, and I find it truly amusing. The "submit after solving all problems" strategy looks widely attributed to me now, mostly due to [user:Petr,2017-07-24]'s remarks regarding my participation in AtCoder contests. In my opinion, it's wrong for multiple reasons. A closer five-word description of my strategy is "implement after solvin...

Full text and comments »

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

22.
By MinakoKojima, history, 11 years ago, In English
My sad story Teams advancing to 2016 WF Phuket in Asia have been announced recently. This announcement is undisputedly tantamount to a death sentence for me. I am the one waiting anxiously, refresh Dr. Hwang's blog everyday. But it seems that for years, our training was meaningless. I think many of us dedicate our passion to programming contests because we see them transparent, fair and without any corruption. And I also believe that as contestants, what we should do is only focus on the practice. And I thought those political business should never come to bother me one day. But sadly, it is my team who is going to become one of the sacrifices of a succession of the dissension. What happened so far ------------------ The quarrel between the Asia director and the local community is [a long story](http://blog.sina.com.cn/s/blog_b946da100101q21y.html) to tell. But it has never been as serious as it was in the past season. Now reflecting on this, I know on the surface everything is going okay...
/entry/22255). Initially a rule was brought out to reduce the number of slots from Chennai to 1. It, Well, don’t get me wrong. I am not against the rule this year, I am against the way therule has, ](http://codeforces.me/blog/entry/22255). Initially a rule was brought out to reduce the number of

Full text and comments »

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

23.
By Um_nik, history, 14 months ago, In English
On AI ruining "solving math problems with computer" [a year later] I guess you were right in the part "a year from now LLMs will solve problems on your level". You were also saying something along the lines of "you'll change your mind when it starts affecting you". In this part, you were wrong. Cheaters always existed, and they always will. LLMs make it easier to cheat, true. There is no way of completely preventing LLM cheating (or any other kind of cheating) in online competitions. I just coordinated the round everyone is buzzing about, so I can with confidence say that in the CF rules for coordinators and authors, there isn't anything about making problems LLM-proof. Not for easy problems, not for hard problems, nothing. And I doubt any such rules will appear. LLMs are forbidden by the rules, that's that. So we, as honest participants (yes, I will assume that you are an honest participant, otherwise this blog is not applicable to you and I don't care about you), will have to accept that some problems in the future rounds will be LLM-able, ...

Full text and comments »

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

24.
By KAN, 10 months ago, translation, In English
Codeforces Blitz Cup 2026 <center style="margin: 2em;"> <img src="/predownloaded/a7/e8/a7e8478b9af90246ebd2a4e42b9bbbafd392b64f.png"/> </center> Hi Codeforces! I have a great announcement for you. This month, we're holding the second Codeforces Blitz Cup! Remember all the WA1s and CEs we've seen from LGMs stressing out to submit before the opponent? They are coming back! The Codeforces Blitz Cup is a single-elimination personal tournament where matches follow the special Blitz Rules. In short, each match is a 40-minute PvP contest, where problems open one by one, and only the first AC counts. The players can't use any help or prewritten code except a small template, and we get to watch them think and code live. - [Detailed rules](/r/blitz-rules) - [Bracket](/publish/blitz2026/bracket.html) Check out last year's final rounds streams: [day 1](https://www.youtube.com/watch?v=caoeMuNNQtg&embeds_referring_euri=https%3A%2F%2Fcodeforces.com%2F), and the [final day 2](https://www.youtube.com/watch?v=...

Full text and comments »

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

25.
By Golovanov399, 7 years ago, In English
C++ tips and tricks Hello, codeforces. I would like to tell you about some tricks and constructions I use in C++. They are not hidden or anything, moreover, most of them are from stl or maybe well known among software engineers, but I often see codes where something is done by hand in, say, 5 lines, while in stl there is a function which does the same. The things below are filtered by my personal sense of non-popularity (so no `__builtin` functions) and usage frequency (so there almost surely are similar things I don't know about) and are not really sorted in any reasonable order. Let's begin. [cut] <hr> - ### `all(x)` This may be an exception to the rule of non-popularity -- this is quite widely used, but some next items will depend on `all(x)`, so I define it here. So, I talk about ```[c++] #define all(x) (x).begin(), (x).end() ``` Now sorting a vector looks like `sort(all(vec))` instead of `sort(vec.begin(), vec.end())`. However, it's not all about this define. Imagine you nee...
Afaik, a mnemonic rule to remember it (if needed) is "bang, bang, you're boolean"., This may be an exception to the rule of non-popularity -- this is quite widely used, but some next

Full text and comments »

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

26.
By Balajiganapathi, history, 11 years ago, In English
ICPC Regionals — The Chennai flood and the Asia Director Background ---------- One of the regionals in India was scheduled to be held at [Hindustan University](http://icpc.hindustanuniv.ac.in/) at Chennai on December 17 &mdash; 18, 2015. Unfortunately Chennai was stuck by a [natural disaster](https://en.wikipedia.org/wiki/2015_South_Indian_floods). The entire south India received heavy rainfall and hence there was a lot of flooding at many places including Chennai around that time. Atleast 347 people died in the state of Tamil Nadu (where Chennai is located). The damage due to the floods overall in south India is estimated to be atleast USD 3 Billion. It is the costliest flood in 2015. Ofcourse, due to this the Chennai regionals was postponed. I think everyone here will agree that this was an unexpected, unprecedent situation and hence it was entirely understandable that the regionals was postponed. The Blog post ------------- Dr. C J Hwang is the ICPC Asia director. In response to the above postponement he posted a blog article...
automatically considered as "Yes". Yeah, that is how decisions are taken for such an importantrule., not be how decisions are taken at ICPC. You can read the actual rule in the blog itself. Rules, I have nothing against the rule. But everything against the manner in which it was decided. Also, You can read the actual rule in the blog itself. Rules are generally passed by a vote. Here is the

Full text and comments »

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

27.
By MikeMirzayanov, 9 years ago, translation, In English
Codeforces: Results of 2017 <img src="/predownloaded/e4/09/e40915ee54c5991b91098756a90270d94be893b3.jpg"/> Happy New Year, Codeforces! I hasten to wish the whole community (and including me) correct programs, sudden insights, beautiful ideas and interesting problems! I hope that you have met the new year at least as fun as I am. Have you had enough sleep after New Year's Eve? This year, the traditional post summarizing the past year, I sat down to write only on January 1, 2018. I hope that I will not have to sum up the whole year. This post is important to me, since it draws a line to all the work done by the Codeforces team and the entire community in 2017. Many thanks to the team: all of the achievements listed below are the result of joint efforts. We did an excellent job! The community must know its heroes. In 2017, [user:MikeMirzayanov,2018-01-02], [user:KAN,2018-01-02] (problem coordinator), ~gritukan,2018-01-02 (second problem coordinator), ~netman,2018-01-02 (ex-second problem coordinator), ~k...
registrations and surveys. 1. Personal private messages of rule violations. 1. Multiple system

Full text and comments »

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

28.
By KAN, 21 month(s) ago, In English
Codeforces Blitz Cup 2025 Hi Codeforces! As announced earlier, we’re holding an individual competition, the Codeforces Blitz Cup 2025, to celebrate 15 years of Codeforces. The tournament features PvP matches in a novel Blitz format, where every second (literally!) counts. In a 40-minute match, the opponents rush to solve each consecutive problem quicker than the rival. One needs to come up with a correct solution, think over the optimal implementation, and code cleanly: only the first one to get a problem correctly claims the points. <spoiler summary="Complete Blitz rules"> - Each match lasts 40 minutes, with 7 problems of increasing difficulty (worth 2, 3, 4, 6, 8, 10, and 12 points). - Problems are revealed one at a time, in the order of increasing difficulty. - Only the first contestant to solve a problem earns points. - Once a problem is solved, it becomes unavailable, and the next one is revealed after 60 seconds. Contestants need to code the solution from scratch. It is forbidden to use ...

Full text and comments »

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

29.
By maroonrk, history, 11 days ago, In English
New Proctoring Rules for AGC. Starting with **AGC080 on December 13, 2026**, the rules for participation and recording will change for AtCoder Grand Contests (AGCs). These changes apply only to AGCs. Please read the [new rules](https://info.atcoder.jp/entry/agc_proctoring_rules_en) carefully before participating, as they differ substantially from the previous rules. The main points are: - To <span style="color: red;">increase your rating</span> or earn GP30 points, you must **submit valid recordings**. - The requirements are stricter for both the screen recording and the camera recording of you and your surroundings. - <span style="color: red;">A minimum rating will now apply to unrated participation as well.</span> The minimum is 1200. If your rating is below 1200, you will be unable to view the problems during the contest. - <span style="color: red;">Unrated participants will not appear in the standings or earn GP30 points.</span> - If you participate as a rated contestant and submit valid recordings...
away from our contests. Even so, I continue to believe that this rule change is necessary., behind every rule. However, in drawing up these new rules, we investigated a wide variety of cases and, our contests. Even so, I continue to believe that this rule change is necessary. Because we

Full text and comments »

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

30.
By brunomont, 6 months ago, In English
Chinese Postman Problem: How I Ran a 180 km Ultramarathon Through Every Street in My City Hello, Codeforces! A couple of years ago, a friend of mine told me that two cyclists had passed through every single street in the center region of the city I live in (Belo Horizonte, southeastern Brazil), on the [third try](https://www.strava.com/activities/1030665876/overview). <spoiler summary="First try"> After ~160 km, they had not completed 1/3 of the goal. [Strava link](https://www.strava.com/activities/976021527). <img src="/predownloaded/8a/53/8a53829f7d78e88808a3ff751b64406ec2fc0efd.png" style="width: 600.0px;max-width: 100.0%;max-height: 100.0%;"> </spoiler> <spoiler summary="Second try"> They were better prepared, but one of the guys was run over by a car (no big injuries). [Strava link](https://www.strava.com/activities/999450285). <img src="/predownloaded/85/8f/858fdcdcfda93cd1d9c7c59db7dbfad9e63d6ea2.png" style="width: 600.0px;max-width: 100.0%;max-height: 100.0%;"> </spoiler> <center> <img src="/predownloaded/8d/5c/8d5cfb677a361654105e49f36f214c35...

Full text and comments »

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

31.
By dotorya, history, 8 years ago, In English
Multiple accounts for one person should be banned Recently, There seems to be so many multiple accounts among various rating ranges. In top 10, there is [user:CongLingDanPaiShang3k5,2018-10-14], who became Legendary Grandmaster in 2 months. He should be a great genius, right? There is better hypothesis: He is someone's smurfing account. Everybody knows that [user:jiry_2,2018-10-14] = [user:Syloviaely,2018-10-14]. He performed quite a long ago, but it's the fact that he has multiple accounts, both having 2900+ ratings. In Div2 contests, many black-colored people are at top of the scoreboards. Why there are always a lot of talented newcomers? You will know the reason. Why don't Codeforces ban those multiple accounts? They ruins contest scoreboard and rating system. For example, [user:CongLingDanPaiShang3k5,2018-10-14] "absorbed" other participants rating for about 5-6 contests to be Legendary Grandmaster. On those contest's scoreboard, there were always him on top pages. One account for one person. That was the rule. Sm...
scoreboard, there were always him on top pages. One account for one person. That was therule, One account for one person. That was the rule. Smurfing accounts should be banned.

Full text and comments »

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

32.
By ATSTNG, history, 7 years ago, In English
[Tutorial] Matroid intersection in simple words **[This article is also available in [Russian](https://codeforces.me/blog/entry/69287?locale=ru)]** Hello, CodeForces. I think that matroids are beautiful and powerful concept, however, not really well known in competitive programming. I’ve discovered matroids at 2019 Petrozavodsk Winter Training Camp. There was a problem that clearly cannot be solved using usual techniques I knew, editorial for this problem was just these three words “just matroid intersection”. Back then it took me more than 2 days of upsolving to find all the information and details I need and implement solution that gets Accepted on this. And it took way longer to actually understand why does it work and exactly how does it work. (I still hesitate in some details.) Of course, it is not hard to google up all the definitions and some related articles, but in my opinion they all are focused more on mathematical part of theory, strict proofs in some not really obvious but short ways, and observing only ke...

Full text and comments »

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

33.
By PinkieRabbit_buster, 3 years ago, In English
PinkieRabbit Cheated in Div. 1 Contest on Apr 27 I am writing to report an incident of cheating by PinkieRabbit during the recent contest 1965 on Codeforces. **PinkieRabbit asked help about problem D from others during the contest,** which is definitely against the contest rules. I have attached the evidence of the cheating behavior in the appendix, please read it. This evidence clearly shows the communications PinkieRabbit had with another person during the contest. It is a contest recording video published after contest by himself. As a former fan of PinkieRabbit, after seeing this video, I was shocked by how dishonest PinkieRabbit was. I believe such actions undermine the integrity of the competition and the platform as a whole. [user:win114514,2024-05-05] cheated by grouping up in contest 1905, finally punished by skipping. Therefore, I respectfully request that Codeforces take appropriate action against PinkieRabbit to maintain the fairness of the contests on Codeforces. He only cheated in one problem this round, so I sugg...

Full text and comments »

34.
By peltorator, 3 years ago, In English
A story about the worst contest organization ever. Or how to invent rules to have rules. Today, the European Championship was held in Prague. The first of its kind. And it was... the worst organized contest I have ever participated in. This is not only sad in isolation but also especially sad as the contest itself (the problems) was actually nice, and I would like to thank the authors for that! So what was so bad about it? Let me describe how entering the contest works. One first goes to the cloakroom. Then, one proceeds via a long corridor to another building, where in a relatively small space, all teams gather for half an hour. Then, "id check" begins. I mean... I have never seen this before but in itself, there is nothing wrong with it. They want to check your identity. Makes sense. However, what do you think would be a reasonable way to do it? I would think that one and only reasonable way to do it is the following: one comes to the entrance of the contest area, a volunteer checks their id and matches with their badge, and the contestant comes in. As you could ha...
rules just to have rules. But this one... This one was pure fun. As a final rule that comes out of, . But this one... This one was pure fun. As a final rule that comes out of nowhere: [link](https

Full text and comments »

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

35.
By errorgorn, 3 years ago, In English
Confession: I sent problem H to goodbye Going to be 100% honest here, I sent problem H to goodbye. I feel really bad to authors of Goodbye 2023 for ruining their round, it seems the round would have been better by just removing H. As much as the community is out here roasting [user:74TrAkToR,2023-12-31], I also had a part to play in this contest. I wish to be as transparent as I can here without saying any classified information (apologies to [user:KAN,2023-12-31] and [user:74TrAkToR,2023-12-31] if anything here shouldn't be disclosed). To give some context, here is what went down in goodbye round from my perspective: - 13 days before contest: KAN asks me if I can source a 1E for goodbye. I asked traktor to send me the testing gym so that I could gauge how hard the 1E should be. He told me he will send me after he translates the statements. (UPD: Note that the IMO 1986 problem was already removed before this stage which is why a new 1E was needed, I never saw this IMO problem) - 11 days before contest: traktor send it...

Full text and comments »

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

36.
By maroonrk, 9 months ago, In English
AGC Proctoring Rules [Original Post on AtCoder](https://atcoder.jp/posts/agc_proctoring_en) **Starting with AGC077 on 3/29**, submitting a recording will be required in order to earn a **GP30 score**. For basic information about GP30 scores and AWTF2027, please refer to [this article](https://atcoder.jp/posts/1636). The detailed rules regarding recordings are as follows. ## Recording Requirements - Participants must record their **entire screen** during the contest. However, it is acceptable for part of the screen to be covered by a camera feed, as shown in the example below. Even in that case, be careful not to obscure important areas such as coding or program output. - If multiple monitors are used, all of them must be recorded. - However, if a tablet is used for notes or scratch work, recording it is not required. - No specific screen resolution is required, but the text must be legible. - The frame rate must be at least 10 FPS. - In addition to the screen recording, you must also ...

Full text and comments »

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

37.
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. ...
"rule" right now -- why not come clear about it? Otherwise it favors people who make unspecified, pretests wouldn't be equal to systests, right? So if pretests = systests is really such a "rule

Full text and comments »

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

38.
By zscoder, history, 7 years ago, In English
[Tutorial] Generating Functions in Competitive Programming (Part 2) Welcome to Part 2 of my tutorial on generating functions. The [first part](https://codeforces.me/blog/entry/77468) focused on introducing generating functions to those without any background in generating functions. In this post, I will demonstrate a few applications of generating functions in CP problems. Let us start with some relatively straightforward examples. Note: Unless stated otherwise, all computations are done modulo a convenient prime (usually $998244353$). Also, $[n]$ denotes the set $\\{1,2,...,n\\}$. ### Blatant Applications in Counting Problems **Problem.** [AGC 005 Problem F](https://atcoder.jp/contests/agc005/tasks/agc005_f) You have a tree $T$ with $n$ vertices. For a subset $S$ of vertices, let $f(S)$ denote the minimum number of vertices in a subtree of $T$ which contains all vertices in $S$. For all $1 \le k \le n$, find the sum of $f(S)$ over all subsets $S$ with $|S| = k$. Constraints: $n \le 2 \cdot 10^{5}$. <spoiler summary="Solution"> First, ...
$c(k)$). This is just $C_{o}'(1)$. By Quotient Rule, this is equivalent to finding $\frac{A_{o}'(1, respect to $u$. Then, by the Chain Rule,, $E'(1)$ is not hard either. By Quotient Rule,, )$ by the "multiplication by $n$" rule. In any case, we work in generating functions to obtain, )$. Using quotient rule, we have (differentiating with respect to $x$),, Note that by Quotient Rule, $\left(\frac{1}{1-ux}\right)' = \frac{u}{(1-ux)^{2}}$.

Full text and comments »

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

39.
By SlavicG, 5 years ago, In English
How to use Codeforces [GUIDE] I see a lot of newcomers struggling to use the website to it's fullest, so I decided to write a blog that has all important information about how to use Codeforces in a single place. I will update it with time, so feel free to write your suggestions/questions in case I missed something and I will be glad to add it to the post! I would like to thank [user:_Vanilla_,2022-02-05] and [user:mesanu,2022-02-05] for helping me write the blog, and [user:Monogon,2022-02-05], [user:down,2022-02-05] and [user:AlperenT,2022-02-05] for proofreading and giving suggestions. #### Navigating through pages ![ ](https://media.discordapp.net/attachments/705371983650619454/928235498487570442/bandicam_2022-01-05_12-36-00-134.jpg?width=991&height=110) It's possible to navigate through most pages of Codeforces using the bar on the top, I will talk about what each tab does more in depth below: #### The Help Page The help page contains the answer to a lot of questions about Codeforces, such as rati...

Full text and comments »

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

40.
By AlperenT, 8 months ago, In English
April Fools Day Contest 2026 Hello, Codefoolers! We, [user:AlperenT,2026-03-29], [user:Ari,2026-03-29], [user:ToxicPie9,2026-03-29], [user:flamestorm,2026-03-29], [user:prvocislo,2026-03-29], [user:temporary1,2026-03-29], and [user:willy108,2026-03-29] would like to invite everyone on Codeforces to [contest:2214]! The 14th April Fools Day Contest will take place on [contest_time:2214]. This is a joke competition in which solving the problem is often easier than figuring out what the actual task is. In this round, you will be given $n$ problems where $n$ is the number of different AI models I used today and **2** hours to solve them. The contest will use extended ICPC rules (no hacks, the standings are decided by the number of solved problems and penalty time earned on them). You can submit solutions in any language allowed by Codeforces, unless the problem says otherwise. There will be at least one non-interactive problem. In case you do not care about those problems, [here](https://codeforces.me/blog/e...

Full text and comments »

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

41.
By chenjb, 3 years ago, In English
The 2nd Universal Cup Semifinal & 2024 Summer Summit Announcement <center> <img src="/predownloaded/a6/3b/a63b8b0dc4b18f3e18c316abc22d4677aa075fd8.png" style="height: 262.0px;max-width: 100.0%;max-height: 100.0%;"> </center> **UPD:** **We plan to host the 2024 Universal Cup Summer Summits in Cancún, Mexico. The event has been scheduled from June 19 to June 23. The detailed schedule, materials, and list of the invited teams will be announced in the future. The 2nd Universal Cup Semifinals will be held on June 23, 2024. The contest will start at 17:00 (UTC +8) and end at 22:00 (UTC +8). Please note that there will be no extra time windows on the semifinals contest &mdash; all the teams must start in the only official time window. You may check the event time on your local timezone here: [Link](https://www.timeanddate.com/worldclock/fixedtime.html?msg=The+2nd+Universal+Cup+Semifinals&iso=20240623T17&p1=33&ah=5). The onsite participants will participate in the semifinals on June 22nd (one day before the online participants)** Hello everyone, w...

Full text and comments »

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

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

Full text and comments »

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

43.
By AlperenT, 3 years ago, In English
April Fools Day Contest 2024 Hello, <s>April Fools lovers</s> Codeforces! We, [user:AlperenT,2024-03-26], [user:flamestorm,2024-03-26], [user:toxicpie9,2024-03-26], and [user:willy108,2024-03-26], would like to invite everyone on Codeforces to [contest:1952]! The 12th April Fools Day Contest will take place on [contest_time:1952]. This is a joke competition in which solving the problem is often easier than figuring out what the actual task is. In this round, you will be given $n$ cool bugaboos where $-1 \le n \le \textbf{[REDACTED]}$ and **2** hours to solve them. The contest will use extended ICPC rules (no hacks, the standings are decided by the number of solved problems and penalty time earned on them). You can submit solutions in any language allowed by Codeforces, unless the problem says otherwise. Please note that the round is **unrated** and that the penalty for a **wrong submission** is **10** minutes. To get an idea of what the contest will look like, you can check out the contests of the pas...

Full text and comments »

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

44.
By peltorator, 4 years ago, In English
Codeforces Month of Blog Posts (win $300) **TL;DR:** Write an interesting CodeForces blog post until February 15th and win $300. **UPD: Second place will receive $50.** **UPD2: Competition is over, The results are available [here](https://codeforces.me/blog/entry/113041).** I am a huge fan of CodeForces and specifically CodeForces blog posts! There are tens and hundreds of gems posted on this platform throughout the years. Thankfully, recently there was added the [catalog](https://codeforces.me/catalog) page where a lot of cool articles can be found. Personally, if I want to remember some classical algorithm, I would go to websites like [cp-algorithms](https://cp-algorithms.com/), but CodeForces is the place where new or rare stuff is born, where new points of view emerge. I think it is one of the most valuable functions of this website, and I would like to facilitate its growth. I know that many people have cool ideas in their minds that they came up with or maybe something that is known only in their community on ...

Full text and comments »

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

45.
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: *...

Full text and comments »

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

46.
By maroonrk, history, 5 months ago, In English
Regarding AtCoder’s Ban Policy and the Recent ARC222 Ban In ARC222, held last week, we banned a user who had been in first place at one point during the contest. This has led to discussion about AtCoder’s ban system, so I would like to explain several points. ## General Policy The people responsible for making ban decisions are well aware that there may be strong competitors who have not participated in many contests before. We do not ban users merely because they achieve good results. That said, we cannot say that the possibility of a mistaken ban is completely zero. Recently, every time we hold a contest, tens to hundreds of bad actors have attempted to achieve high rankings using AI. Their methods have also become increasingly sophisticated, and we spend a great deal of time and effort making these judgments. As a result, we cannot completely deny the possibility that legitimate participants may be banned by mistake. However, for users who have already participated in dozens of contests, we conduct thorough investigations a...
As a rule, we do not provide detailed explanations regarding individual bans. However, X is a user

Full text and comments »

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

47.
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...
We decided to write explicitly rule 4 since there is

Full text and comments »

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

48.
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...
behavior. This is the first and the most important rule of problem making: your problem should be new, important rule of problem making: your problem should be new up to your best knowledge. A lot of

Full text and comments »

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

49.
By -is-this-fft-, history, 4 years ago, In English
[Tutorial] FFT If I was a YouTuber, this would be the place where I fill the entire screen with screenshots of people asking me to make this. Anyway, not so long ago I gave a lecture on FFT and now [user:peltorator,2023-01-11] is giving away [free money](https://codeforces.me/blog/entry/110840), so let's bring this meme to completion. In this blog, I am going to cover the basic theory and (competitive programming related) applications of FFT. There is a long list of generalizations and weird applications and implementation details that make it faster. Maybe at some point I'll write about them. For now, let's stick to the basics. **The problem.** Given two arrays $a$ and $b$, both of length $n$. You want to quickly and efficiently calculate another array $c$ (of length $2n - 1$), defined by the following formula. $$c_k = \displaystyle \sum_{i + j = k} a_i \cdot b_j.$$ Solve it in $O(n \log n)$. First of all, why should you care? Because this kind of expression comes up in combinatorics a...

Full text and comments »

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

50.
By MikeMirzayanov, history, 11 years ago, translation, In English
How to come up with the solutions: techniques As I work with students I often face the situation when if a problem doesn't seem clear to a student at the first sight, it makes them unable to solve it. Indeed, you always hear about specific methods and techniques. But you don't hear about how to think in order to apply them. In this note I'll try to sum up my experience of solving programming contest problems. However, some pieces of advice will also be applicable for olympiads in mathematics and your first steps in academic research. So you've read a problem and you don't know how to solve it. Try the following techniques, some of them can often come handy. ##### Technique 1: "Total Recall" Try to remember some similar problems that you had to solve. Quite many problems do not have a brand new idea. So probably, you can use your experience of solving a similar problem to solve this one. ##### Technique 2: "From Specific to General" Let's say that you've found the solution for the problem (hurray!). Let's consider ...

Full text and comments »

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

51.
By Qingyu, 16 months ago, In English
The 3rd Universal Cup Semifinals Hello everyone, we are happy to announce The 3rd Universal Cup Semifinals! The Semifinals will be held online to determine the teams advancing to The 3rd Universal Cup Finals. The contest takes place on August 24, 2025, at 11:00 UTC ([time in your local timezone](https://www.timeanddate.com/worldclock/fixedtime.html?iso=20250824T1900&p1=33&ah=5)) and will last 5 hours in the classical ICPC format. The contest is open to everyone. If you haven’t registered yet, join us today! <center style="margin: 2.5em;"> <a href="https://contest.ucup.ac/register" style="text-decoration: none;font-size: 24.0px;background-color: rgb(140,40,60);color: white;font-weight: bold;padding: 0.5em 1.0em;">Register!</a> </center> For more information, please refer to our earlier announcements: - [Contest Rules](https://qoj.ac/blog/qingyu/blog/1339) **Please read the rules carefully if you want to be a finalist!** We have a proctoring rule this year! - [TechNotes](https://qoj.ac/blog/qingyu/blog...
want to be a finalist!** We have a proctoring rule this year! - [TechNotes](https://qoj.ac/blog

Full text and comments »

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

52.
By AlperenT, 20 months ago, In English
April Fools Day Contest 2025 Hello, Codefoolers! We, [user:AlperenT,2025-03-28], [user:flamestorm,2025-03-28], [user:prvocislo,2025-03-29], [user:temporary1,2025-03-28], [user:Toxicpie9,2025-03-28], and [user:-1e11,2025-03-28], would like to invite everyone on Codeforces to [contest:2095]! The 13th April Fools Day Contest will take place on [contest_time:2095]. This is a joke competition in which solving the problem is often easier than figuring out what the actual task is. In this round, you will be given $n$ problems where $\sum\limits_{x=1}^{\infty} \frac{1}{x^n}$ converges and **2** hours to solve them. The contest will use extended ICPC rules (no hacks, the standings are decided by the number of solved problems and penalty time earned on them). You can submit solutions in any language allowed by Codeforces, unless the problem says otherwise. Please note that the round is **unrated** and that the penalty for a **wrong submission** is **10** minutes. To get an idea of what the contest will look lik...

Full text and comments »

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

53.
By viktork, 12 years ago, translation, In English
ZeptoLab Code Rush 2015 Hello, Codeforces! <b><i>The problems were suggested by users [user:roosephu,2015-04-04] and [user:sunayuki,2015-04-04]. The great help in preparing was provided by [user:Aksenov239,2015-04-04], [user:GlebsHP,2015-04-04] and Codeforces team. ZeptoLab Team did its best while working on statements.</i></b> <b><i>The round will use smoother dynamic problem scores with 250 points steps.</i></b> In 2014 we hosted our [first programming contest](/zeptolab2014) together with Codeforces, and we liked it! Let me shortly remind you how it was. The contest consisted of 6 problems, 2.5 hours were given to solve (you can have a look at the problems of the previous year and try to solve them [here](/contest/436)). Of course, even on a purely coding event we stayed true to ourselves, so all problems were designed based on our games, and, of course, we illustrated them with care: <center> <img src="http://assets.codeforces.com/images/zepto2015/pics2014.jpg"/> </center> Zepto C...

Full text and comments »

Announcement of ZeptoLab Code Rush 2015
  • Vote: I like it
  • +886
  • Vote: I do not like it

54.
By kiwii, 5 years ago, In English
COMPFEST 13 Finals Mirror (Unrated, ICPC Rules, Teams Preferred) <img alt="logo" src="/predownloaded/31/e8/31e886f0ba055023282a2f68b4b254d98c02c727.png" style="float: right;height: 100.0px;margin: 10.0px;max-width: 100.0%;max-height: 100.0%;"> Hi <strong><span style="color:#bfac00;">Code</span><span style="color:#006fbf;">for</span><span style="color:#b00000;">ces</span></strong> ଘ(੭*ˊᵕˋ)੭* ੈ♡‧₊˚! We're delighted to invite you to [COMPFEST 13 &mdash; Finals Online Mirror (Unrated, ICPC Rules, Teams Preferred)](https://codeforces.me/contests/1575) on <a class="contest-time" contestid=1575></a>. All problems were written and prepared by [user:hocky,2021-09-18], [user:steven.novaryo,2021-09-18], [user:rama_pang,2021-09-18], [user:JulianFernando,2021-09-18], [user:Zap,2021-09-18], [user:Panji,2021-09-24], [user:richiesenlia,2021-09-24], [user:Sakamoto,2021-09-24], and [user:Markus_geger,2021-09-24]. I would also like to thank: - [user:KAN,2021-09-18] for helping to host the mirror round; - ([user:AVM.Martin,2021-09-30], [user:Ace_02,202...

Full text and comments »

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

55.
By Um_nik, history, 4 years ago, In English
MIT Mystery Hunt Disclaimer: This blog is not about competitive programming; you probably will not learn anything about algorithms and data structures. In other words, it doesn't qualify for [this initiative](https://codeforces.me/blog/entry/110840), but I want to give a link to it anyways because I think it's cool. I love solving problems. No, seriously. I LOVE it. The mindset described in [this blog](https://codeforces.me/blog/entry/91114) is 100% how I feel. But it is not constrained to competitive programming problems. I loved math problems for a much longer time, and physics was somewhere there. But I also love solving puzzles. And playing puzzle games on the computer (well, on consoles). And participating in intellectual games. I am not as good in them as in cp, but it was never about being good for me, I just love the process. And I think that there might be some people with a similar love for puzzles among competitive programmers, this is why I decided to write this blog on CF <s>and no...

Full text and comments »

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

56.
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...
We decided to write explicitly rule 4 since there is

Full text and comments »

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

57.
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...
you (unless you register unrated). Also, note the [rule restricting the use of AI](https, Also, note the [rule restricting the use of AI](https://codeforces.me/blog/entry/133941). If you

Full text and comments »

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

58.
By Pyqe, history, 3 years ago, In English
COMPFEST 15 Preliminary Online Mirror (Unrated, ICPC Rules, Teams Preferred) <img alt="logo" src="/predownloaded/54/ec/54ec8a2a974eb225636db378f5470e039144d49b.png" style="float: right;height: 100.0px;margin: 10.0px;max-width: 100.0%;max-height: 100.0%;"> Hello, **Codeforces**! &#x1f60d;&#x1f60d; We are happy to invite you to participate in [COMPFEST 15 Preliminary Online Mirror (Unrated, ICPC Rules, Teams Preferred)](https://codeforces.me/contests/1866) on <a class="contest-time" contestid=1866></a>. COMPFEST is a national **ICPC-style contest** for university students in Indonesia. The problems are written and prepared by [user:ArvinCiu,2023-08-30], [user:asteriskzie,2023-08-30], [user:CyberSleeper,2023-08-30], [user:Edbert.H,2023-08-30], [user:FreeJinG,2023-08-30], [user:gansixeneh,2023-08-30], [user:KokiCoder,2023-08-30], [user:nandonathaniel,2023-08-30], and [user:Pyqe,2023-08-30]. We would also like to thank: - [user:KAN,2023-08-30] for helping to host the mirror round; - [user:AMnu,2023-08-30], ([user:KerakTelor,2023-08-30], [user:Owmic...

Full text and comments »

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

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

60.
By purplesyringa, 5 years ago, In English
This is not an exit. ![This is not an exit.](https://i.ibb.co/N9zrDNp/cf.png) I am looking at the post called [*Is Mike Mirzayanov dictator?*](https://codeforces.me/blog/entry/94033) at the moment. I'm reading through the comments, I'm looking at people's reactions, I'm reading Mike's replies, and... I am utterly disappointed. I demand progress. For context, I do believe Codeforces is the best website for competitive programming contests at the moment. I sincerely give credit to Mike for creating Codeforces and providing participants and contest authors a platform for interaction completely for free. I am confident that Codeforces is the most appropriate website for being *the* platform for sharing knowledge, exchanging tricks and methods, and collaboration between both contest participants, their authors, and coordinators. **Please consider this an open letter**, for this is a will not of a single person, but of many individuals. Please consider signing it by stating so in a comment under the...
> Even If he is a dictator, I am very much willing to live under his rule :)

Full text and comments »

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

61.
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...
We decided to write explicitly rule 4 since there is

Full text and comments »

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

62.
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...
way. Pretend that we process all the union queries first, with the union-by-rankrule but with no, will be incredibly shallow. For example, the union-by-rank rule would never make the root of the, **Observation 1.** If the union-by-rank rule is used, the number of descendants (including the, **Observation 2.** The time complexity of union-find with the union-by-rank rule is $\mathcal{O}(n, - Maintains a forest, keeping the parent of each vertex. - Has some kind of rule about which way, Notice that by the path compression rule, the next `find` call from $u$ will generate a find-path

Full text and comments »

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

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

Full text and comments »

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

64.
By Ormlis, history, 4 years ago, translation, In English
Codeforces Round #829 (Div.1, Div.2, based on Moscow Team Olympiad, rated) Hi everybody, This Sunday there will be a XX Moscow Team Olympiad, high school students competition based in Moscow that is an elimination contest for All-Russian Team Olympiad. This contest is prepared by Moscow Olympiad Scientific Committee that you may know by Moscow Open Olympiad, Moscow Olympiad for Young Students and Metropolises Olympiad (rounds <a href="https://codeforces.me/blog/entry/21185">327</a>, <a href="https://codeforces.me/blog/entry/23309">342</a>, <a href="https://codeforces.me/blog/entry/43615">345</a>, <a href="https://codeforces.me/blog/entry/47769">376</a>, <a href="https://codeforces.me/blog/entry/50613">401</a>, <a href="https://codeforces.me/blog/entry/54350">433</a>, <a href="https://codeforces.me/blog/entry/55201">441</a>, <a href="https://codeforces.me/blog/entry/57981">466</a>, <a href="https://codeforces.me/blog/entry/58229">469</a>, <a href="https://codeforces.me/blog/entry/61638">507</a>, <a href="https://codeforces.me/blog/entry/62440">51...

Full text and comments »

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

65.
By bashkort, 19 months ago, In English
FAQ, Advice & AMA This post assumes you're super ambitious. But don't take any advice too seriously -- we're all different. This is simply what worked for me and might work for you. Choose your own path. #### Useful Links - [LI2 Contests](https://codeforces.me/blog/entry/131164) -- used this course when I was starting out. - [usaco.guide](usaco.guide) -- a collection of great articles & problems on almost all topics. - [OI Checklist](https://docs.google.com/spreadsheets/d/15b1ZaP1owTfTcA4vQ69A5S_wUd_vJmM8Slwu6FiWgP4/edit?usp=sharing) -- my OI Checklist. - [Pavel Mavrin's youtube channel](https://www.youtube.com/channel/UC9WDkCyUlNTncq1Y-mFSgLQ) -- watched his great lectures when I was younger :) - [qoj.ac](qoj.ac), [loj.ac](loj.ac), [dmoj.ca](dmoj.ca), [oj.uz](dmoj.ca), ... #### How do I start? **Advice:** join a great community (school, club, ...), try solving problems, and find someone who can answer your silly questions. I wouldn't have started CP if not for my school. Of c...
**Another rule of thumb:** if you don't fail at least 50% of your goals, they are not ambitious, **Last rule of thumb:** set goals such that if successful, will make the rest of your career look, **Rule of thumb:** if you are not embarrassed to say your goal out loud to your friends, the goal, **Rule of thumb:** track progress in months, not days., **Rule of thumb:** you love something truly if you enjoy even the parts that others find strange, **Rule:** In any field, you can't do great things if you're not thinking about it in the shower

Full text and comments »

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

66.
By okwedook, 6 years ago, translation, In English
Codeforces Round #703 (Div. 2) Editorial [problem:1486A] <spoiler summary="Hint1"> What's the lower bound for the amount of blocks for the answer to be $\texttt{YES}$? </spoiler> <spoiler summary="Hint2"> Check the predicate for every prefix. </spoiler> <spoiler summary="Solution"> Let's consider the smallest amount of blocks we need to make the first $i$ heights ascending. As heights are non-negative and ascending the heights should look like $0, 1, 2, 3, ..., i - 1$, so the minimum sum is $\frac{(i - 1) \cdot i}{2}$. It turns out that this is the only requirement. If it's not the case for every prefix the answer is $\texttt{NO}$ because we can't make some prefix ascending. Otherwise the answer is $\texttt{YES}$ because you can move the blocks right till there is at least $i$ blocks in the $i$-th stack and this would make the heights ascending. </spoiler> Solution using C++: [submission:107892022]<br> Solution using Python: [submission:107892053] [problem:1486B] <spoiler summary="Hint1"> Is proble...
How to change the graph for dijkstra algorithm to work with this rule

Full text and comments »

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

67.
By Vladosiya, history, 9 months ago, In English
Why we won't revoke AhmetKaan ban Hello, Codeforces! The situation involving [user:AhmetKaan,2026-03-11] has generated some discussion. I would like to summarize the information we have reviewed and explain the reasoning behind our final decision. #### About evidence First of all, it is important to note that we cannot have absolute proof in such cases. We cannot see private conversations with AI tools, chats with other people, or other external sources of help. The only reliable data available to us are the submissions. Because of this limitation, some decisions are based on some red flags we see rather than a single definitive proof. If we do not act this way, we will get overwhelmed by a wave of cheaters. Therefore, we believe this is the only effective way to respond to the recent increase in cheating. After the appeal, we reviewed the case and collected the following observations. #### 1. Codeforces Round 1085 - The submissions [submission:365891594], [submission:365892799], [submission:365894412] ...

Full text and comments »

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

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

69.
By cry, 15 months ago, In English
Codeforces Round 1050 (Div. 4) <center> <img src="https://codeforces.me/predownloaded/aa/9f/aa9f258454379845a0619839fde95151d3902e8f.png" style="width:100px;"/> </center> <div class="youtube-container" style="float:right; margin:0 1em 1em 1em; text-align:center;"> <iframe width="315" height="560" src="https://www.youtube.com/embed/VK969nPLEcc" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> </div> I am extremely delighted to invite you to participate in my first solo round, [contest:2148], starting on [contest_time:2148]. There will be $7$ problems to be solved in $2$ hours and $15$ minutes. The format of the event will be identical to Div. 3 rounds: - ICPC rules with a penalty of 10 minutes for an incorrect submission; - 12-hour phase of open hacks after the end of the round (hacks do not give additional points) - after the end of the open hacking phase, all so...
**PLEASE NOTE** the [rule restricting AI use](https://codeforces.me/blog/entry/133941). If you are

Full text and comments »

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

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

71.
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...
Also, note the [rule restricting the use of AI](https://codeforces.me/blog/entry/133941). If you

Full text and comments »

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

72.
By cadmiumky, 11 months ago, In English
Codeforces Month of Blog Posts Pt. III (win $400) _This blog is inspired by ~peltorator,2025-12-22's [Month of Blog Posts](https://codeforces.me/blog/entry/110840) and ~bashkort,2025-12-22's [Month of Blog Posts Pt. II](https://codeforces.me/blog/entry/133806)_ **TL;DR:** Post an interesting Codeforces blog until February 11th and be eligible to win up to $400. #### Intro Like my predecessors, I think I like competitive programming. Not having the chance recently to be active within it lately, and given I expect to receive an unwarranted sum of money soon enough, I thought that it may be put to good use through such an investment, as I know myself I had multiple blog ideas I wish I'd published that I only came up with under the weight of the incentive. For this reason, I am putting up the sum of **$400** to contention. I've seen at least in the previous edition that distribution changed with the time, and acknowledging that I can't really predict the quality density of the blogs to come up, I mention I reserve the right ...

Full text and comments »

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

73.
By adamant, 16 months ago, In English
GF: Competitive programming Discord server (Div. 1 only) Hi everyone! Every once in a while someone makes a competitive programming [Discord server](https://discord.com). Today, we're inviting you to join one of them &#128522; So, first things first, the big flashy link for those who want to cut to the chase: <br><br> <center> <span style="display:inline-block; border:2px solid #ccc; padding:10px; border-radius:8px; background:#f9f9f9;"> <a href="https://discord.gg/sTk4khgmSd" style="font-weight:bold; font-size:1.2em;">Join us!</a> </span> <div style="margin-top:5px; font-size:0.85em;"> <a href="https://discord.gg/bitset" style="color:#555;">discord.gg/bitset</a> </div> </center> **Name**: GF<br> **Members**: 1000+ (and growing!)<br> **Admins**: ~Halzion,2025-08-09 ~rewhile,2025-08-09 ~defnotmee,2025-08-09, ~adamant,2025-08-10<br> **Moderators:** <table style="border-collapse:collapse; border:none; margin-left:2em;"> <tr> <td style="border:none; padding:0 8px;">~jeroenodb,2025-08-09</...
originate, we believe that this rule helps maintain appropriately high discussion level, and provides

Full text and comments »

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

74.
By __baozii__, history, 5 months ago, In English
Spectral::Cup 2026 Round 3 (Codeforces Round 1110, Div. 1 + Div. 2) Hello Codeforces! I am glad to invite you to participate in [contest:2245], which will start on [contest_time:2245]. You will be given **2 hours and 30 minutes** to solve **8** problems, where **one problem** will be split into subtasks. Also, there is **at least one** interactive problem, so you are recommended to read the [guide](https://codeforces.me/blog/entry/45307) to interactive problems if you have not encountered them before. Note that **hacks will be disabled** for problems A to D. All problems are authored and prepared by myself. Note the [rule restricting the use of AI](https://codeforces.me/blog/entry/133941). If you are caught breaking this rule, you will be thrown into [user:SSerxhs,2026-07-09]'s basement. For your own well-being, I suggest adhering to the rules. I would like to thank the following people for helping make this round possible! - [user:SSerxhs,2026-07-09] for his/her satisfactory coordination. - [user:Alexdat2000,2026-07-12] for trans...
prevent unfair participation and rule violations._, Note the [rule restricting the use of AI](https://codeforces.me/blog/entry/133941). If you are

Full text and comments »

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

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

Full text and comments »

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

76.
By -is-this-fft-, 4 years ago, In English
[Tutorial] My way of understanding Dinitz's ("Dinic's") algorithm **Part 1: [Tutorial] My way of understanding Dinitz's ("Dinic's") algorithm** [Part 2: [Tutorial] Minimum cost (maximum) flow](https://codeforces.me/blog/entry/105330) [Part 3: [Tutorial] More about minimum cost flows: potentials and Dinitz](https://codeforces.me/blog/entry/105658) #### Introduction My philosophy on writing blogs is that I only write blogs when I feel that I have something new and interesting to contribute. This is usually not the algorithm itself, of course, but it can be that I recently found or heard of a new perspective or I figured out a way to explain something in a new way. This is in contrast to my dear colleagues at GeeksForGeeks who write the most low-effort (and often wrong) tutorial on everything and then sit at the top of Google results using their somehow world-class SEO. This is one such case. I have an idea how to explain Dinitz's algorithm in a way I haven't heard of before (but it is not very hard to come up with, so this is...
some flow running around in a circle, not "coming" from $s$. Likewise, there is norule that flow, - _Edge rule:_ For every edge $e$, $0 \le f(e) \le c(e)$: the flow on every edge is nonnegative, The first flow satisfies the edge rule, but the vertex rule is broken: in the top-left vertex, The function $f' - f$ is almost like a flow: the vertex rule still holds perfectly. The edgerule

Full text and comments »

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

77.
By Sammarize, 11 years ago, translation, In English
Short instruction of formulas writing (translation) In this post I want to describe in short how to write a formulas on Codeforces. In fact it is short introduction to the markup language $\TeX$ used on Codeforces. Three important rules. ---------------------- Foremost rule: formula me place in dollars (`$`), as well as in parentheses. Another important rule: if you want to apply some operation to some group of symbols it is necessary to form the block using the curly braces. For instance, `2^x+y` = $2^x+y$, but `2^{x+y}` = $2^{x+y}$. Third rule &mdash; for perfectionists. For traffic economy Codeforces print simple formulas by usually text. Sometimes it is not very pretty: `C_{x_i+y_i-2}^{x_i-1}` = $C_{x_i+y_i-2}^{x_i-1}$. Is this case you can add command `\relax` at the beginning of the formula. Then the formula is guaranteed to be beautiful: `\relax C_{x_i+y_i-2}^{x_i-1}` = $\relax C_{x_i+y_i-2}^{x_i-1}$. Arithmetic operations. ---------------------- Addition and subtraction can be written ordinary symbols + and -. Mu...
Another important rule: if you want to apply some operation to some group of symbols it is, Three important rules. ---------------------- Foremost rule: formula me place in dollars

Full text and comments »

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

78.
By Qingyu, 3 years ago, In English
The 3rd Universal Cup Announcement (with Details of Upcoming Online and Onsite Event on June 23!) <center> <img src="/predownloaded/a6/3b/a63b8b0dc4b18f3e18c316abc22d4677aa075fd8.png" style="height: 262.0px;max-width: 100.0%;max-height: 100.0%;"> </center> Hello everyone, we are happy to announce that the 3rd Universal Cup has started officially. Universal Cup is an organization dedicated to offering training resources for competitive programming teams. In the previous season, over 900 teams from more than 500 affiliations all over the world, registered and participated in a total of 28 stages, encompassing contests from Asia, Europe, and America. We also want to express our gratitude to our sponsor [Huawei](https://codeforces.me/blog/entry/122510). - Semifinal and Summer Summit --------------------------- As announced before ([Link](https://codeforces.me/blog/entry/127295)), we will host the 2nd Universal Cup Semifinal on June 23, 2024. The contest will start at 17:00 (UTC +8) and end at 22:00 (UTC +8). **Any Universal Cup registered team can participate. If you are...
The online stage rule is still the same as last season:

Full text and comments »

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

79.
By Errichto, 6 years ago, In English
Community IOI Weekly Classes (on Codechef?) Let's discuss the idea of IOI preparation in form of weekly contests and classes. Many programming camps reuse problems from old national camps and contests. What about doing this on a bigger scale and conducting weekly mashup contests open for everybody for free? The problem analysis would be in English, in written or (live) video format, possibly combined with a lecture. Make a discord server for further discussion and questions, encourage students to upsolve, maintain yearly leaderboard and upsolving leaderboard. Once or twice a year, call it a 1-week online camp and organize these mashup contests daily. I can take part in this initiative but I want to be just one of many teachers. When it's my turn, I would pick some old interesting POI or ONTAK problems because I either know them or can look up the solution in Polish. If I do this once per 1-2 months, I won't run out of good problems anytime soon, and I have enough time to prepare analysis and lecture, and later spend severa...

Full text and comments »

Tags ioi
  • Vote: I like it
  • +466
  • Vote: I do not like it

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

Full text and comments »

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

81.
By adamant, history, 4 years ago, In English
Combinatorial species: An intuition behind generating functions Hi everyone! The usage of generating functions is quite common in competitive programming these days. But it seems to happen so, that they're mostly presented as a way to simplify formal manipulation with polynomial coefficients, rather than something meaningful. But there actually is a meaning to all of this, and today I'm going to shed a light on it. Alongside the blog post we'll uncover the combinatorial meaning of - The addition $F(x)+G(x)$, - The multiplication $F(x)G(x)$, - The exponent $\exp F(x)$, - The logarithm $\log F(x)$, - The sum of the infinite geometric progression $\frac{1}{1-F(x)}=1+F(x)+F^2(x)+\dots$, - The general composition $F(G(x))$ for the generating functions $F(x)$ and $G(x)$ and the underlying structures they represent. ### Prerequisites - Basic notion of set theory (cardinality of sets, mappings, bijections, cartesian product, disjoint union, etc); - Polynomials and formal power series (representation, convolution formula, power seri...

Full text and comments »

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

82.
By awoo, history, 6 years ago, translation, In English
Educational Codeforces Round 90 [Rated for Div. 2] Hello Codeforces! On [contest_time:1373] [contest:1373] will start. Series of Educational Rounds continue being held as [Harbour.Space University](https://harbour.space/) initiative! You can read the details about the cooperation between [Harbour.Space University](https://harbour.space/) and Codeforces in the <a href="http://codeforces.me/blog/entry/51208">blog post</a>. This round will be **rated for the participants with rating lower than 2100**. It will be held on extended ICPC rules. The penalty for each incorrect submission until the submission with a full solution is 10 minutes. After the end of the contest you will have 12 hours to hack any solution you want. You will have access to copy any solution and test it locally. You will be given **6 or 7 problems** and **2 hours** to solve them. The problems were invented and prepared by Roman [user:Roms,2020-06-24] Glazov, Adilbek [user:adedalic,2020-06-24] Dalabaev, Vladimir [user:vovuh,2020-06-24] Petrov, Ivan [us...

Full text and comments »

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

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

84.
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...
Also, note the [rule restricting the use of AI](https://codeforces.me/blog/entry/133941). If you

Full text and comments »

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

85.
By hitman623, 7 years ago, In English
Manthan — Codefest'19 Hello Codeforces! I would like to invite you to [Manthan, Codefest'19](https://codeforces.me/contests/1208), which will take place on [Sunday, August 25, 2019 at 8:05 PM IST](https://www.timeanddate.com/worldclock/fixedtime.html?msg=Manthan%2C+Codefest%2719&iso=20190825T1435&ah=2). This is a **combined Div. 1 + Div. 2** round and is **rated** for participants from both divisions. The Department of Computer Science and Engineering, IIT (BHU) is conducting Codefest from 23rd August &mdash; 25th August. Manthan, the algorithmic programming contest under the banner of [Codefest](https://codefest.tech/), is being held as a special Codeforces round. The round follows regular Codeforces rules. ![ ](/predownloaded/c8/01/c8015f2de382f967d9e531067ca03b5b743e5ed4.jpeg) All problems in this round were created and prepared by [user:drastogi21,2019-08-23], [user:_shanky,2019-08-23], [user:enigma27,2019-08-23], [user:navpun31,2019-08-23], [user:KAN,2019-08-23] and me ([user:hitman623,201...

Full text and comments »

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

86.
By dj3500, history, 7 years ago, In English
Helvetic Coding Contest 2019 online mirror **UPDATE: the editorial is [here](https://assets.codeforces.com/files/helvetic/helvetic-coding-contest-2019-editorial.pdf)** **[Link to the online mirror](https://codeforces.me/contest/1184)** Hello CodeForces! This year again, I'd like to invite you to [the online mirror](https://codeforces.me/contest/1184) of an open championship of Switzerland called HC2 (the Helvetic Coding Contest). A mirror was also held [one](http://codeforces.me/contest/958), [two](http://codeforces.me/contest/802) and [three years ago](http://codeforces.me/contest/690). ![ ](http://dj3500.webfactional.com/petr-meme-2019.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 April the 13th, but the online mirror is scheduled on [**Sunday, 7th of July, 10:05 Moscow time**](https://www.timeanddate.com/worldclock/fixedtime.html?msg=Helvetic+Codin...

Full text and comments »

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

87.
By Petr, history, 5 years ago, In English
Submitting code you did not write at TopCoder In today's TopCoder SRM 816, the hard problem was a textbook flow problem (which was given previously as "Hard Life" on NEERC 2006 and probably in other places). Out of 9 accepted solutions: - 2 use somebody else's flow code that can be found on the Internet - 1 uses somebody else's full solution for Hard Life that can be found on the Internet According to TopCoder rules, this is not allowed (see "Using pre-written code" [here](https://www.topcoder.com/community/competitive-programming/how-to-compete)). Normally, this rule is not a big deal. However, in case of a textbook problem like this one, using code that can be found on the Internet gives a huge advantage. I knew that it's a well-known problem, but I did not copy-paste old code from somebody else because it is against the rules. Other people did, and got higher score, which is unfair. I'm not a fan of this rule, and I'd prefer copy-pasting code from others was allowed as it is on almost all other platforms, but in...
-programming/how-to-compete)). Normally, this rule is not a big deal. However, in case of a textbook problem, I'm not a fan of this rule, and I'd prefer copy-pasting code from others was allowed as it is on, Normally, this rule is not a big deal. However, in case of a textbook problem like this one, using, Topcoder admins, could you either declare that you won't enforce this rule, or declare that you

Full text and comments »

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

88.
By dj3500, 10 years ago, In English
Helvetic Coding Contest 2016 online mirror Hello CodeForces! I'd like to invite you to the online mirror of an open championship of Switzerland called the Helvetic Coding Contest. ![ ](http://hc2.ch/img/heidi_zombie.png) [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 in March, but the online mirror is scheduled on [**Sunday, 10th of July, 11:00 Moscow time**](https://www.timeanddate.com/worldclock/fixedtime.html?msg=Helvetic+Coding+Contest+2016+online+mirror&iso=20160710T0800&ah=4&am=30). The duration is 4:30. Rules: - you can participate in teams or individually (1-3 people), - standard ACM-ICPC rules (no hacking), - the contest is not rated, - if you have participated in the onsite contest, please do not participate in the mirror. You will help the cow Heidi [protect humanity against a zombie apocalypse](http://hc2.ch/img/poster/poster.png). The contest...

Full text and comments »

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

89.
By flamestorm, 4 years ago, In English
April Fools Day Contest 2023 Hello, Codeforces! I, along with [user:AlperenT,2023-03-30], [user:Ari,2023-03-30], [user:BucketPotato,2023-03-30], [user:ScarletS,2023-03-30], and [user:ToxicPie9,2023-03-30], would like to invite everyone on Codeforces to the [contest:1812]! The 11th April Fools Day Contest will take place on [contest_time:1812]. This is a joke competition in which solving the problem is often easier than figuring out what the actual task is. Please note that the round is **unrated**. In this round you'll be given $n$ weird problems and 2 hours to solve them, where $7 \leq n \leq 12$. At most $\sqrt{n}$ of the problems will be [interactive](https://codeforces.me/blog/entry/45307). The contest will use ACM ICPC rules (no hacks, the standings are decided by the number of solved problems and penalty time earned on them). You can submit solutions in any language allowed by Codeforces, unless the problem says otherwise. To get an idea of what the contest will look like, you can check out the ...

Full text and comments »

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

90.
By ouuan, history, 7 years ago, In English
One thing you should know about comparators — Strict Weak Ordering Is "In C++, comparator should return false if its arguments are equal." [all you should know about comparators in C++](https://codeforces.me/blog/entry/70237)? **Definitely NOT.** ### What's the requirement of the custom comparator in STL? It should be a *Strict Weak Ordering*. In other words, let the comparator be $f$, and $f(x, y)=true$ means $x< y$, then: 1. $f(x, x)$ must be false (Irreflexivity) 2. If $f(x, y)$ is true, then $f(y, x)$ must be false. (Antisymmetry) 3. If $f(x, y)=true$ and $f(y, z)=true$, then $f(x, z)$ must be true. (Transitivity) 4. If $f(x, y)=false$, $f(y, x)=false$, $f(y, z)=false$ and $f(z, y)=false$, then $f(x, z)=false$ and $f(z, x)=false$. (Transitivity of equivalence) In fact, *Antisymmetry* can be deduced by *Irreflexivity* and *Transitivity*, so we can ignore it. Here are some examples that these rules aren't satisfied: | Comparator | Irreflexivity | Transitivity | Transitivity of equivalence | Example | | :----------: | ...
- $x = y$ means $x \not < y$ and $y \not < x$. That's why the fourth rule above is called, There is another comparator, which is known as ["Johnson's rule "](https://en.wikipedia.org/wiki

Full text and comments »

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

91.
By maroonrk, history, 14 months ago, In English
AtCoder Grand Contest 073 Announcement We will hold AtCoder Grand Contest 073. This contest counts for GP30 scores. - Contest URL: https://atcoder.jp/contests/agc073 - Start Time: http://www.timeanddate.com/worldclock/fixedtime.html?iso=20250928T2100&p1=248 - Duration: 180 minutes - Number of Tasks: 4 - Writer: [user:maroonrk,2025-09-27] - Tester: [user:maspy,2025-09-27], [user:HIR180,2025-09-27] - Rated range: 2000 - The point values will be 700-1000-1400-1700. We are looking forward to your participation! **UPD and announcement about the AI usage in this contest** First of all, I'm terribly sorry for what happened today; Problem C was solved by an AI. It is legal to use AI in AGC contests. However, this rule was adopted under the assumption that we would not provide problems that are solvable solely by AI. What makes the situation worse is that, as far as I know, only paid plans are able to solve this problem. This is especially serious, and I fully accept your frustration. Of course, I te...
legal to use AI in AGC contests. However, this rule was adopted under the assumption that we would not

Full text and comments »

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

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

Full text and comments »

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

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

Full text and comments »

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

94.
By Um_nik, history, 5 years ago, In English
Petition to make (onsite part of) ICPC WF 2020 1-computer In case you haven't heard: ICPC announced that in the Championship (onsite in Moscow) Division of ICPC World Finals 2020 teams will use 3 computers (one per participant). And they did that less than 40 days before the contest itself. I think this is ridiculous and this is not the competition we have been preparing for all these years. If you think the same, please comment under this blog in a format you deem reasonable (you can follow my format or not). Moreover, there was a suggestion from [user:Alex_2oo8,2021-09-09] to ignore ICPC and self-impose the rule to use one computer at a time. If you want to do that (in case ICPC will go with 3 computers per team), you can add such a statement to your comment too.
the rule to use one computer at a time. If you want to do that (in case ICPC will go with 3 computers

Full text and comments »

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

95.
By awoo, history, 6 years ago, translation, In English
Educational Codeforces Round 91 [Rated for Div. 2] Hello Codeforces! On [contest_time:1380] [contest:1380] will start. Series of Educational Rounds continue being held as [Harbour.Space University](https://harbour.space/) initiative! You can read the details about the cooperation between [Harbour.Space University](https://harbour.space/) and Codeforces in the <a href="http://codeforces.me/blog/entry/51208">blog post</a>. This round will be **rated for the participants with rating lower than 2100**. It will be held on extended ICPC rules. The penalty for each incorrect submission until the submission with a full solution is 10 minutes. After the end of the contest you will have 12 hours to hack any solution you want. You will have access to copy any solution and test it locally. You will be given **6 or 7 problems** and **2 hours** to solve them. The problems were invented and prepared by Roman [user:Roms,2020-07-11] Glazov, Adilbek [user:adedalic,2020-07-11] Dalabaev, Vladimir [user:vovuh,2020-07-11] Petrov, Ivan [us...

Full text and comments »

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

96.
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...
We decided to write explicitly rule 4 since there is

Full text and comments »

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

97.
By Lyde, 4 years ago, In English
Sometimes it's not their fault. Hello! It's 2023 now, and everyone is happy and hoping for a good year, which many good contests to come. So I want to say about one thing that I saw in most of the contests from last year, which I was pretty much annoyed about it and decided to speak about so that this year we will hope to have a better experience doing contests here. I have been in this community for more than 3 years now, not very long, but definitely enough to say that although the number of participants did increase, the number of users increase dramatically, but the number of people that respond to the contests positively don't. It actually did decrease though. I still remember that 500+ upvotes for a contest announcement are a normal thing back then, but I rarely see them now. And a common thing right now, every single contest that is over will have some comments criticizing it, but not in a good way at all. So I will make this quick for certain types of comments like that. I don't know if you do but I ...

Full text and comments »

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

98.
By awoo, history, 6 years ago, translation, In English
Educational Codeforces Round 100 [Rated for Div. 2] Hello Codeforces! On [contest_time:1463] [contest:1463] will start. Series of Educational Rounds continue being held as [Harbour.Space University](https://harbour.space/) initiative! You can read the details about the cooperation between [Harbour.Space University](https://harbour.space/) and Codeforces in the <a href="http://codeforces.me/blog/entry/51208">blog post</a>. This round will be **rated for the participants with rating lower than 2100**. It will be held on extended ICPC rules. The penalty for each incorrect submission until the submission with a full solution is 10 minutes. After the end of the contest you will have 12 hours to hack any solution you want. You will have access to copy any solution and test it locally. You will be given **6 or 7 problems** and **2 hours** to solve them. The problems were invented and prepared by Roman [user:Roms,2020-12-16] Glazov, Adilbek [user:adedalic,2020-12-16] Dalabaev, Vladimir [user:vovuh,2020-12-16] Petrov, Ivan [us...

Full text and comments »

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

99.
By awoo, history, 6 years ago, translation, In English
Educational Codeforces Round 89 [Rated for Div. 2] Hello Codeforces! On [contest_time:1366] [contest:1366] will start. Series of Educational Rounds continue being held as [Harbour.Space University](https://harbour.space/) initiative! You can read the details about the cooperation between [Harbour.Space University](https://harbour.space/) and Codeforces in the <a href="http://codeforces.me/blog/entry/51208">blog post</a>. This round will be **rated for the participants with rating lower than 2100**. It will be held on extended ICPC rules. The penalty for each incorrect submission until the submission with a full solution is 10 minutes. After the end of the contest you will have 12 hours to hack any solution you want. You will have access to copy any solution and test it locally. You will be given **6 or 7 problems** and **2 hours** to solve them. The problems were invented and prepared by Roman [user:Roms,2020-06-10] Glazov, Adilbek [user:adedalic,2020-06-10] Dalabaev, Vladimir [user:vovuh,2020-06-10] Petrov, Ivan [us...

Full text and comments »

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

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

Full text and comments »

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

101.
By MikeMirzayanov, 4 years ago, In English
Complaints on Comments <img src="/predownloaded/f0/ff/f0ff581246db486e2d6a28398f591770f01a0747.png" style="width: 400px; float: right; margin: 0 1em 1em 1em;"/> Hello! Now, if you've downvoted a comment, you can report it. You should do this if you're certain that one of the rules is being violated. Currently, the list of rules is as follows: * <b>Hate/Offensive</b>: The publication contains signs of hatred, racial slurs, derogatory language or intolerance. Please maintain a respectful tone; critical comments should include thoughtful reasoning. * <b>Threats/Harassment</b>: Content that contains explicit threats or harassment, including cyberbullying or stalking, is subject to censorship. Codeforces aims to create a safe and respectful environment for its users. * <b>Vi...

Full text and comments »

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

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

Full text and comments »

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

103.
By Nickolas, 8 years ago, In English
Announcement: Microsoft Q# Coding Contest — Summer 2018 Microsoft's Quantum Team has good news for quantum enthusiasts and coders looking for new challenges. We are excited to announce Microsoft Q# Coding Contest &mdash; Summer 2018! By entering the contest, you can hone your quantum coding skills by tackling problems of varying difficulty and implementing solutions in the quantum programming language Q#. Winners will receive a Microsoft Quantum T-shirt! Quantum computing is a radically different computing paradigm compared to classical computing. Indeed, it is so different that some tasks that are believed to be classically intractable (such as factoring integers, computing discrete logarithms on elliptic curves, or simulating physical systems) can be performed efficiently on a quantum computer. Microsoft recently introduced the Quantum Development Kit which includes Q# &mdash; a new programming language to express quantum programs in a way that makes it easier for classical coders to enter the space. Q# integrates into [Visual Studi...

Full text and comments »

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

104.
By MikeMirzayanov, 13 years ago, translation, In English
Rule about third-party code is changing _With the help of some experienced and respected members of the community (thanks!) there was formulated a rule that allows a third party code to be used under certain conditions. Please read carefully the text._ _The following text will go as part of a renewed competition rules. The closest contest will be held already on the updated rules. Thus, there are about two days for further details, if something is unclear._ Solutions and test generators can only use source code completely written by you, with the following two exceptions: 1. the code was written and published/distributed before the start of the round, 1. the code is generated using tools that were written and published/distributed before the start of the round. Any usage of third-party code should not violate the right holder’s license or copyright. Remember that published code is not always free to use! At the request of the right holder, any code that violates the license or copyright may be considered as viol...
Rule about third-party code is changing, formulated a rule that allows a third party code to be used under certain conditions. Please read, For example, this rule accepts the use of the code from the website http://e-maxx.ru/ if the code, This rule doesn't loosen the rules about prohibiting of communication, discussion, or any other

Full text and comments »

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

105.
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...
#### Some high rated users have difficulty differentiating d2As-d2Cs what would be a goodrule of, , as a rule, you solve d2A faster than d2B and d2C. Again, it all depends on the idea and, rule of thumb from just the statement, I use intuition. If my intuition is wrong, that's why we have

Full text and comments »

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

106.
By AkiLotus, history, 8 years ago, In English
Codeforces Round #538 (Div. 2) **TREMBLE BEFORE THE MIGHTY OMEGALULGRAPE** ![ ](https://i.imgur.com/kpS7NEq.png) Hello Codeforces! We are honored to invite you to Codeforces Round #538 (Div. 2), which will take place at [contest_time:1114]. The round will be rated for all Division 2 participants **(with rating less than 2100)**. Still, we warmly welcome Division 1 participants to join us out of competition. You will be given **6** problems to solve in **2 hours.** The round's problems were initially prepared by Duy-Bach ~Akikaze,2019-02-05 Le, Xuan-Tung ~neko_nyaa,2019-02-05 Nguyen and Xuan-Quang ~xuanquang1999,2019-02-05 D. Nguyen. **There will be an interactive problem in this round.** Learn more about interactive problems [here](https://codeforces.me/blog/entry/45307). This is our first attempt in making a Codeforces round, so suggestions are much welcome to help us improve ourselves. ;) We also want to thanks many friends for making this round possible: - Dmitry ~_kun_,2019-02-05 Sayutin...

Full text and comments »

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

107.
By Nickolas, 7 years ago, translation, In English
April Fools Day Contest 2020 The contest is over; I hope you enjoyed it! The editorial is available [here](https://codeforces.me/blog/entry/75480). --- The 8th April Fools Day Contest will take place on Wednesday [April 1st](https://www.timeanddate.com/worldclock/fixedtime.html?day=1&month=4&year=2020&hour=17&min=35&sec=0&p1=166). This is a joke competition in which solving the problem is often easier than figuring out what the actual task is. In this round you'll be given several weird problems and 2 hours to solve them. The contest will use ACM ICPC rules (no hacks, the standings are decided by the number of solved problems and penalty time earned on them), and it will be unrated. You can submit solutions in any language allowed by Codeforces, unless the problem says otherwise. To get an idea of what the contest will look like, you can check out the contests of the past years: [2012](http://codeforces.me/contest/171), [2013](http://codeforces.me/contest/290), [2014](http://codeforces.me/contest/409)...

Full text and comments »

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

108.
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*...

Full text and comments »

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

109.
By MikeMirzayanov, 15 years ago, translation, In English
Codeforces Contest Rules This document provides a detailed and formal version of the Codeforces contest rules. If you're simply looking to understand the basics, we recommend starting with the post [Codeforces Contests](/blog/entry/456). Please note that organizers may make minor modifications to the rules for specific rounds; any such changes will be included in the official announcement of the respective round. Unless otherwise stated, the following rules should be considered the default for all contests. By participating in a Codeforces contest and/or submitting any materials, you automatically agree to abide by these [terms and conditions](/terms). ### General information about a round 1. You need to register to participate in a round. The registration opens six hours before the start of the contest and closes 5 minutes before it, unless the information about the round states otherwise. 1. The system of conducting contests has two interface languages available: Russian and English. The cont...

Full text and comments »

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

110.
By Endagorion, history, 9 years ago, In English
Yandex.Algorithm 2017, third elimination round: editorial (with challenges, bells and whistles) This time I've decided to play with spoilers to faciliate the presentation as some of the guys here did before. Tell me what you think about this write-up! #### Problem A. Shifts Topics: dynamic programming. Summary: the first "hard" problem of the contest. Knowing your basic DP problems helps a lot, but coming up with the precisely correct solution may take a lot of persistence. Solution: Suppose that we are allowed to make left circular shifts as well as right ones. <spoiler summary="Can you solve the problem in this case?"> First of all, making a shift is effectively moving a character to a different position in the string. Clearly, moving a character more than once makes no sense since we could have just moved it to its final destination instead without wasting any operations. Also, it obvious that the number of occurences of each character should be the same in both strings since it is preserved by shifts. Now, consider the characters that are *not* moved by ...
If $d' > x$, then the

Full text and comments »

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

111.
By awoo, history, 6 years ago, translation, In English
Educational Codeforces Round 93 [Rated for Div. 2] Hello Codeforces! On [contest_time:1398] [contest:1398] will start. Series of Educational Rounds continue being held as [Harbour.Space University](https://harbour.space/) initiative! You can read the details about the cooperation between [Harbour.Space University](https://harbour.space/) and Codeforces in the <a href="http://codeforces.me/blog/entry/51208">blog post</a>. This round will be **rated for the participants with rating lower than 2100**. It will be held on extended ICPC rules. The penalty for each incorrect submission until the submission with a full solution is 10 minutes. After the end of the contest you will have 12 hours to hack any solution you want. You will have access to copy any solution and test it locally. You will be given **6 or 7 problems** and **2 hours** to solve them. The problems were invented and prepared by Roman [user:Roms,2020-08-13] Glazov, Adilbek [user:adedalic,2020-08-13] Dalabaev, Vladimir [user:vovuh,2020-08-13] Petrov, Ivan [us...

Full text and comments »

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

112.
By Zlobober, 10 years ago, translation, In English
Yandex.Algorithm 2017 We are announcing the annual Yandex.Algorithm 2017 championship! This is a great opportunity to compete with the strongest programmers of the world, win a fancy T-shirt, visit Yandex office or even receive some serious money prize. ![Yandex.Algorithm 2016!](http://codeforces.me/predownloaded/1b/c0/1bc02bc41cf4a9b3e823b5afa09136a9b5f50a24.jpg)<br /> [cut] <center><h3><a href="https://contest.yandex.com/algorithm2017/schedule/">Complete schedule</a></h3></center> In order to take place in the main part of the competition you must participate in at least one of the Warm-Up round ([April 22nd, 16:00 Moscow Time](https://www.timeanddate.com/worldclock/fixedtime.html?msg=Yandex.Algorithm+2017+Warm-up+round&iso=20170422T16&p1=166&ah=1&am=40)) and Qualification round ([April 29nd or 30th, virtual participation](https://www.timeanddate.com/worldclock/fixedtime.html?msg=Yandex.Algorithm+2017+Qualfication+round&iso=20170429T00&p1=166)) and solve at least one problem in some of them. ...

Full text and comments »

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

113.
By Um_nik, 8 years ago, In English
How to read problem statements But [user:Um_nik,2018-10-26], we all know how to read, we have our whooping 2 month of experience! Oh, my sweet summer child, my experiments show that many people with kinda cool achievements like medals on ROI don't know how to read statements. But don't worry, I'll teach you. Well, probably you won't understand anything, because you didn't try to understand anything in your life, you expect all hard work to be done for you by someone else. Let's start! Basic rules ================== - The result of reading the statement is usually pure math model. If story helps to build correct understanding, you can keep it, but still try to discard as many unnecessary details as possible. - Imagine you want to tell the problem to someone else. What parts you want to tell? (According to my PM, this rule won't help you). - Shorter = better. - Simpler = better. - Limitations are part of problem statement. Especially small limitations, because for small data you can try all the possib...
you want to tell? (According to my PM, this rule won't help you). - Shorter = better

Full text and comments »

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

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

Full text and comments »

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

115.
By eatmore, history, 6 years ago, translation, In English
Special rules for ICPC in Northern Eurasia during 2020/2021 season Due to the COVID-19 pandemic, ICPC administration in Northern Eurasia [announced](https://nerc.itmo.ru/information/contest-rules-2020.html#eng) special rules for the 2020/2021 season. The contests will be held online, each participant will be allowed to use a separate computer, it will be permitted to use any written source (but not others' code). It is planned to have a selection round at the beginning of April 2021 using regular rules. Below is the full text of the new rules. [cut]<hr> <h1>Special Regulation Rules for ICPC NERC in 2020/2021 Season</h1> <h2>General Points</h2> <ol><li>Due to epidemiological situation ICPC and NERC management has proposed applying special regulation rules for this season.</li> <li>Special regulation rules are applied to season 2020/2021 only.<ol> <li>Normal regulation rules will be applied in season 2021/2022.</li> <li>New regulation rules for season 2021/2022 will be developed should the epidemiological situation in the world will not c...

Full text and comments »

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

116.
By viktork, 12 years ago, translation, In English
ZeptoLab Code Rush 2014 <img src="http://assets.codeforces.com/images/zepto2014/image06.png" style="width:190px;float:right;margin:0 1em 1em 1em;"/> A coder can apply his breathtaking coding skills not only in different search engines but also in the mobile game industry. It is an option in Russia. If you do not believe &mdash; check this out: ZeptoLab company that created the world famous Cut the Rope game offers you the opportunity to see this for yourself. And yes, we are in Moscow. It's not a secret that those who strive to achieve top coding skills &mdash; work hard, including work on his self-education. Here in ZeptoLab we aim to create the area that strongly encourages self-development. Specifically, we have recently purchased a company library with everything necessary to get new knowledge, an improvised reading room with sofas and armchairs. <center> <img src="http://assets.codeforces.com/images/zepto2014/image08.jpg" style="width:400px;"/> </center> We also conduct developer's contest ...

Full text and comments »

Announcement of Zepto Code Rush 2014
  • Vote: I like it
  • +726
  • Vote: I do not like it

117.
By sugim48, 8 years ago, In English
[AtCoder] Educational DP Contest <p style='font-size: large; color:red;'> <strong>The contest was postponed to <a href='https://www.timeanddate.com/worldclock/fixedtime.html?iso=20190106T11&ah=5'>2019-01-06(Sun) 11:00-16:00 UTC</a>.</strong> </p> Hello, Codeforces! We will hold **[Educational DP Contest](https://atcoder.jp/contests/dp)** at AtCoder on Saturday. #### About the Contest This is an unofficial contest to practice **DP (Dynamic Programming)**. We selected 26 DPs, mostly basic ones, and prepared a problem to learn each of them. Test your skills during the real contest, and brush them up after it ends. #### Details - Time (YY-MM-DD): [2019-01-06(Sun) 11:00-16:00 UTC](https://www.timeanddate.com/worldclock/fixedtime.html?iso=20190106T11&ah=5) (<strong>postponed</strong>) - Duration: 5 hours - Number of Tasks: 26 - Point Values: 100 points each - Rated: No #### Rules [The rules for ABC, ARC and AGC](https://atcoder.jp/contests/dp/rule) apply. The important points are: - This ...
[The rules for ABC, ARC and AGC](https://atcoder.jp/contests/dp/rule) apply. The important points

Full text and comments »

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

118.
By steven.novaryo, history, 4 years ago, In English
COMPFEST 14 Preliminary Online Mirror (Unrated, ICPC Rules, Teams Preferred) <img alt="logo" src="/predownloaded/03/5f/035ff83d655937b478f5fe9f351f79ac0781f6d2.png" style="float: right;height: 100.0px;margin: 10.0px;max-width: 100.0%;max-height: 100.0%;"> Hello, **Codeforces**! &#129303; We are happy to invite you to participate in [COMPFEST 14 Preliminary Online Mirror (Unrated, ICPC Rules, Teams Preferred)](https://codeforces.me/contests/1725) on <a class="contest-time" contestid=1725></a>. COMPFEST is a national **ICPC-style contest** for university students in Indonesia. The problems are written and prepared by [user:Pyqe,2022-09-02], [user:steven.novaryo,2022-09-02], [user:Nyse,2022-09-02], [user:muhammadhasan01,2022-09-02], [user:gansus,2022-09-02], [user:nandonathaniel,2022-09-02], [user:FerdiHS,2022-09-02], [user:TakeMe,2022-09-02], and [user:NeoZap,2022-09-02]. We would also like to thank: - [user:KAN,2022-09-02] for helping to host the mirror round; - rama_pang ([user:rama_pang,2022-09-02], [user:zappeko,2022-09-02], [user:Berted,202...

Full text and comments »

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

119.
By 300iq, history, 8 years ago, translation, In English
Codeforces Round #500 (based on EJOI) Hello everybody! On July 28 and 30 will take place tours of [EJOI](http://ejoi2018.org) &mdash; individual programming competition for juniors, held under the rules of the International Olympiad in Informatics. EJOI consists of the most interesting and hard problems that are proposed by a wide community of authors, and that is why we decided to give you an opportunity to crack the complete problemset of the contest. During the second tour of Olympiad, we are going to conduct a rated Codeforces round based on problems of both days of our Olympiad. **We kindly ask all the community members that are going to participate in the competition to show sportsmanship by not trying to cheat in any manner, in particular, by trying to figure out problem statements from the onsite participants. If you end up knowing some of the problems of EJOI (by participating in it, from some of the onsite contestants or in any other way), please do not participate in the round. We also ask onsite c...

Full text and comments »

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

120.
By peltorator, 7 months ago, In English
So Do You Really Understand Fast Matrix Multiplication? Most of you have probably heard of $\omega$, the matrix multiplication exponent. Are you sure you fully understand its definition, though? I thought so too, until I started asking myself some uncomfortable questions and realized that I had some subtle misconceptions. To answer these questions, I read a bunch of papers and book chapters, and now I have some peace of mind. Let me try to scare you a bit first and then hopefully rebuild your understanding of fast matrix multiplication. Let's start with four questions. Try to answer them before reading further. Q1: Does there exist an $O(n^{\omega})$-time matrix multiplication algorithm? Q2: Does there exist an $o(n^{\omega})$-time matrix multiplication algorithm? Q3: Does there exist an $O(n^{\omega + 0.1})$-time algorithm for integer matrix multiplication? Q4: Does there exist an $O(n^{\omega - 0.1})$-time algorithm for integer matrix multiplication? <spoiler summary="Answers"> A1: Maybe. We don't know. A2: ...
be easier. So we cannot rule out an $O(n^{\omega - 0.1})$-time algorithm for integer matrix

Full text and comments »

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

121.
By KAN, 10 years ago, translation, In English
VK Cup 2017 — Wild-card раунд 1 Hi all! Tomorrow, on [April 5th 2017, at 15:35 UTC](https://www.timeanddate.com/worldclock/fixedtime.html?msg=VK+Cup+Wild-card+Round+1&iso=20170405T1835&p1=166&ah=2) the first Wild-card Round of VK Cup 2017 will be held. Along with it there will be parallel unofficial round in which everyone can take part. The rounds will use **special rules, the rounds will be unrated.** The problems were prepared by Codeforces team. The detailed rules will be added to this post 30 minutes before the rounds. I can say now that there will be 24-hours open hacks phase after the round, like in Codeforces Educational Rounds. **Round rules:** The round will be almost usual contest with ACM ICPC rules. There will be 12 problems for 2 hours. During the round your solutions will be tested on some basic tests, they should be much stronger than usual pretests. After the round you will have 24 hours to find tests against other participants’ solutions, this part is the same as in Educational round...
The main difference between ACM ICPC rules and this round is the following rule.

Full text and comments »

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

122.
By tourist, history, 8 years ago, In English
TCO 2019 Algorithm Rules The rules for advancement to the onsite finals of TCO 2019 Algorithm have changed from those for TCO 2018: http://tco19.topcoder.com/home/algorithm/algorithm-rules This page claims there are "three (3) ways to advance to the Onsite Finals"! The first way to advance is to take part in SRMs. There are four three-month Online Stages, during which every positive score in an SRM counts towards a global ranking. The best competitor in each Online Stage advances to the onsite finals directly, with the next 10 competitors advancing to Online Round 4 (which is the final qualification round). The other two ways stay the same. The best 10 competitors (used to be 14 though) advance from Online Round 4, and the best 2 competitors advance from Online Wild Card Round. The changes seem to be big enough -- and already relevant, since SRM 736 on August 15 (in two days from now) already counts towards Online Stage 1. However, apart from TCO 2019 website I've only seen this information in T...

Full text and comments »

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

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

124.
By Ormlis, history, 3 years ago, translation, In English
Codeforces Round #879 (Div. 2, based on All-Russian olympiad in the name of Keldysh) [Rated] Hi! This Sunday will take place All-Russian olympiad for students of 5-8 grades, in the name of Keldysh. Good luck to all the participants! This contest is prepared by Moscow Olympiad Scientific Committee that you may know by Moscow Team Olympiad, Moscow Olympiad for Young Students, Moscow Open Olympiad in Informatics (rounds <a href="https://codeforces.me/blog/entry/21185">327</a>, <a href="https://codeforces.me/blog/entry/23309">342</a>, <a href="https://codeforces.me/blog/entry/43615">345</a>, <a href="https://codeforces.me/blog/entry/47769">376</a>, <a href="https://codeforces.me/blog/entry/50613">401</a>, <a href="https://codeforces.me/blog/entry/54350">433</a>, <a href="https://codeforces.me/blog/entry/55201">441</a>, <a href="https://codeforces.me/blog/entry/57981">466</a>, <a href="https://codeforces.me/blog/entry/58229">469</a>, <a href="https://codeforces.me/blog/entry/61638">507</a>, <a href="https://codeforces.me/blog/entry/62440">516</a>, <a href="https://cod...

Full text and comments »

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

125.
By maroonrk, history, 3 years ago, In English
AtCoder World Tour Finals 2022 Announcement (with Rated Mirrors) We will hold AtCoder World Tour Finals 2022. List of Finalists: <table border="1"> <tr align="center"><td>AtCoder ID</td><td>Codeforces ID</td><td>Advanced Years</td></tr> <tr align="center"><td>[tourist](https://atcoder.jp/users/tourist)</td><td>[user:tourist,2023-09-06]</td><td>2019,2020,2021,2022</td></tr> <tr align="center"><td>[ksun48](https://atcoder.jp/users/ksun48)</td><td>[user:ksun48,2023-09-06]</td><td>2019,2021,2022</td></tr> <tr align="center"><td>[Benq](https://atcoder.jp/users/Benq)</td><td>[user:Benq,2023-09-06]</td><td>2020,2021</td></tr> <tr align="center"><td>[Um_nik](https://atcoder.jp/users/Um_nik)</td><td>[user:Um_nik,2023-09-06]</td><td>2019,2020</td></tr> <tr align="center"><td>[apiad](https://atcoder.jp/users/apiad)</td><td>[user:amiya,2023-09-06]</td><td>2019,2021,2022</td></tr> <tr align="center"><td>[Stonefeang](https://atcoder.jp/users/Stonefeang)</td><td>[user:Radewoosh,2023-09-06]</td><td>2020</td></tr> <tr align="center"><td>[ecnerwala](https...

Full text and comments »

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

126.
By V--o_o--V, history, 8 years ago, translation, In English
Hack Protection LLC Remember http://codeforces.me/contest/1039/problem/B or http://codeforces.me/contest/843/problem/B and the hack fiesta with reproducing the pseudorandom sequence? It might be the case that some of you don't want to be seed hacked. There is a [post](https://codeforces.me/blog/entry/61675) by [user:neal,2018-11-12] about the issue. The post is well written but I strongly disagree with the solution described there. "This should be different every run." I'm fairly sure that it indeed is (well there is still is a small probability of collision but this is kinda obvious). Because of that you are no longer able to conveniently debug you program. You can hide that under an IFDEF and this fixes the aforementioned problem. However hiding the code under the IFDEF takes 3 lines of code and you may accidentally change something in the IFDEFed part and never notice that locally (the latter is somewhat made up). And I consider IFDEFs ugly but it is a personal thing. Another way is to ...

Full text and comments »

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

127.
By rot, 2 years ago, In English
I reached master (+ what practice strategies don't work) I've just hit my goal of reaching yellow on Codeforces. Thus, I'm celebrating by sharing with everyone what I've learned over the years while trying to improve. I've done _a lot_ of research on my own when I was at a lower rating, constantly googling and looking at blogs to try to come up with the "optimal practice strategy", and failed every time. So, I think my experience in failing is going to be very valuable to a lot of people reading this. Let's imagine a very simplified case of what happens when we're doing a problem. When solving a practice problem, these combinations of things can happen: 1. Solve? Yes/No 2. Tried a lot of ideas? Yes/No 3. Used the editorial? Yes/No Now, here are the simplified rules I follow to tell if I'm improving or not. - If you did not solve, did not try a lot of ideas, and did not use the editorial: you did not improve. - If you did not solve, did not try a lot of ideas, and did use the editorial: you did not improve. - If you did not...

Full text and comments »

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

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

Full text and comments »

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

129.
By scott_wu, 11 years ago, In English
8VC Venture Cup Announcement <img src="http://assets.codeforces.com/images/8vc/8vc-venturecup-logo.png" style="float:right;margin:0 1em 1em 1em"/> Hey Codeforces! I’ve worked with Addepar and the broader 8 | family of companies in Silicon Valley throughout 2014 and 2015, and it’s been an excellent experience. I would encourage everyone in the community to learn more about the great work that these companies are doing and I’m happy to announce that 8 | Partners will be hosting the 8 | VC VentureCup on Codeforces! It’ll be a fun contest and I’ve worked on the problems along with a few competitive programmers in our network. The contest will begin on February 13 and consist of two rounds. ##### ABOUT 8 | PARTNERS <a href="http://eight.vc/">8 | Partners</a>, which consists of Joe Lonsdale (co-founder of Palantir) and his core team from Formation | 8, is a Silicon Valley venture capital firm that invests in industry-transforming technology companies. The team's investment portfolio includes companies suc...

Full text and comments »

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

130.
By PurpleCrayon, 5 years ago, In English
[Tutorial] Simulated Annealing in Competitive Programming Hi Codeforces! I've recently noticed a lack of simulated annealing tutorials, so I decided to make one. It all started when I was trying to "cheese" [problem:1556H] after the contest. In general, simulated annealing is a pretty niche topic, but it can sometimes lend you unintended solutions for very hard problems. It's also very useful in contests like Google Hashcode, where you can add simulated annealing to an already good solution to make it a lot better. Simulated annealing's name and terms are derived from physical annealing, the process of letting metals or glass cool down and harden while removing internal stresses. An Overview ------------------ Simulated Annealing is an approximation algorithm. It's generally useful in problems with low constraints (i.e. $n \leq 50$ or $n \leq 100$) where you need to find the minimum/maximum of something over all possible states (and there are usually way too many of them to check). In general, it's good at finding the global maximum...

Full text and comments »

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

131.
By sevlll777, history, 5 years ago, translation, In English
Codeforces Round #770 (Div. 2) editorial Thank you for participating, we hope you enjoyed the problems! We kindly ask you to rate each of the round's problems in the corresponding spoiler in order to improve the quality of future contests. You can also check video editorials of problems B and C on [user:ak2006,2022-02-06] [Youtube channel](https://www.youtube.com/channel/UCnZ5rC2_JY0EuYMGMiAbISg). All problems were prepared by [user:Alexdat2000,2022-02-02] with the help of coauthors. [Why didn't AI participate](https://codeforces.me/blog/entry/99579?#comment-884764) [problem:1634A]<br> Idea: [user:sevlll777,2022-02-02] <div class="spoiler"> <b class="spoiler-title">Hint 1</b> <div class="spoiler-content" style="display: none;"> What property will the string have after the first operation (regardless of the type of operation)? </div></div> <div class="spoiler"> <b class="spoiler-title">Hint 2</b> <div class="spoiler-content" style="display: none;"> What happens if you apply an operation to a palindrome? ...
="display: none;"> For which $n$ is there no solution when $k = 2$? Does the samerule of thumb hold for

Full text and comments »

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

132.
By heuristica, history, 6 years ago, In English
Heuristic algorithm for Hamiltonian path in directed graphs (It's a translated version of my blog at https://peehs-moorhsum.blog.uoj.ac/blog/6384. ) Finding a Hamiltonian path in a directed graph is a well-known NP problem. However, about a year ago, I came up with the following heuristic algorithm which has GREAT performance on random graphs(by first generating a hamiltonian path, adding random edges, then randomly permuting indices) and many CP problems. Here is the idea of the algorithm: We maintain a subset $S$ of edges, ensuring there's no cycle and each vertex has in-degree and out-degree at most 1. Whenever $|S|$ reaches $n-1$, we find a hamiltonian path. We start with $S$ empty. Each time we pick a random edge $e \notin S$. If we can add $e$ to $S$ without violating any rule, we simply add it to $S$. Otherwise, if $e$ won't create a cycle and violate with exactly one edge e', we replace e' with $e$ with 50% probability. Repeat until $|S|$ reaches $n-1$. We can use LCT to check cycles. Here's my code, which takes le...
$ without violating any rule, we simply add it to $S$. Otherwise, if $e$ won't create a cycle and violate

Full text and comments »

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

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

Full text and comments »

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

134.
By pilliamw, history, 9 months ago, In English
Codeforces needs a Better Rules Page In light of recent events and general trends in competitive programming over the last few years, it's become increasingly clear (and frustrating) to me about how ineffective the current rules page in Codeforces is. Here's a challenge for you &mdash; using **only the Codeforces platform (no Google/search engines)**, try to find the answers **in-text** to the following five questions: - What's an "open hacking phase", and why do hacks sometimes give points but sometimes not? - If you resubmit a solution that passed pretests due to a bug you found, which submission time is used? - What online resources are you allowed to use? Language documentation? StackOverflow excerpts? - What are the punishments for cheating? - What kinds of blog posts are appropriate on the platform? See the issue here? One could argue that people could easily search up and find the answers to some of these questions on external websites or unofficial blog posts, but consider this: *when was the last tim...
behavior is acceptable or how moderators should deal with rule-breakers, it's ridiculous that this website, what behavior is acceptable or how moderators should deal with rule-breakers, it's ridiculous that

Full text and comments »

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

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

136.
By Qingyu, 2 years ago, In English
IOI 2025 China Team Selection — Current Standings Hi, everyone. The first stage of the IOI 2025 China Team Selection began yesterday. The top 50 participants from the 2024 National Olympiad in Informatics (NOI) will compete for a spot on the Chinese national team for IOI 2025. The rule of selecting CHN team this year: + Homework (10%): also known as mutual tests, where the students were asked to prepare a task (5%), and participate in the contests made by other students (5%) + First stage (<b>CTT</b>; 54%; Dec 3, 2024 &mdash; Dec 5, 2024): three contests in classic olympiad format, where each contest worthes 18% of the score. Top 30 participants will advance to the final stage. + Final stage (<b>CTS</b>; 36%; Jan 20, 2025 &mdash; Jan 22, 2025): two contests in classic olympiad format, where each contest worthes 18% of the score. The current scoreboard can be found [here](https://docs.google.com/spreadsheets/d/11Sh6zczubJ9eJxgSkyBcDL_EaZhHuwbyyZNlkLx1Avc). Past problems of the China IOI Team Selections can be found her...
The rule of selecting CHN team this year:

Full text and comments »

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

137.
By MikeMirzayanov, 7 years ago, translation, In English
Codeforces: Uphacking <img src="/predownloaded/23/8e/238e0f685f8b7b53a6aeee7099936d271eebb13f.png" style="float:right;margin:0 1em 1em 1em;"/> Hi Codeforces. Recently there have been several improvements on the website. A little later, I will write a short note about them. Here I want to tell about a noticeable new functionality that has recently been implemented by [user:kuviman,2019-07-05]. Sometimes after the end of a round there are requests in comments to add a particular test. And problem writers or coordinators add it manually. Now this process is automated. Meet the uphacking phase! Now, after the end of almost any contest, participants from Div.1 have the opportunity to hack any solution in this contest during the week. Yes, including official solutions from rounds. In case of successful hacking: * Your test will be automatically added to the problem and will be used in the future when testing new solutions for this problem; * If a hacked solution is a practice (i.e. upsolving), ...
intentionally contain a mistake. Please strictly follow this rule. It is because of the possibility of

Full text and comments »

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

138.
By majk, 7 years ago, In English
CEOI 2019 Mirror [The 26th Central European Olympiad in Informatics](https://ceoi.sk/) will take place in Bratislava, Slovakia, during **July 23rd-29th 2019**. The most gifted high school students from 13 countries will have the opportunity to prove their knowledge and skills in informatics. Codeforces will organise the online mirror for this year's competition. The online mirrors will take place after the finish of each of the 2 competition days, having the same scoring format. The online mirror schedules are the following: - [contest_time:1192] - [contest_time:1193] **Contest format** - The contest will be unrated for all users. - You will have to solve 3 tasks in 5 hours. - There will be full feedback throughout the entire contest. - The scoreboard will be hidden until the end of the contest. - The tasks will have partial scoring. The maximum score for each problem will be 100 points. - Among multiple submissions only the one that achieves the maximum score is counted towards t...

Full text and comments »

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

139.
By djm03178, 22 months ago, In English
Make Polygon rules less strict and make case-by-case decisions So today I heard a news: ![ ](https://doyak.s-ul.eu/2j6cVKxA) Personally I would like these tests to be included in the main tests, but that's not what I want to bring up now. Often these days, I find some cases where the constraints and tests seem unreasonable. Example 1. [problem:2056C] consisted of a total of 12 tests. Why was there a need to add so many tests, when a single test can include every $n$? Even if we want to include a maximal test, one additional test with $t=n=100$ is enough. The only reason it had so many tests I can think of, is just because the Polygon rules allowed it. Example 2. If you remember this problem: [problem:2034A], some naive bruteforce solutions, written in C++ with `int` passed, but the ones that used `long long` (some luckily passed) or slower languages couldn't. As stated in https://codeforces.me/blog/entry/136579?#comment-1222858, it turned out that they only focused on following the Polygon rules and didn't actually consider enough tha...

Full text and comments »

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

140.
By SpyrosAliv, 19 months ago, In English
Codeforces Round 1020 (Div. 3) <center> <h1> Hello, Codeforces! </h1> </center> [user:cry,2025-04-19] and I are _very very very_ excited to invite you to participate in [contest:2106], which will take place on [contest_time:2106]. You will be given **7 problems** and **2 hours & 15 minutes** to solve them. There will be **at least one** interactive problem, so please make sure to read [this guide](https://codeforces.me/blog/entry/45307) if you are not familiar with the format. One of the problems will be split into two subtasks. 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. [Remind](https://codef...
Also, note the [rule restricting the use of AI](https://codeforces.me/blog/entry/133941). If you

Full text and comments »

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

141.
By Ormlis, history, 3 years ago, translation, In English
XVIII Open Olympiad in Informatics (Unrated, Online Mirror, IOI rules) Hi everybody, In a few days there will be a Moscow Open Olympiad. This olympiad is prepared by Moscow Olympiad Scientific Committee that you may know by Moscow Olympiad in Programming, Moscow Team Olympiad, and Megapolis Olympiad (rounds <a href="https://codeforces.me/blog/entry/21185">327</a>, <a href="https://codeforces.me/blog/entry/23309">342</a>, <a href="https://codeforces.me/blog/entry/43615">345</a>, <a href="https://codeforces.me/blog/entry/47769">376</a>, <a href="https://codeforces.me/blog/entry/50613">401</a>, <a href="https://codeforces.me/blog/entry/54350">433</a>, <a href="https://codeforces.me/blog/entry/55201">441</a>, <a href="https://codeforces.me/blog/entry/57981">466</a>, <a href="https://codeforces.me/blog/entry/58229">469</a>, <a href="https://codeforces.me/blog/entry/61638">507</a>, <a href="https://codeforces.me/blog/entry/62440">516</a>, <a href="https://codeforces.me/blog/entry/65433">541</a>, <a href="https://codeforces.me/blog/entry/65768">5...

Full text and comments »

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

142.
By BledDest, history, 6 years ago, translation, In English
Educational Codeforces Round 96 [Rated for Div. 2] Hello Codeforces! On [contest_time:1430] [contest:1430] will start. **Note that the start time is unusual**. Series of Educational Rounds continue being held as [Harbour.Space University](https://harbour.space/) initiative! You can read the details about the cooperation between [Harbour.Space University](https://harbour.space/) and Codeforces in the <a href="http://codeforces.me/blog/entry/51208">blog post</a>. This round will be **rated for the participants with rating lower than 2100**. It will be held on extended ICPC rules. The penalty for each incorrect submission until the submission with a full solution is 10 minutes. After the end of the contest you will have 12 hours to hack any solution you want. You will have access to copy any solution and test it locally. You will be given **6 or 7 problems** and **2 hours** to solve them. The problems were invented and prepared by Adilbek [user:adedalic,2020-10-10] Dalabaev, Alex [user:fcspartakm,2020-10-10] Frolov an...

Full text and comments »

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

143.
By chenjb, history, 3 years ago, In English
Rescheduling of World Finals 22&23 After a few days of waiting, ICPC finally sent out an announcement concerning the recent situation in Middle East: <spoiler summary="ICPC Email Content"> Friends, The ICPC Code of Ethics defines us as a global community. It reminds us of who we are. It provides healthy boundaries to solve problems together to the benefit of future problem solvers. In goodwill, following the Golden Rule, putting people first, and solving problems to grow stronger together, we ask for your consideration to deal with the challenge at hand. We have run out of options to conduct the 2023 ICPC World Finals as planned November 12-17, 2023. The 2023 ICPC World Finals in Sharm el-Sheikh, hosted by AASTMT, must be rescheduled due to extraordinary circumstances that affect many participants. We are working with AASTMT to identify new dates and plan to announce them no later than January 2024. The targeted new dates are late 1st quarter or early 2nd quarter of 2024. Starting next Friday, November ...
goodwill, following the Golden Rule, putting people first, and solving problems to grow stronger together

Full text and comments »

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

144.
By Kuroni, history, 18 months ago, In English
VNOI Cup 2025 - Round 2 Invitation ![ ](/predownloaded/79/22/7922b975c9cab6378b05cfb3da97b29dad08653c.png) Hello Codeforces! We invite you to join Round 2 of VNOI Cup 2025! &#9888;&#65039; For **international participants** (including those who participated in round 1): you will now compete alongside Vietnamese contestants in the main contest. The results from the first round will be merged afterward. Top performers will be invited to join the Final Round onsite in Vietnam, where they will compete in the **Open Division** — a separate onsite leaderboard from the official Vietnamese contestants. **To maintain the fairness of the contest, all international participants must identify themselves as such on the VNOJ website** (a guide on how to do so can be found [here](https://docs.google.com/document/d/e/2PACX-1vS7nLgYocUdt1oZhFFHNvn8BxaCB6Ni9LfmtJqjKPthre-Bot1uVWgKnRkJhD0YxSGh9Ong4TpCAUQZ/pub)). &#9888;&#65039; Please note that invited participants from the Open Division will need to **cover their own travel and ...
* [Detailed rule in Vietnamese](https://cup.vnoi.info/rule/).

Full text and comments »

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

145.
By awoo, history, 7 years ago, translation, In English
Educational Codeforces Round 88 [Rated for Div. 2] Hello Codeforces! On [contest_time:1359] [contest:1359] will start. Series of Educational Rounds continue being held as [Harbour.Space University](https://harbour.space/) initiative! You can read the details about the cooperation between [Harbour.Space University](https://harbour.space/) and Codeforces in the <a href="http://codeforces.me/blog/entry/51208">blog post</a>. This round will be **rated for the participants with rating lower than 2100**. It will be held on extended ICPC rules. The penalty for each incorrect submission until the submission with a full solution is 10 minutes. After the end of the contest you will have 12 hours to hack any solution you want. You will have access to copy any solution and test it locally. You will be given **6 or 7 problems** and **2 hours** to solve them. The problems were invented and prepared by Roman [user:Roms,2020-05-27] Glazov, Adilbek [user:adedalic,2020-05-27] Dalabaev, Vladimir [user:vovuh,2020-05-27] Petrov, Ivan [us...

Full text and comments »

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

146.
By 74TrAkToR, history, 3 years ago, translation, In English
Codeforces Round #905 (Div. 1, Div. 2, Div. 3) Hello, Codeforces! We are happy to invite you to our experimental round for three divisions, which will take place at [contest_time:1887]. <b>Please note the non-standard start time for the round</b>. Each division will have 5-7 tasks. The round will be held according to the Codeforces rules and will be rated for all three divisions. A few changes regarding the ratings of participants in this competition: <ul style="list-style-type:square"> <li>In Div.3 the rating of participants is less than 1600. </li> <li>In the Div.2 ranking, participants range from 1600 to 2099. </li> <li>In Div.1 the rating of participants is no less than 2100.</li> <li><b>Please note</b> that after [contest:1884] the rating will not be recalculated until the end of this competition. </li> </ul> Let us note that two team Olympiads will be held in parallel on this day and the rounds are based on their tasks: <ul style="list-style-type:square"> <li> XXI Moscow Team Olympiad, high school stud...

Full text and comments »

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

147.
By Igorjan94, history, 9 years ago, In English
C++17, competitive programming edition C++17 is now [available](http://codeforces.me/blog/entry/57646) on codeforces, community [wants](http://codeforces.me/blog/entry/15643?#comment-413401) new edition of [C++ tricks](http://codeforces.me/blog/entry/15643) by [user:Swift,2018-02-19], so, let's start! Disclaimer: I have done only few examples of new features, which in my opinion are related to competitive programming. Feel free to comment and provide more real-world examples or ask to elaborate some features with more examples or explanations. ### Fold expressions * I think that everybody knows, what reduce or fold means, but a c++11 example: ``` vector<int> v = {1, 3, 5, 7}; int res = accumulate(v.begin(), v.end(), 0, [](int a, int b) { return a + b; }); cout << res; // 16 ``` * In C++17 there is also folding support for a template parameters list. It has the following syntax: ``` (pack op ...) (... op pack) (pack op ... op init) (init op ... op pack) ``` * For example, implement a template...

Full text and comments »

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

148.
By Qingyu, 14 months ago, In English
The 4th Universal Cup Announcement Hi, The 4th Universal Cup has officially begun! For those who are new: the Universal Cup is a weekly, open team contest in the ICPC format, featuring global problem sets. In the previous season, more than 1,000 teams from over 500 institutions worldwide registered and took part in 40 stages, covering contests from Asia, Europe, and the Americas. Our participants range from former ICPC and IOI champions to current students sharpening their skills. We are dedicated to offering training resources for competitive programming teams and building a platform where the world's top talents can showcase their abilities. [Join us](https://contest.ucup.ac/register) today, you will be able to compete with teams from around the world, access a rich archive of past high-quality contests for training, and connect with others on our server to share knowledge and tips. For our friends from the past seasons, we've made several major updates, from the [rules](https://ucup.ac/rule/) to our [cont...
://ucup.ac/rule/) to our [contest platforms](https://contest.ucup.ac). Make sure to review the updates

Full text and comments »

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

149.
By brunovsky, 5 years ago, In English
[Tutorial] Network simplex Hello! If you've learned the simplex algorithm and a minimum cost flow algorithm, perhaps you've also heard about this fancy thing called [network simplex](https://en.wikipedia.org/wiki/Network_simplex_algorithm) which is supposed to be a specialization/optimization of the simplex algorithm for computing a [minimum cost circulation](https://en.wikipedia.org/wiki/Minimum-cost_flow_problem). If your google search didn't turn up any interesting results or your interest faded, you might have moved on to other subjects. Well I didn't! So this is a tutorial on network simplex (NS) for the **minimum cost circulation** problem. I'll describe and formulate the problem, show how it relates to the usual minimum cost flow problem, explain the theory behind the algorithm in-depth, and then derive the implementation details. ## Introduction The algorithm commonly used in competitive programming for this sort of task is a minimum cost flow algorithm based on finding augmenting paths in a *f...
breaking rule](https://en.wikipedia.org/wiki/Bland%27s_rule) for tableau rows.

Full text and comments »

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

150.
By employed, 2 months ago, In English
DeepInfra Round 1 (Codeforces Round 1126, Div. 1 + Div. 2) Hello, Codeforces! We are excited to invite you to [contest:2271], which will take place on [contest_time:2271]! **Note the unusual start time of the round**. You will have **3 hours** to solve **8 problems**, one of which is divided into subtasks. The problems were prepared by [user:employed,2026-10-03] and reviewed carefully by [user:nifeshe,2026-10-03]. We have put a lot of care into creating and testing this problemset, and we hope you will enjoy solving the problems as much as we enjoyed preparing them! A huge thank you to everyone who helped bring this round to life: - [user:nifeshe,2026-10-03] for coordinating the round and being funny, cool, and smart! - [user:dominater069,2026-10-03] for the early review of the problems. - [user:Evenimage,2026-10-03], [user:akslolcoding,2026-10-03], [user:apracadabra,2026-10-03], [user:Euclid73,2026-10-03], [user:linearspace,2026-10-03], [user:Mohammad_Hacker,2026-10-03], [user:naneosmic,2026-10-03], [user:nik_exists,2026-10-0...
prevent unfair participation and rule violations._

Full text and comments »

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

151.
By Bredor, history, 11 years ago, translation, In English
Unbelieveable story of success at ACM ICPC final Preparing to contest ==================== For long time I haven't been writing stories about my life. As Nietzsche said &mdash; Bredor died, and I don't feel so good myself. You might be thinking that I went into booze. Actually, I have really been drinking so much all this time, but I had more important activities: once upon a time I came to my college to find a company to drink. There I saw an advertisment about programming competitions, but I found that competitive programming is sense less in school and it didn't attract my attention. Soon, I was summoned to the dean, and the dean told me: "mr. Rudolph Gotov, there is noone except you who can win this contest!". I refused him at first time certainly, but then he offered me hard choices such as to continue winning all contests or to stop to arrange night parties at college campus. The choice was not great, and I went looking for a team. Because of stupid rules I could not invite my friends from Bratsk into the team, so I had t...

Full text and comments »

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

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

153.
By awoo, history, 6 years ago, translation, In English
Educational Codeforces Round 92 [Rated for Div. 2] Hello Codeforces! On [contest_time:1389] [contest:1389] will start. Series of Educational Rounds continue being held as [Harbour.Space University](https://harbour.space/) initiative! You can read the details about the cooperation between [Harbour.Space University](https://harbour.space/) and Codeforces in the <a href="http://codeforces.me/blog/entry/51208">blog post</a>. This round will be **rated for the participants with rating lower than 2100**. It will be held on extended ICPC rules. The penalty for each incorrect submission until the submission with a full solution is 10 minutes. After the end of the contest you will have 12 hours to hack any solution you want. You will have access to copy any solution and test it locally. You will be given **6 or 7 problems** and **2 hours** to solve them. The problems were invented and prepared by Roman [user:Roms,2020-07-28] Glazov, Adilbek [user:adedalic,2020-07-28] Dalabaev, Vladimir [user:vovuh,2020-07-28] Petrov, Ivan [us...

Full text and comments »

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

154.
By xen, 9 years ago, translation, In English
Codeforces Round #426 announcement _Hello, fellow programming contest enthusiasts!_ We are pleased to invite you to take part in the forthcoming Codeforces Round #426, which is going to be held [at Sunday, 17:35 MSK](https://www.timeanddate.com/worldclock/fixedtime.html?msg=Codeforces+Round+%23426+%28Div.+1+%2B+Div.+2%29&iso=20170730T1735&p1=166&ah=2). In case one of the things you fear most is a Codeforces round being authored by a purple guy, we've got some <s>bad</s>good news for you: this round will feature two CMs &ndash; me ([user:x3n,2017-07-28]) and [user:GreenGrape,2017-07-28] &ndash; as its writers! The classic Codeforces rules will be applied to this round. There will be five problems for each division, with three of them shared by both. The round will last for two hours. Forgoing a long-standing Codeforces tradition, we will not have the scoring disclosed until shortly before the contest. In this round, you are going to assist Slastyona the Sweetmaid &ndash; a renowned lover of sweets, cupcakes, can...

Full text and comments »

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

155.
By popoffka, 11 years ago, In English
IOI 2015: changes in rules and syllabus Rules ----- The draft for this year's rules is available on the [competition website](http://ioi2015.kz/content/view/1/264). As it is highlighted, there are two important changes. First of all, it is officially confirmed that Java is among the languages that can be used at IOI 2015. Secondly, since the JVM uses threads "under the hood", threads are now allowed for submissions in **any** programming language, but the runtime of a solution is counted as the sum of the runtime of all threads. I don't think that these changes are really significant to any participants not using Java, because there is no point in using threads if the runtime for each thread is counted separately. The rules promise "generous time limits", which is interesting, because experience shows that Java solutions tend to be slower even when simple wall time is considered, but counting all the JVM threads separately could result in an even more significant slowdown (compared to other languages). I'm a ...

Full text and comments »

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

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

157.
By Qingyu, 10 months ago, In English
The 2026 Universal Cup Finals Announcement Hello Codeforces! I am excited to announce that The 2026 Universal Cup Finals will be held in Shanghai, China from May 7 to 12, 2026! <center style="margin-top:20px;"> <img src="/predownloaded/40/72/40729f130c6d86d6ec06078b24e2f5c8fd61e5dc.png" alt="2026 ucup finals" style="zoom:80%;" /> </center> <center style="margin-top:20px;"> <img src="/predownloaded/b8/87/b887ffab8b998244f31367f6867d25c1ccfc20f7.png" alt="lianqiu" style="zoom:80%;" /> </center> Based on the results of The 3rd Universal Cup Online Stages and The 3rd Universal Cup Semifinals, the Universal Cup Scientific Committee will start promoting teams to the Finals according to [this rule](https://ucup.ac/news/the-3rd-ucup-finals-qualification-rules/). Invitations will be delivered through email. <!-- more --> ## Competition Overview Universal Cup is a non-profit organization dedicated to providing practical training opportunities for teams aspiring to improve their algorithmic competition skills. At ...
rule](https://ucup.ac/news/the-3rd-ucup-finals-qualification-rules/). Invitations will be delivered

Full text and comments »

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

158.
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"...

Full text and comments »

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

159.
By chromate00, 10 months ago, In English
Codeforces Round 1080 (Div. 3) Oh hello there. I, [user:chromate00,2026-02-14], am back! Oh no, I hope you are not misunderstanding me, I'm not pulling a joke on the announcement this time. I'm too busy for that right now. So here's the <strike>(mostly copy-pasted)</strike> announcement of [contest:2195]. Anyways. Starting from [contest_time:2195], you will be given **$\mathbf{7}$ or $\mathbf{8}$ problems** to be solved in **$\mathbf{2.5}$ hours**. 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. [Remind](https://codeforces.me/blog/entry/59228) yourself that only the trusted participants of the third ...
Also, note the [rule restricting the use of AI](https://codeforces.me/blog/entry/133941). If you

Full text and comments »

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

160.
By awoo, history, 3 years ago, translation, In English
Educational Codeforces Round 163 [Rated for Div. 2] <img alt="Neapolis University Pafos" src="/predownloaded/9a/33/9a332fadbb47050ba9405057df022a6e37eaf5c0.png" style="float:right;height: 200px; margin: 10px; max-width:40%;"/> Hello Codeforces! We are pleased to announce a new long-term partnership between Codeforces and [Neapolis University Pafos](https://www.nup.ac.cy/). Now educational rounds will be supported by Neapolis University Pafos. Stay tuned and you will find out more soon. On [contest_time:1948] [contest:1948] will start. This round will be **rated for the participants with rating lower than 2100**. It will be held on extended ICPC rules. The penalty for each incorrect submission until the submission with a full solution is 10 minutes. After the end of the contest, you will have 12 hours to hack any solution you want. You will have access to copy any solution and test it locally. You will be given **6 or 7 problems** and **2 hours** to solve them. The problems were invented and prepared by Adilbek [user...

Full text and comments »

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

161.
By adamant, history, 4 years ago, In English
Unlabeling combinatorial species (cycle index series) Hi everyone! In my [previous blog](https://codeforces.me/blog/entry/103979), I wrote about how generating functions can be used to enumerated labeled species. In this blog, I want to continue the topic by writing about how one can account for different kinds of symmetries when counting different combinatorial structures. Ultimately, we will end up deriving and hopefully understanding the analogue of [Pólya enumeration theorem](https://en.wikipedia.org/wiki/Pólya_enumeration_theorem) in species. Difficulty: ★★★★☆ Prerequisites: - Familiarity with combinatorial species (see my [prev. blog](https://codeforces.me/blog/entry/103979)), OR - Very good intuition with enumerative combinatorics, genfuncs and recap below. I will try to use plain language rather than formulas as much as possible, as it seems to be the preferred format for readers. ## Recap Below is a very brief recap of the most important things from the previous article. I tried to keep it as informal as p...
The **species** $F$ is a rule that produces:

Full text and comments »

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

162.
By ICPCNews, 3 years ago, In English
ICPC 2023 Online Challenge powered by Huawei <img src="/predownloaded/60/ed/60eddb18a54159e57dd1ffc836857f58420039bf.jpg" align="right" style="height: 280px;" alt="text"/> #### Hello, Codeforces! From the ICPC 2023 World Finals, we are happy to bring you an exciting online event: **The ICPC 2023 Online Challenge powered by Huawei**,which will start on November 20, 2023 15:00 UTC (UTC+8) In this Challenge, you will have a unique chance: - to **compete with top programmers globally** - to **solve 1 exciting problem** prepared by Huawei - to **win amazing prizes** from Huawei! **It is an individual competition.** #### The ICPC 2023 Online Challenge powered by Huawei: **Start:** [November 20, 2023 15:00 (UTC+8)](https://www.timeanddate.com/worldclock/fixedtime.html?day=20&month=11&year=2023&hour=10&min=0&sec=0&p1=166) **Finish:** [December 4, 2023 15:00 (UTC+8)](https://www.timeanddate.com/worldclock/fixedtime.html?day=04&month=12&year=2023&hour=10&min=0&sec=0&p1=166) **We hope you'll enjoy this ...

Full text and comments »

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

163.
By SlavicG, 3 years ago, In English
Codeforces Round 918 (Div. 4) Happy Holidays Codeforces! &#127877; [user:mesanu,2023-12-27], [user:flamestorm,2024-04-22] and I are very excited to invite you to [contest:1915]! It starts on [contest_time:1915]. The format of the event will be identical to Div. 3 rounds: - 5-8 tasks; - ICPC rules with a penalty of 10 minutes for an incorrect submission; - 12-hour phase of open hacks after the end of the round (hacks do not give additional points) - after the end of the open hacking phase, all solutions will be tested on the updated set of tests, and the ratings recalculated - by default, only "trusted" participants are shown in the results table (but the rating will be recalculated for all with initial ratings less than 1400 or you are an unrated participant/newcomer). We urge participants whose rating is 1400+ not to register new accounts for the purpose of narcissism but to take part unofficially. Please do not spoil the contest for the official participants. Only _trusted participants of the f...

Full text and comments »

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

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

Full text and comments »

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

165.
By r314, history, 14 months ago, In English
ICPC 2025-2026 season "covid rule" Hello everyone, we are facing a problem due to changes in the rules of participation in the ICPC qualification. And these changes seem unfair to us! We want to report this issue to the community and hear your opinion. Please give feedback if you have any thoughts on this. So, about the rules: In 2020 (covid year), the ICPC organizers introduced a rule according to which participation in the 20/21 online qualification will not be counted in the number of possible participation in the qualification: A student who has competed in qualifying regional contests during five different contest years is NOT eligible to compete. **Regional participation 2020/21 is not counted towards the max 5 regionals!** https://web.archive.org/web/20220324023911/https://icpc.global/regionals/rules In 2023, this rule was unexpectedly removed for the 2025-2026 season: 1. A student who has competed in qualifying regional contests during five different contest years is NOT eligible to compete wi...
ICPC 2025-2026 season "covid rule", In 2023, this rule was unexpectedly removed for the 2025-2026 season:, Yes, the rule was removed in advance. To be honest, many people did not notice the change, it came, Yes, this is an analogue of the old covid rule, but with an important limitation about 8 completed

Full text and comments »

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

166.
By zhoukangyang, history, 5 weeks ago, In English
MIT Informatics Tournament 2026-27 Winter Contest Please join our **[Discord server](https://discord.gg/WPhngGjWhC)** for the latest updates! Hello Codeforces! We ([user:anango,2026-10-28], [user:bensonlzl,2026-10-28], [user:79brue,2026-10-28], [user:Boomyday12343,2026-10-28], [user:eternal1422,2026-10-28], [user:ewirlan,2026-10-28], [user:for_clarifying,2026-10-28], [user:Feet_McYeet,2026-10-28], [user:jer033,2026-10-28], [user:jay_jayjay,2026-10-28], [user:jatloe,2026-10-28], [user:MinaRagy06,2026-10-28], [user:MtSaka,2026-10-28], [user:Mingyu331,2026-10-28], [user:RecursiveCo,2026-10-28], [user:SHZhang,2026-10-28], [user:_sadhamster_,2026-10-28], [user:zhoukangyang,2026-10-28]), current students at MIT, are excited to announce that **registration is now OPEN** for the **MIT Informatics Tournament 2026–27 Winter Contest (M(IT)²)**! The contest will take place on **Sunday, December 6, 2026**, both in person at MIT and online. **Registration link**: https://mitit.org/Registration **M(IT)²** is a full-day competitive pro...

Full text and comments »

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

167.
By Qingyu, 12 months ago, In English
The 2025 Universal Cup Online Challenge is Happening Soon! <center> <img src="/predownloaded/43/f6/43f69acd4c854a20d5f7064fe6252b346f9f5d5a.png" style="height:262.0px;max-width: 100.0%;max-height: 100.0%; "> </center> **UPD: The [contest platform](https://challenge.ucup.ac/) is up! Everyone can now register through the platform!!!!** **UPD: The champion will be invited as a guest (with full accommodation and travel expense covered) to the 2026 Universal Cup Finals. The champion will be awarded at the time and will be invited to participate in the onsite challenge.** Hello Codeforces! We are very happy to announce that, after months of preparation, we have finally scheduled our first online challenge from December 17th to December 24th! Sponsored by Huawei, we have prepared valuable prizes for everyone to compete for! Although many details are still to be finalized, we are too excited to share the following details with you as an early Christmas gift! - Contest Name (Subject to Change): The 2025 Universal Cup Online Challenge...

Full text and comments »

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

168.
By Kuroni, 17 months ago, In English
VNOI Cup 2025 — Final Mirror ![ ](/predownloaded/76/98/769802d6f0208284ae3e24bfac0b8815a41299d7.png) Hello again Codeforces! We are excited to invite you to the mirror contest of the VNOI Cup 2025 Final Round! Join us on [Friday, July 18, 2025, at 10:00 AM GMT+7](https://www.timeanddate.com/worldclock/fixedtime.html?msg=VNOI+Cup+2025+-+Final+Mirror&iso=20250718T10&p1=3909&ah=5) (this is 60 minutes after the official onsite round starts) and try the same fun, yet challenging problems as our finalists! VNOI Cup is a Competitive Programming competition hosted by VNOI (Vietnam Olympiads in Informatics community), a group of Vietnamese programmers working together to make programming competitions more fun and challenging in Vietnam. We're a non-profit organization dedicated to supporting the growth of competitive programming in Vietnam, and this competition is one of the many ways we aim to achieve that goal. A huge shoutout to our awesome problem setters and testers! Thanks to their hard work, we have an e...
* [Detailed rules (Vietnamese)](https://cup.vnoi.info/rule/).

Full text and comments »

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

169.
By nik_exists, 11 months ago, In English
Codeforces Round 1074 (Div. 4) Hello <font color="#DBA800">C</font><font color="blue">o</font><font color="red">d</font><font color="#DBA800">e</font><font color="blue">f</font><font color="red">o</font><font color="#DBA800">r</font><font color="blue">c</font><font color="red">e</font><font color="#DBA800">s</font><font color="blue">!</font> ------------------ I am delighted to invite you to the first Div. 4 round of the year: [contest:2185]! The round is scheduled for [contest_time:2185]. You will be given 7 &mdash; 8 problems to solve (all authored by me), and 2 hours and 15 minutes to solve them. The format of the event will be identical to Div. 3 rounds: - ICPC rules with a penalty of 10 minutes for an incorrect submission. - 12-hour phase of open hacks after the end of the round (hacks do not give additional points). - After the end of the open hacking phase, all solutions will be tested on the updated set of tests, and the ratings will be recalculated. Only trusted participants of the fourth ...

Full text and comments »

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

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

Full text and comments »

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

171.
By MikeMirzayanov, 9 years ago, translation, In English
Codeforces: Thanks for the support! <img src="/predownloaded/70/a9/70a96afc574eb7a6ee37d8a1ee175f91b2b3c83a.png" style="float: right; margin: 0 1em 1em 1em"/> Hello! This blog post is about the end of the crowdfunding campaign dedicated to the 8th anniversary of Codeforces. Everything worked out. Hooray! For us, it is very important to support not only in terms of the collected budget, but as a powerful indicator that Codeforces is important to you. It was very pleasant to read words of gratitude and congratulations. Thank you! We received more than 1000 donations from community members from around the world. For 45 days we've collected more than $60000 dollars. The collected funds will allow us to continue to move forward, to please you with new contests and improvements of the system. I am happy to report that starting in May 2018, we will be able to slightly increase rewards for problem writers. |Round type|USD|Rubles| |-----------|--|---| |Div 1 + Div 2| $250+*$150=$400 | 26000 rub | | Div 2 | $1...

Full text and comments »

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

172.
By hoke_t, history, 7 years ago, In English
System marks KACTL LCA code as cheating for many participants After competing today in [contest:1304], I received the following message from [user:System,2020-02-15]: _Attention!_ _Your solution [submission:71152328] for the problem 1304E significantly coincides with solutions [user:ksun48,2020-02-15]/[submission:71134293], [user:hoke_t,2020-02-15]/[submission:71152328], [user:Venia,2020-02-15]/[submission:71156816], [user:hanga97,2020-02-15]/[submission:71159069]. Such a coincidence is a clear rules violation. Note that unintentional leakage is also a violation. For example, do not use ideone.com with the default settings (public access to your code). If you have conclusive evidence that a coincidence has occurred due to the use of a common source published before the competition, write a comment to post about the round with all the details. More information can be found at http://codeforces.me/blog/entry/8790. Such violation of the rules may be the reason for blocking your account or other penalties. In case of repeated violations, your ...

Full text and comments »

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

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

Full text and comments »

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

174.
By awoo, history, 6 years ago, translation, In English
Educational Codeforces Round 103 [Rated for Div. 2] Hello Codeforces! On [contest_time:1476] [contest:1476] will start. Series of Educational Rounds continue being held as [Harbour.Space University](https://harbour.space/) initiative! You can read the details about the cooperation between [Harbour.Space University](https://harbour.space/) and Codeforces in the <a href="http://codeforces.me/blog/entry/51208">blog post</a>. This round will be **rated for the participants with rating lower than 2100**. It will be held on extended ICPC rules. The penalty for each incorrect submission until the submission with a full solution is 10 minutes. After the end of the contest you will have 12 hours to hack any solution you want. You will have access to copy any solution and test it locally. You will be given **6 or 7 problems** and **2 hours** to solve them. The problems were invented and prepared by Roman [user:Roms,2021-01-28] Glazov, Adilbek [user:adedalic,2021-01-28] Dalabaev, Vladimir [user:vovuh,2021-01-28] Petrov, Ivan [us...

Full text and comments »

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

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

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

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

Full text and comments »

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

178.
By awoo, history, 7 years ago, translation, In English
Educational Codeforces Round 85 [Rated for Div. 2] Hello Codeforces! On [contest_time:1334] [contest:1334] will start. Series of Educational Rounds continue being held as [Harbour.Space University](https://harbour.space/) initiative! You can read the details about the cooperation between [Harbour.Space University](https://harbour.space/) and Codeforces in the <a href="http://codeforces.me/blog/entry/51208">blog post</a>. This round will be **rated for the participants with rating lower than 2100**. It will be held on extended ICPC rules. The penalty for each incorrect submission until the submission with a full solution is 10 minutes. After the end of the contest you will have 12 hours to hack any solution you want. You will have access to copy any solution and test it locally. You will be given **6 or 7 problems** and **2 hours** to solve them. The problems were invented and prepared by Roman [user:Roms,2020-04-09] Glazov, Adilbek [user:adedalic,2020-04-09] Dalabaev, Vladimir [user:vovuh,2020-04-09] Petrov, Ivan [us...

Full text and comments »

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

179.
By galen_colin, history, 6 years ago, In English
Alternate timelines Hi everyone! I'm writing this blog to hopefully throw out a bit of inspiration. With any measure of skill such as rating, people are always going to tie up their self-confidence with it. Unfortunately, that means when rating is lost, people lose confidence and/or motivation, which always sucks, especially with huge rating losses that seem impossible to overcome. But I want to demonstrate with an example that in the long run, even the largest rating losses won't affect much. We'll use [my performance on Global Round 7](https://codeforces.me/contest/1326/standings/participant/34093562#p34093562) as an example. A whopping <a style = "color: red; font-weight: bold; pointer-events: none;">-166</a>*. Devastating, right? Well, let's see about that... Let's look at the alternate timeline where I didn't participate in the round and the rating loss never happened (but my performance in the later contests was the same). Thanks to [user:sjsakib,2020-06-27] and [cfviz](https://cfviz.netl...

Full text and comments »

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

180.
By awoo, 6 years ago, translation, In English
Educational Codeforces Round 97 [Rated for Div. 2] Hello Codeforces! On [contest_time:1437] [contest:1437] will start. Series of Educational Rounds continue being held as [Harbour.Space University](https://harbour.space/) initiative! You can read the details about the cooperation between [Harbour.Space University](https://harbour.space/) and Codeforces in the <a href="http://codeforces.me/blog/entry/51208">blog post</a>. This round will be **rated for the participants with rating lower than 2100**. It will be held on extended ICPC rules. The penalty for each incorrect submission until the submission with a full solution is 10 minutes. After the end of the contest you will have 12 hours to hack any solution you want. You will have access to copy any solution and test it locally. You will be given **6 or 7 problems** and **2 hours** to solve them. The problems were invented and prepared by Roman [user:Roms,2020-10-26] Glazov, Adilbek [user:adedalic,2020-10-26] Dalabaev, Vladimir [user:vovuh,2020-10-26] Petrov, Ivan [us...

Full text and comments »

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

181.
By pashka, history, 3 years ago, translation, In English
Codeforces Round 920 (Div. 3) Hello! On [contest_time:1921] will start [contest:1921], the next Codeforces round for the third division. The round was coordinated by [user:Vladosiya,2024-01-14], and prepared by me and the students of [Neapolis University Pafos](https://lp.jetbrains.com/academy/csai-program/): [user:Vitaly503,2024-01-14], [user:goncharovmike,2024-01-14], [user:ikrpprppp,2024-01-14], [user:step_by_step,2024-01-14]. Thank you very much [user:Alexdat2000,2024-01-14], [user:dan_dolmatov,2024-01-15], [user:fastmath,2024-01-14], [user:FBI,2024-01-14], [user:Nickir,2024-01-14], [user:nikhil97agra,2024-01-14], [user:pavlekn,2024-01-14], [user:PMiguelez,2024-01-14], [user:SashaT9,2024-01-14], [user :senjougaharin,2024-01-14], [user:Sergey140146659,2024-01-14], [user:Sparrow_Guo,2024-01-14], [user:Toy_mouse,2024-01-14], [user:vladmart,2024-01-15] for testing the round. As usual for the third division rounds: - there will be 6-8 tasks in a round - round duration is 2 hours 15 minutes - the round ...

Full text and comments »

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

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

183.
By pooty, 4 years ago, In English
Invitation to NUS CS3233 Final Team Contest 2023 Mirror <img alt="logo" src="/predownloaded/7a/2d/7a2da3823042e763e0d15d6571ba0bcb38139f90.png" style="float: right;height: 100.0px;margin: 10.0px;max-width: 100.0%;max-height: 100.0%;"> Hello, Codeforces community! We are happy to invite you to participate in [National University of Singapore (NUS) CS3233 Final Team Contest 2023 Mirror](https://codeforces.me/contestInvitation/3d3b392eb92ff65022128f4e22462d5eaff55a25) on [Monday, April 10, 2023, at 09:35 UTC](https://www.timeanddate.com/worldclock/fixedtime.html?day=10&month=4&year=2023&hour=12&min=35&sec=0&p1=166). CS3233 is a course offered by NUS to prepare students in competitive problem solving. The contest is unofficial and will be held in Codeforces Gym. Standard ICPC rules **(Unrated, ICPC Rules, Teams Preferred)** apply. **The contest is unrated**. **Note the unusual starting time**. The problems are written and prepared by [user:user202729_,2023-04-08], [user:rama_pang,2023-04-08], and [user:pooty,2023-04-08]. We wo...

Full text and comments »

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

184.
By AkiLotus, history, 8 years ago, In English
Codeforces Round #554 (Div. 2) Once again, **TREMBLE BEFORE THE MIGHTY OMEGALULRIPGRAPE.** ![ ](https://i.imgur.com/kpS7NEq.png) ![ ](https://i.imgur.com/A2dF7M2.jpg) *(He last walked the Earth in round [538](https://codeforces.me/blog/entry/65033) btw.)* Hello Codeforces! We are here to invite you to Codeforces Round #554 (Div. 2), which will take place at [contest_time:1152]. The round will be rated for all Division 2 participants **(with rating less than 2100)**, yet any Division 1 participants are welcome to join us out of competition. The round will be cat themed. Raise your paws and prepare your catnips! *(Or even cat memes, while you're at it).* You will be given **6+1** problems ( **6** problems, one of them has **2** subtasks ) to solve in **2 hours.** The round's problems were prepared by Xuan-Quang ~xuanquang1999,2019-04-23 D. Nguyen, Duy-Bach ~Akikaze,2019-04-23 Le, Stefan ~stefdasca,2019-04-23 Dascalescu, Quang-Minh ~MofK,2019-04-23 D. Nguyen and our dear Codeforces coordinator ...

Full text and comments »

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

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

186.
By Geothermal, history, 7 years ago, In English
Introducing Competitive Programming Academy Hi all! I'm proud to announce **Competitive Programming Academy**, my new programming competition training community. Though the broad objective of CPA is to help people grow as competitive programmers, there are three specific goals I hope to achieve with this program: 1. To provide a programming competition community focused specifically on training and growth. There are many existing communities that work well for discussing programming contests, but I think having one emphasizing training will make it easier for people to ask questions without fear of being ignored (or downvoted). Of course, the other advantage of asking questions there is that I'll be around to answer them. Additionally, my hope is that having a community with which to train is likely to help people who don't have other competitive programmers around locally find motivation to grow. 2. Helping people create training plans and find helpful resources to use while practicing. While I'm not convinced t...

Full text and comments »

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

187.
By awoo, history, 6 years ago, translation, In English
Educational Codeforces Round 101 [Rated for Div. 2] Hello Codeforces! On [contest_time:1469] [contest:1469] will start. Series of Educational Rounds continue being held as [Harbour.Space University](https://harbour.space/) initiative! You can read the details about the cooperation between [Harbour.Space University](https://harbour.space/) and Codeforces in the <a href="http://codeforces.me/blog/entry/51208">blog post</a>. This round will be **rated for the participants with rating lower than 2100**. It will be held on extended ICPC rules. The penalty for each incorrect submission until the submission with a full solution is 10 minutes. After the end of the contest you will have 12 hours to hack any solution you want. You will have access to copy any solution and test it locally. You will be given **6 or 7 problems** and **2 hours** to solve them. The problems were invented and prepared by Roman [user:Roms,2020-12-27] Glazov, Adilbek [user:adedalic,2020-12-27] Dalabaev, Vladimir [user:vovuh,2020-12-27] Petrov, Ivan [us...

Full text and comments »

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

188.
By Kuroni, history, 3 years ago, In English
VNOI Cup 2024 Round 1 — Mirror Invitation Hello Codeforces! We're thrilled to announce the third season of the VNOI Cup! &#127881; We invite you to join the mirror round of our programming contest. **Remember, if you are a Vietnamese-national, consider joining the official round**. <center> <img src="/predownloaded/22/11/2211a1152e1cecea1a8e0cb38bd178808b077238.png"></img> </center> VNOI Cup is a Competitive Programming competition hosted by VNOI (Vietnam Olympiads in Informatics community), a group of Vietnamese programmers like you, working together to make programming competitions more fun and challenging in Vietnam. We're a non-profit organization dedicated to supporting the growth of competitive programming in Vietnam. This competition is one of the many ways we aim to achieve this goal! A big shoutout to our awesome problem setters and testers! Thanks to their hard work, we have an exciting contest ready for you. - [user:xuanquang1999,2024-05-26], [user:atoiz,2024-05-26], [user:vinfat,2024-05-26], [us...
://oj.vnoi.info/contest/vnoicup24_r1_mirror - Detailed rule in Vietnamese: https://cup.vnoi.info/rule/

Full text and comments »

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

189.
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...
the [rule restricting AI use](https://codeforces.me/blog/entry/133941)!!!** If you are caught using

Full text and comments »

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

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

Full text and comments »

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

191.
By tmwilliamlin168, history, 9 years ago, In English
Strange Situation about IOI eligibility Hello, I have dual citizenship (Taiwan and USA), and I currently study in an American high school located in Taiwan. I've already participated in the regional contest about 7 weeks ago and did pretty well, so I qualified for the national contest. So now I'm practicing as much as I can for the national contest, but recently I was told that I could qualify for the training camp but not the national team for Taiwan. I searched online for IOI rules and found this link on the IOI-2017 site: http://www.ioinformatics.org/rules/reg17.pdf. Here are some parts of it that stood out: "A Contestant is a student who was enrolled in a school at a level not higher than secondary education, in the Country they are representing, for the majority of the period 1 September to 31 December in the year before IOI’n. Students who are studying abroad may represent the Country of their nationality." Not only am I studying in Taiwan, I also have Taiwan citizenship, so I definitely fit this criteri...

Full text and comments »

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

192.
By Qingyu, 3 months ago, In English
The 4th Universal Cup Semifinals Hi all! It has been quite a while since my last post about the Universal Cup, so here is proof that we are still alive and kicking :) We are excited to announce that **The 4th Universal Cup Semifinals** will take place on **October 11th, 2026**! As in previous seasons, the Semifinals will be held online, and top-performing teams will have the opportunity to advance to **The 4th Universal Cup Finals**, which we hope to hold in 2027. We are introducing the new contest format: the Semifinals will be **6-hour contests**. The idea of extending the contest duration was first discussed before The 3rd Universal Cup Finals, and we would like to use this opportunity to see how well a longer team contest format works for our competition. *Based on how the Semifinals go, we will decide whether to adopt a similar format for The 4th Universal Cup Finals.* The draft of the detailed rules can be found [here](https://qoj.ac/files/Qingyu/The%204th%20Universal%20Cup%20Semifinals%20Rules%20v1....

Full text and comments »

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

193.
By djm03178, 2 years ago, In English
Everything about Codeforces scoring system This is a tutorial to how Codeforces scoring system works and some basic strategies about it. I will only explain about rated rounds here, but note that there are other types of scoring in unrated contests. Please do share this blog when you see questions about it. Scoring types ------------------ There are two different types of scoring system: - Standard (Div. 1 / Div. 2, Div. 1 + Div. 2) - Extended ICPC (Educational, Div. 3, Div. 4) The standard (this is not a formal name, but I don't know if one exists) scoring is Codeforces' own scoring system where each participant's rank is determined solely by their **final score**. On the other hand, extended ICPC literally uses the ICPC rule for calculating ranks, using **number of solved problems & penalty**, with slight modifications. Standard ------------------ Contests using this scoring system have pre-determined initial scores on each problem. By initial it means you get that score when you solve it in the $0$-th min...

Full text and comments »

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

194.
By awoo, history, 5 years ago, translation, In English
Educational Codeforces Round 110 [Rated for Div. 2] Hello Codeforces! On [contest_time:1535] [contest:1535] will start. Series of Educational Rounds continue being held as [Harbour.Space University](https://harbour.space/) initiative! You can read the details about the cooperation between [Harbour.Space University](https://harbour.space/) and Codeforces in the <a href="http://codeforces.me/blog/entry/51208">blog post</a>. This round will be **rated for the participants with rating lower than 2100**. It will be held on extended ICPC rules. The penalty for each incorrect submission until the submission with a full solution is 10 minutes. After the end of the contest you will have 12 hours to hack any solution you want. You will have access to copy any solution and test it locally. You will be given **6 or 7 problems** and **2 hours** to solve them. The problems were invented and prepared by Roman [user:Roms,2021-06-03] Glazov, Adilbek [user:adedalic,2021-06-03] Dalabaev, Vladimir [user:vovuh,2021-06-03] Petrov, Ivan [us...

Full text and comments »

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

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

Full text and comments »

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

196.
By BledDest, 6 years ago, In English
Kotlin Heroes 6 Announcement <img src="/predownloaded/6b/62/6b62332b37519ade4a4d42cb266937c422b64557.png" style="width:500px;float:right;margin:0 1em 1em 1em;"/> Hello, Codeforces! First and foremost, we would like to say a massive thank you to everyone who entered and submitted their answers to the five Kotlin Heroes competitions which were held previously: [Episode 1](https://codeforces.me/contests/1170), [Episode 2](https://codeforces.me/contests/1211), [Episode 3](https://codeforces.me/contests/1297), [Episode 4](https://codeforces.me/contests/1346), and [Episode 5: ICPC Round](https://codeforces.me/contest/1431). Ready to challenge yourself to do better? The [contest:1488] competition will be hosted on the Codeforces platform on [contest_time:1488]. The contest will last 2 hours 30 minutes and will feature a set of problems from simple ones, designed to be solvable by anyone, to hard ones, to make it interesting for seasoned competitive programmers. **Prizes:** **Top three winners will ge...

Full text and comments »

Announcement of Kotlin Heroes: Episode 6
Announcement of Kotlin Heroes: Practice 6
  • Vote: I like it
  • +168
  • Vote: I do not like it

197.
By FelixArg, 10 months ago, translation, In English
Codeforces Round 1079 (Div. 1, Div. 2) Hello, Codeforces! ------------------ <img src="https://i.pinimg.com/736x/f0/9d/34/f09d34e3c9f8d9b5f9307e97410f3752.jpg" style="float: right;margin: 0 5% 5%;width: 25.0%;height: 25.0%;"> [user:sevlll777,2026-02-08] and I are glad to invite you to participate in [contest:2196] and [contest:2197]. Both rounds will take place at [contest_time:2196]. There will be **6 problems** in each round, some of them can be divided into several subtasks. You will have **3 hours** to solve all the problems. The round will be held according to the Codeforces rules and will be rated for both divisions. 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. We would like to thank: - [user:Um_nik,2026-02-08] for pre-reviewing the round. - [user:FairyWinx,2026-02-08] for coordination and helping with problem ideas/preparation. - [user:MikeMirzayanov,2026-02-08] and [user:KAN,202...

Full text and comments »

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

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

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

Full text and comments »

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

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

201.
By Qingyu, history, 2 years ago, In English
2025 Universal Cup Finals Announcement <center> <img src="/predownloaded/43/f6/43f69acd4c854a20d5f7064fe6252b346f9f5d5a.png" style="height:262.0px;max-width: 100.0%;max-height: 100.0%; "> </center> The 2025 Universal Cup Finals will be held on February 19-24, 2025, in Dongguan, China. <center style="margin-top:20px;"> <img src="/predownloaded/2e/43/2e43c11b6aa0f332223289005f38684c9e915c74.jpg" style="height:200.0px;max-width: 100.0%;max-height: 100.0%;"> <img src="/predownloaded/e2/2e/e22ec3eafa2bc52cff481928fd8889ed4ce1f059.jpg" style="height:200.0px;max-width: 100.0%;max-height: 100.0%; "> </center> <center> <img src="/predownloaded/76/5d/765d68de65938a0f5596b977441bd64557849a7b.jpg" style="height:200.0px;max-width: 100.0%;max-height: 100.0%; "> <img src="/predownloaded/13/51/13516e6e33e4f33a1860ecdd35b534b85b8def12.jpg" style="height:200.0px;max-width: 100.0%;max-height: 100.0%; "> </center> Starting on November 1st, based on the results of the 2023 ~ 2024 Universal Cup Online Stages and The 2nd ...

Full text and comments »

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

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

203.
By SpyrosAliv, 2 months ago, In English
WorldQuant Round 1 (Codeforces Round 1128, Div. 1 + 2) <h4>Καλησπέρα/안녕/สวัสดี/أهلا/你好 Codeforces!</h4> <center> <img src="https://i.ibb.co/x85ZGVjm/verity.png" alt="verity" style="float:right; height: 154px; padding-left: 35px; padding-right: 73px; padding-top: 41px; padding-bottom: 33px;"/> </center> With great felicity, immense joviality, and unparalleled positivity, we, a team of authors united by our creativity, originality, ingenuity, and curiosity, consisting of [user:omsincoconut,2026-10-08], [user:chromate00,2026-10-08], [user:ttamx,2026-10-08], [user:yse,2026-10-08], [user:marszpace,2026-10-08], an individual of mysterious identity, and me, [user:SpyrosAliv,2026-10-08], have the distinct opportunity and absolute pleasure to invite you to [contest:2261], an event of exceptional quality and remarkable diversity, which will become a reality on [contest_time:2261]. You will be presented with <b>8 problems</b> of varying complexity, difficulty, and subtlety, with exactly <b>3 hours</b> of availability to demonstrate your...
prevent unfair participation and rule violations._

Full text and comments »

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

204.
By K1o0n, 2 months ago, translation, In English
Codeforces Round #1125 (Div. 3) Hello! We invite you to participate in [contest:2275], which will take place on [contest_time:2275]. This will be a Division 3 round. You will be given **8 problems**, authored by me and polished to perfection with the help of [user:Noobish_Monk,2026-09-30] and [user:Gornak40,2026-09-30], as well as **2 hours and 30 minutes** to solve them. 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. We [remind you](https://codeforces.me/blog/entry/59228) that only *trusted participants of the third division* will be included in the official standings. This is a necessary measure to...
Note the [rule restricting the use of AI](https://codeforces.me/blog/entry/133941). Previous

Full text and comments »

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

205.
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 ...
seaweed: If two seaweeds never met before, then they cross. From this rule, we can easily find the

Full text and comments »

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

206.
By WorldWarV, history, 3 months ago, In English
Codeforces Round 1122 (Div. 3) ## Hello, Codeforces! I am very excited to invite you to participate in [contest:2266], which will take place on [contest_time:2266]. You will be given $2$ hours and $30$ minutes to solve $7$ or $8$ problems. All problems were authored and prepared by me, [user:WorldWarV,2026-09-16]. 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. You should [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 unsport...
Also, note the [rule restricting the use of AI](https://codeforces.me/blog/entry/133941). If you

Full text and comments »

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

207.
By awoo, history, 9 years ago, translation, In English
Educational Codeforces Round 35 [Rated for Div. 2] Hello Codeforces! On [December 28, 17:05 MSK](http://www.timeanddate.com/worldclock/fixedtime.html?day=28&month=12&year=2017&hour=17&min=5&sec=0&p1=166) Educational Codeforces Round 35 will start. Series of Educational Rounds continue being held as [Harbour.Space University](https://harbour.space/) initiative! You can read the details about the cooperation between [Harbour.Space University](https://harbour.space/) and Codeforces in the [blog post](http://codeforces.me/blog/entry/51208). This round will be **rated for Div. 2**. It will be held on extented ACM ICPC rules. After the end of the contest you will have one day to hack any solution you want. You will have access to copy any solution and test it locally. You will be given **7 problems** and **2 hours** to solve them. The problems were prepared by Ivan [user:BledDest,2017-12-27] Androsov, Vladimir [user:0n25,2017-12-27] Petrov, Alexey [user:Perforator,2017-12-27] Ripinen and me. Thanks Mike [user:MikeMirzayano...

Full text and comments »

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

208.
By Xellos, history, 10 years ago, In English
Invitation to IPSC 2016 ![ ](http://serbagratis.info/images/kapal+nabi+nuh.jpg) There has been talk about this already, but in case anyone missed it: The 2016 edition of Internet Problem Solving Contest is going to take place **today** [(starting time)](https://www.timeanddate.com/worldclock/fixedtime.html?month=6&day=18&year=2016&hour=11&min=0&sec=0). It's a 5-hour contest for teams of up to 3 people, but there's also an individual division, so feel free to participate even if you can't find yourself a team at this point. There's going to be an ACM-like number of problems (12+), ranging from classic algorithmic problems to quite unusual ones. Most problems have an easy subproblem worth 1 point and a hard one worth 2 points (think CodeJam); ties are broken using ACM rules (sum of times). The practice session is over. **The contest is over!** Read the [rules](https://ipsc.ksp.sk/rules) or my previous blogposts about this for more info. #### Belated, yet necessary warning! Since this is ...

Full text and comments »

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

209.
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...
violate the rule above, we arrive to the following definition of the nimber product:

Full text and comments »

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

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

Full text and comments »

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

211.
By awoo, history, 7 years ago, translation, In English
Educational Codeforces Round 86 [Rated for Div. 2] Hello Codeforces! On [contest_time:1342] [contest:1342] will start. Series of Educational Rounds continue being held as [Harbour.Space University](https://harbour.space/) initiative! You can read the details about the cooperation between [Harbour.Space University](https://harbour.space/) and Codeforces in the <a href="http://codeforces.me/blog/entry/51208">blog post</a>. This round will be **rated for the participants with rating lower than 2100**. It will be held on extended ICPC rules. The penalty for each incorrect submission until the submission with a full solution is 10 minutes. After the end of the contest you will have 12 hours to hack any solution you want. You will have access to copy any solution and test it locally. You will be given **6 or 7 problems** and **2 hours** to solve them. The problems were invented and prepared by Roman [user:Roms,2020-04-25] Glazov, Adilbek [user:adedalic,2020-04-25] Dalabaev, Vladimir [user:vovuh,2020-04-25] Petrov, Ivan [us...

Full text and comments »

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

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

213.
By adamant, history, 5 years ago, In English
Associativity and general identity testing Hi everyone! Five days have passed since my [previous post](https://codeforces.me/blog/entry/91610) which was generally well received, so I'll continue doing posts like this for time being. Abstract algebra is among my favorite subjects. One particular thing I find impressive is the associativity of binary operations. One of [harder problems](https://codeforces.me/gym/102129/problem/B) from my contests revolves around this property as you need to construct an operation with a given number of non-associative triples. This time I want to talk about how one can check this property for both groups and arbitrary magmas. First part of my post is about Light's associativity test and how it can be used to deterministically check whether an operation defines a group in $O(n^2 \log n)$. Second part of the post is about Rajagopalan and Schulman probabilistic identity testing which allows to test associativity in $O(n^2 \log n \log \delta^{-1})$ where $\delta$ is error tolerance. Finall...
For convenience, these three parts are separated by horizontal rule.

Full text and comments »

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

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

215.
By purplesyringa, history, 2 years ago, In English
Please improve QoL for blogs I'm pretty sure I've spent more time writing blogs than contests on Codeforces. Over time, I've found plenty of rough edges. So this is a plea to the Codeforces team to fix them. I'm effectively going to say "please redo everything" over dozens of paragraphs, but I'll hopefully make the steps to the solution tangible and clear. If this is deemed way too ambitious, few improvements are better than none. [cut] <!-- --> ## Publication time So I write a post in the Codeforces UI, save a draft, update it a few times, think it's ready, and publish it. I open my brand new post and see: > ### Totally not a useless post > By [user:purplesyringa,2024-09-24], history, 3 days ago, In English Okay, wait, "3 days ago"? Oh, right, that's when I saved the first draft. Now people open the post, see "3 days ago", see 0 upvotes, and what do they think? That's right, they think it's garbage because no one's voted positive, so they skip the article. Maybe not everyone's like tha...

Full text and comments »

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