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.

atcoder

Last visit:  3 years ago
Registered:  6 years ago
2.
By rng_58, history, 6 years ago, In English
Retiring from competitive competitive programming Recently, I feel I've passed my peak as a competitive programmer, and ran out of sufficient energy/motivation to keep the top form and be prepared to win the next contest. I think I've done everything I can do as a competitive programmer, and now it's time to end my career as a professional (mind) sport player. It was a great experience. I'd like to thank everyone involved in the community, especially: - Competitors. It was always nice to compete against you all! - Problem writers who gave great problems to the community. I started my career as a competitive math-puzzle solver in 1999. The first contest was a local one named "junior sansu (arithmetic) olympiad". Since then, I enjoyed this sport a lot for 21 years. In 2007, I started TopCoder, and it changed my life. The problems were great, and every single match of SRM felt like a once-in-a-life event. A lot of legends were competing there — [user:Petr,2020-12-31], [user:tomek,2020-12-31], [user:ACRush,2020-12...
at AtCoder. Especially in AtCoder, I had a right to decide everything as the leader of the writers, what to do next. I'll stay in AtCoder and hope to keep in touch with the community in some form., Then I became an admin, first at TopCoder, then at AtCoder. Especially in AtCoder, I had a right

Full text and comments »

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

3.
By MikeMirzayanov, 7 years ago, In English
Codeforces: изменение подсчёта рейтинга для новых аккаунтов Всем привет. В ближайшие дни я закончу реализацию небольших изменений подсчета рейтинга для новых аккаунтов. Вот основные нововведения. * Рейтинг нового аккаунта будет равен $0$ для отображения (но будет равен $1400$ при подсчете изменений рейтинга). * Допустим, после первого раунда участник на основании своих результатов получил $d_1$ единиц рейтинга (помните, что его рейтинг считался равным $1400$ при таких расчетах), то в отображении рейтинга после этого раунда будет отображен $500+d_1$. Таким образом, после первого участия рейтинг наверняка увеличится с $0$ до значения в районе $500$ (плюс-минус $300$ примерно). * Таким образом, перед вторым участием отображаемый рейтинг равен $500+d_1$, а рейтинг для подсчета изменений $1400+d_1$. Допустим, новое изменение будет равно $d_2$, тогда отображаемый рейтинг станет равен $500+d_1+350+d_2$. * Таким образом, перед третьим участием отображаемый рейтинг равен $500+d_1+350+d_2$, а рейтинг для подсчета изменений $1400+d_1+d_2$. Допуст...
slightly reduce the motivation to create new accounts. Apparently, a similar idea is used onAtCoder, уменьшить мотивацию создавать новые аккаунты. Видимо, подобная идея используется и наAtCoder, но, Apparently, a similar idea is used on AtCoder, but I don't know the details., Видимо, подобная идея используется и на AtCoder, но подробностей я не знаю.

Full text and comments »

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

4.
By Radewoosh, history, 6 years ago, In English
My opinion on how to practice competitive programming I'm not very often replying to questions about how to practice, but as I'm getting enough of them (and I've just seen another blog about practicing) let me tell you about it. Of course, every time when you ask someone good about how to practice, he/she will reply to you to "solve a lot of problems" and that's true, there's no other way. Anyway, I've thought about it and actually I'm able to tell a bit more. I know some people, I've seen many people practicing (including me) and I have an opinion. Many people practice in some organized way. High schools organize IOI/OI training contests every Saturday, universities organize ICPC training contests once a week, people try by their own to solve three problems each day, websites host rounds and so on. Here's a secret: it's a sh*t. Yep, that's true. If you want to be really good and to make it happen you compete in a training once a week, you do it only to be able to make excuses "but I'm training so hard" when you see no progress. ...
feelings. Also, one last tip: I've noticed it observing all the top people on Codeforces/Atcoder. None, Also, one last tip: I've noticed it observing all the top people on Codeforces/ Atcoder. None of

Full text and comments »

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

5.
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 ...
AtCoder Library, As you see, it makes the code much cleaner. Of course, this library is installed on theAtCoder, ``` #include <atcoder/convolution> #include , using namespace std; using namespace atcoder;

Full text and comments »

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

6.
By maroonrk, history, 3 weeks ago, In English
I will step down as AtCoder Admin [Original Post on AtCoder](https://atcoder.jp/posts/goodbye_maroonrk_en). I'm maroonrk. I have been serving as an admin for AtCoder's Algorithm division since 2021, but I would like to announce that I will be stepping down at the end of January 2027. There are several reasons behind this decision, but the biggest turning point was this year's AWTF. It wasn't because I was devastated by seeing humans lose to AI. Having watched AI's progress, I had expected that this day would eventually come. I won't deny that seeing AI solve every problem was a shock, but even so, I am glad that I had the opportunity to witness that historic moment, and that the problems presented on that stage were ones I had created. That contest left me with a certain sense of accomplishment. I felt that all the effort I had poured into organizing contests over the years had been rewarded by becoming a part of history. At the same time, I began to feel that I needed to take on a new challenge. For a w...
I will step down as AtCoder Admin, . Please wait for a separate announcement from the AtCoder team for further details., AtCoder Algorithm Admin maroonrk, Finally, I would like to express my sincere gratitude to everyone who has participated inAtCoder, [Original Post on AtCoder](https://atcoder.jp/posts/goodbye_maroonrk_en).

Full text and comments »

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

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

Full text and comments »

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

8.
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...
My strategy at AtCoder & CS Academy, [user:Petr,2017-07-24]'s remarks regarding my participation in AtCoder contests. In my opinion, it's, systems of AtCoder and CS Academy. Most of the relevant discussion happened earlier at http, , this could've cost me several places during [AtCoder Grand Contest 018](http://agc018, To the admins of AtCoder and CS Academy: I think there's no need to change the rules. In my opinion

Full text and comments »

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

9.
By MikeMirzayanov, history, 20 months ago, In English
My Reply on "Mike, please stop ignoring your userbase" This is a response to [this post](https://codeforces.me/blog/entry/141442). Originally, I intended to leave it as a comment, but the text turned out to be quite long. So I decided to publish it as a separate post. Hi! Let me start with the main idea: I don't think I ignore too many issues (though I do ignore some). In most cases, I do work on them, but these days I just don't feel like writing about it. That kind of communication takes a lot of energy &mdash; which I currently don't have. Oh, it looks like you edited the beginning of the blog, and now it triggers less of an internal protest in me. Honestly, lately I've been in a difficult emotional state, and I just don't have the energy or desire to interact much. It's not just about Codeforces &mdash; it's generally harder for me to engage than it used to be. I won't go into details (health, relocation, family issues, changes in the nature of my work due to bots) &mdash; all of that affects my mental state and willingne...
happy that AtCoder can fend off bots with a simple CAPTCHA. But Codeforces faces much stronger attacks, issue. I'm honestly happy that AtCoder can fend off bots with a simple CAPTCHA. But Codeforces faces

Full text and comments »

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

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

Full text and comments »

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

11.
By rng_58, history, 6 years ago, In English
Three Revolutions of AtCoder Hello. Today I announce three revolutions of AtCoder! ### 1. AtCoder Library (ACL) We provide a collection of pre-written codes of various algorithms and data structures. I'll describe details in a [separate post](https://codeforces.me/blog/entry/82400). ### 2. New Color Scheme Previously, we decided colors by ratings. For example, gold for 3600 and above, silver for 3200 and above, red for 2800 and above, etc. However, it's not clear what the rating values mean, for example, 2800. If we design the rating system relatively well, in the short term the rating 2800 corresponds to a certain level. The skill required to reach 2800 today is probably similar to that of a year ago. However, the structure of the contests may change, the number of users may change, the average level of users may change, etc., and the exact value of ratings is very sensitive to these changes (and it may cause inflation/deflation). Now I believe ranks are more robust against inflation/deflation and ...
Three Revolutions of AtCoder, ### 1. AtCoder Library (ACL) We provide a collection of pre-written codes of various algorithms, Hello. Today I announce three revolutions of AtCoder!

Full text and comments »

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

12.
By antontrygubO_o, 5 years ago, In English
AtCoder Grand Contest 055 Announcement I am glad to invite you to [AtCoder Grand Contest 055](https://atcoder.jp/contests/agc055). This contest counts for GP30 scores. <ul> <li> Contest URL: <a href="https://atcoder.jp/contests/agc055">https://atcoder.jp/contests/agc055</a> </li> <li> Start time: <a href="https://www.timeanddate.com/worldclock/fixedtime.html?msg=AtCoder+Grand+Contest+055&iso=20211031T21&p1=248&ah=3">Sunday, October 31, 12:00 UTC</a> </li> <li> Duration: 180 minutes </li> <li> Number of Tasks: 6 </li> <li> Writer: [user:antontrygubO_o,2021-10-28] </li> <li> Rated range: 1200+ </li> </ul> The point values will be **400** &mdash; **700** &mdash; **900** &mdash; **1200** &mdash; **1500** &mdash; **1800** I would like to thank: <ul> <li> [user:maroonrk,2021-10-28] for an amazing coordination of this round, and for allowing me to host a contest on AtCoder for the second time </li> <li> [user:AmShZ,2021-10-28] and [user:maroonrk,2021-10-28] for a few great suggestions to improve some ...
AtCoder Grand Contest 055 Announcement, host a contest on AtCoder for the second time * [user:AmShZ,2021-10-28] and [user:maroonrk, =AtCoder+Grand+Contest+055&iso=20211031T21&p1=248&ah=3">Sunday, October 31, 12:00 UTC , I am glad to invite you to [AtCoder Grand Contest 055](https://atcoder.jp/contests/agc055). This

Full text and comments »

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

13.
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...
are less willing to use alt in ATCoder because you lose less rating when having bad performance, and, willing to use alt in ATCoder because you lose less rating when having bad performance, and there is a

Full text and comments »

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

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

Full text and comments »

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

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

Full text and comments »

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

16.
By chokudai, 3 years ago, In English
Thank you for participating in the AtCoder World Tour Finals 2022 English (translated by GPT-4): To AWTF2022 Contestants, Thank you so much for participating in the contest. I apologize for not being able to communicate much due to my inability to speak English. Did you enjoy the contest event? I look forward to seeing you again in Japan. To Everyone, With the conclusion of the topcoder open (TCO) and Google Code Jam (GCJ), and the decision to hold Meta Hacker Cup 2023 online, the only on-site contest in 2023 where anyone from around the world can participate and truly determine the world's best is the AtCoder World Tour Finals. I have participated in the topcoder open finals 5 times (Marathon division) and in the Google Code Jam finals once. Both tournaments were outstanding. From my experience as a competitive programmer, participating in these competitions has been significant, and I believe that this culture must continue. The AtCoder World Tour Finals is a budding event. Compared to TCO and GCJ, it has a shorter history, and th...
Thank you for participating in the AtCoder World Tour Finals 2022, participate and truly determine the world's best is the AtCoder World Tour Finals., AtCoder Inc CEO, AtCoder World Tour Finalsは、新興イベントです。TCOやGCJと比べ歴史が浅く、イベント運営に関しても稚拙な点が多くあります。ですが、参加者のレベルや、出題している問題につい, AtCoder株式会社 代表取締役社長, Currently, AtCoder Corporation only has revenue from within Japan. The AtCoder Grand Contest and, Thank you for your continued support of AtCoder., The AtCoder World Tour Finals is a budding event. Compared to TCO and GCJ, it has a shorter history, 、名実ともに世界一を決める2023年のオンサイトコンテストは、AtCoder World Tour Finalsだけとなってしまいました。, 今後ともAtCoderをよろしくお願いいたします。, 現在、AtCoder株式会社は、日本国内からしか売上がありません。AtCoder Grand ContestやWorld Tour Finalsは慈善事業となっており、赤字を垂れ流している状態です

Full text and comments »

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

17.
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...
AtCoder Grand Contest 073 Announcement, We will hold AtCoder Grand Contest 073. This contest counts for GP30 scores., [original post on AtCoder](https://atcoder.jp/posts/1564)

Full text and comments »

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

18.
By Zhtluo, history, 3 years ago, In English
The Reason You are Bad at Codeforces — You are Not Russian Enough If you are triggered by this clickbaity blog title, you are probably interested in improving your Codeforces skills. Now, I will share my point of view on the differences between Codeforces and ICPC contests, and how you can, in my humble opinion, maximize your Codeforces rating gain. I mostly consider that all conceivable competitive programming problems need three aspects of skill: 1. Observation &mdash; the ability to understand the problem and come up with non-trivial properties. 2. Technique &mdash; the ability to apply a well-known algorithm or data structure to the problem. 3. Implementation &mdash; the ability to code fast and debug fast. Collaterally, I refer to these three skills as Russian-ness, Chinese-ness and American-ness, respectively, for reasons you will soon see below. ## Observation (Russian-ness) Observation means that you stare at some problem for a sufficient amount of time and you are able to reduce it to some easier problem. One good proble...
-handedly the most popular problem style on Codeforces and AtCoder.

Full text and comments »

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

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

Full text and comments »

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

20.
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...
and make decisions with particular care. AtCoder also responds to appeals regarding mistaken bans, before AtCoder carried out the ban., comments suggesting that this may have been a mistaken ban by AtCoder. For that reason, we will make an, particular, I understand that there is some merit to the opinion that AtCoder should disclose the code, rumors about AtCoder from spreading, and to provide the necessary explanation regarding our ban, * Allow AtCoder to make past submissions visible again. * Explain why the submission to Problem F, AtCoder also responds to appeals regarding mistaken bans. In fact, there have been several cases

Full text and comments »

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

21.
By maroonrk, history, 2 years ago, In English
AtCoder World Tour Finals 2024 Announcement (with Unrated Mirror) We will hold AtCoder World Tour Finals 2024. List of Finalists: <table border="1"> <tr align="center"><td>AtCoder ID</td><td>Codeforces ID</td></tr> <tr align="center"><td>[zhoukangyang](https://atcoder.jp/users/zhoukangyang)</td><td>[user:zhoukangyang,2024-07-11]</td></tr> <tr align="center"><td>[Stonefeang](https://atcoder.jp/users/Stonefeang)</td><td>[user:Radewoosh,2024-07-11]</td></tr> <tr align="center"><td>[ecnerwala](https://atcoder.jp/users/ecnerwala)</td><td>[user:ecnerwala,2024-07-11]</td></tr> <tr align="center"><td>[tourist](https://atcoder.jp/users/tourist)</td><td>[user:tourist,2024-07-11]</td></tr> <tr align="center"><td>[heno239](https://atcoder.jp/users/heno239)</td><td>[user:heno239,2024-07-11]</td></tr> <tr align="center"><td>[ksun48](https://atcoder.jp/users/ksun48)</td><td>[user:ksun48,2024-07-11]</td></tr> <tr align="center"><td>[jiangly](https://atcoder.jp/users/jiangly)</td><td>[user:jiangly,2024-07-11]</td></tr> <tr align="center"><td>[apiad](http...
AtCoder World Tour Finals 2024 Announcement (with Unrated Mirror), AtCoder World Tour Finals 2024 is an international onsite contest. We have invited top-runners of, List of Finalists: AtCoder IDCodeforces ID, We will hold AtCoder World Tour Finals 2024.

Full text and comments »

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

22.
By maroonrk, history, 6 years ago, In English
About Rating Changes in AtCoder. TL;DR What if we introduce the followings: - You'll have a register-as-unrated button. You can switch rated and unrated only before opening a problem. - If you are registered as a rated participant, you'll get rated when you open a problem, even if you don't submit. Hello, community. Currently, your AtCoder rating changes only if you submit to the contest. This is also the case with Codeforces, so I think it's a standard. However, this scheme clearly has a flaw; you can leave the contest without submission to keep your rating. This implies you may get underrated because of those who didn't submit. You would say things like this can happen only if you are a newcomer, and the effect will be negligible in the long term. I generally agree with it, but sometimes even reds are affected by this issue. I know some people intentionally submit CE code to make them rated. At the same time, I know some people do the "Head to F" strategy or similar things and sometimes don't m...
About Rating Changes in AtCoder., . Currently, your AtCoder rating changes only if you submit to the contest. This is also the case with, Currently, your AtCoder rating changes only if you submit to the contest. This is also the case

Full text and comments »

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

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

Full text and comments »

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

24.
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...
AtCoder World Tour Finals 2022 Announcement (with Rated Mirrors), happen at the same time as the Finals (=13:00 in UTC+9), so they are much earlier than usualAtCoder, AtCoder World Tour Finals 2022 is an international onsite contest. We have invited top-runners of, List of Finalists: AtCoder IDCodeforces ID, We will hold AtCoder World Tour Finals 2022.

Full text and comments »

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

25.
By TLE, history, 4 years ago, In English
CPIdeas: use AI to generate competitive programming ideas Hello Codeforces! Being asked to propose competitive programming questions is pretty haunting. When you're out of fresh ideas, I used to do one of the two things. One, is to search in the old pile of problems, hoping to find some room of modifications and improvements. The second, is to come up with random words, like "chessboard inversion counting", and hopefully resemble interesting problems from them. This process is pretty boring, so I have been trying to use machine learning to generate ideas and even complete competitive programming problems. The result is *CPIdeas*! Check it out here: https://fjzzq2002.github.io/cpideas/. *How was it made?* I collected problems from AtCoder (ABC, ARC, AGC) and used these problems to fine-tune GPT-3, the OpenAI model. It's quite tricky to get things right though and it's still far from perfect. *How should I use it?* Look through these ideas. Scroll down. Be tolerant and creative. That's it. *How should I use these ideas?* For the ...
*How was it made?* I collected problems from AtCoder (ABC, ARC, AGC) and used these problems to

Full text and comments »

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

26.
By Nyaan, history, 4 months ago, In English
How I Spent Two Hours of My Free Time Today I am one of the part-time staff members at AtCoder responsible for investigating cheating involving AI. Let me explain what happened during my free time today. ## What I did in my free time today I was browsing Codeforces blogs, as I often do for fun. I found a post asking AtCoder to unban a certain user. The banned user was also in the comments, strongly insisting that they had not cheated. The comment section was full of people criticizing AtCoder. I immediately reviewed the case again. The user had been banned yesterday for cheating that took place three months earlier. After carefully rechecking the evidence, I also concluded that they had clearly used AI. (I will not explain the details because they relate to our methods for detecting AI use. The same applies to the cases below.) The post also named another person who was said to have been falsely banned. I did not feel like spending even more time on this, but I carefully reviewed that case as well. That user had blat...
**Please do not let cheaters convince you that AtCoder often bans innocent users by mistake.** Also, - If you believe AtCoder banned you by mistake and want the ban removed, the right thing to do is, Finally, I found a comment on an AtCoder-related blog saying, "AtCoder banned me. I didn't cheat, I am one of the part-time staff members at AtCoder responsible for investigating cheating involving, I found a post asking AtCoder to unban a certain user. The banned user was also in the comments, Next, I found another post in which someone claimed that AtCoder had banned them by mistake. I

Full text and comments »

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

27.
By maroonrk, 4 years ago, In English
Call for Tasks for AGC First of all, I have to say sorry for the vacancy of AGCs. I'm confident in the style of AtCoder problems, but I have to admit that I was too strict; when I found a problem that was interesting but had a tiny flaw, I didn't try to use it in AGCs. In fact, I received several messages that some ARC problems are good enough for AGCs. If people who are stronger than me say that, what is my severe threshold for? Therefore, I'll be looser in selecting problems. It isn't such a big change that ARC becomes AGC. However, with the new policy, I could have made a few more AGCs in the first half of this year. Now let's get down to the main subject: Call for Tasks. There were a few non-Japanese AGC writers, but the procedure of contest proposals was obscured. I want to make it public here. Please follow the following steps: - Come up with tasks for AGCs. It is desirable that you have ideas for a whole AGC set, but it's OK to have only hard problems. - DM me, and show me that you can po...
- I'll grant you access to the problem submission interface of AtCoder. Please submit tasks there!, I'm confident in the style of AtCoder problems, but I have to admit that I was too strict; when I

Full text and comments »

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

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

Full text and comments »

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

29.
By rng_58, history, 10 years ago, In English
New Programming Contest Website: AtCoder Hello! We made a new programming contest website called [AtCoder](http://new.atcoder.jp). I'm the admin of AtCoder. The first international contest called AtCoder Grand Contest 001 will be held on this Saturday [(Time)](http://www.timeanddate.com/worldclock/fixedtime.html?iso=20160716T2100&p1=248), and we are planning to hold a lot of contests regularly. This time the problems were written by [user:snuke,2016-07-13]. We invite you to participate in our contests! See [AtCoder's Website](http://new.atcoder.jp) for detailed information.
New Programming Contest Website: AtCoder, Hello! We made a new programming contest website called [AtCoder ](http://new.atcoder.jp). I'm, The first international contest called AtCoder Grand Contest 001 will be held on this Saturday, We made a new programming contest website called [AtCoder ](http://new.atcoder.jp). I'm the admin of

Full text and comments »

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

30.
By errorgorn, 2 years ago, In English
Solving Problems with Min Cut Max Flow Duality Thanks to [user:kingmessi,2024-12-19] for pointing out several typos in this blog. This blog is adapted from a previous blog I wrote in my [personal blog](https://errorgorn.github.io/2024/11/24/Flow-Matching.html). I thought it would be good to share the relevant parts here. If you want to read my personal blog, go ahead, but I will warn you that it is a shitpost blog. The problems discussed in this blog is: - [ARC085C](https://atcoder.jp/contests/arc085/tasks/arc085_c) - [ABC225G](https://atcoder.jp/contests/abc225/tasks/abc225_g) - [ABC259G](https://atcoder.jp/contests/abc259/tasks/abc259_g) - [ABC193F](https://atcoder.jp/contests/abc193/tasks/abc193_f) - [ARC142E](https://atcoder.jp/contests/arc142/tasks/arc142_e) You can attempt these problems to see if you can figure out how to wrangle them into min-cut formulation knowing that they are min-cut. I have been told by a lot of old people that in the heydays of Topcoder it was flow meta. Those old people will obviou...
flow](https://github.com/atcoder/ac-library/blob/master/atcoder/maxflow.hpp)

Full text and comments »

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

31.
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 ...
[AtCoder] Educational DP Contest, /contests/dp)** at AtCoder on Saturday. #### About the Contest This is an unofficial contest, We will hold **[Educational DP Contest](https://atcoder.jp/contests/dp)** at AtCoder on Saturday.

Full text and comments »

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

32.
By antontrygubO_o, 6 years ago, In English
AtCoder Grand Contest 052 Announcement I am glad to invite you to [AtCoder Grand Contest 052](https://atcoder.jp/contests/agc052). This contest counts for GP30 scores. <ul> <li> Contest URL: <a href="https://atcoder.jp/contests/agc052">https://atcoder.jp/contests/agc052</a> </li> <li> Start time: <a href="https://www.timeanddate.com/worldclock/fixedtime.html?iso=20210307T2100&p1=248">Sunday, March 7, 12:00 UTC</a> </li> <li> Duration: 160 minutes </li> <li> Number of Tasks: 6 </li> <li> Writer: [user:antontrygubO_o,2021-03-03] </li> <li> Rated range: 1200+ </li> </ul> I would like to thank: <ul> <li> [user:maroonrk,2021-03-03] for allowing me to host a contest on AtCoder and for the great coordination of this round </li> <li> [user:kefaa2,2021-03-03], [user:gamegame,2021-03-03], [user:TheOneYouWant,2021-03-03], [user:hugopm,2021-03-03], [user:HIR180,2021-03-03] for testing this round </li> <li> [user:MikeMirzayanov,2021-03-03] for the great Polygon platform (only Polygon this time) </li> </ul...
AtCoder Grand Contest 052 Announcement, * [user:maroonrk,2021-03-03] for allowing me to host a contest on AtCoder and for the great, I am glad to invite you to [AtCoder Grand Contest 052](https://atcoder.jp/contests/agc052). This

Full text and comments »

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

33.
By rng_58, history, 9 years ago, In English
AtCoder World Tour Finals 2018: A new onsite contest with free flights/hotels, no age limit! AtCoder will hold a new onsite contest called AtCoder World Tour Finals 2018. If you get the top 30 places in AGCs (and maybe some other types of contests), you will get GP30 scores. Eight people with the highest total GP30 scores in 2018 (except for people under 18) will be invited to Japan, probably in February 2019. We will cover flights and hotels. There's no upper bound for the age. You can participate in the finals even if you are employed. Please check the details [here](https://atcoder.jp/post/171). Here's the total GP30 scores in 2017: <table border="1" width="400" cellspacing="0" cellpadding="5" bordercolor="#333333"> <tr> <th bgcolor="#EE0000"><font color="#FFFFFF">Rank</font></th> <th bgcolor="#EE0000"><font color="#FFFFFF">Handle</font></th> <th bgcolor="#EE0000"><font color="#FFFFFF">Score</font></th> </tr> <tr><td>1</td><td>[user:tourist,2017-12-26]</td><td>870</td></tr> <tr><td>2</td><td>[user:Um_nik,2017-12-26]</td><td>519</td></tr> <tr><t...
AtCoder World Tour Finals 2018: A new onsite contest with free flights/hotels, no age limit!, AtCoder will hold a new onsite contest called AtCoder World Tour Finals 2018.

Full text and comments »

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

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

Full text and comments »

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

35.
By errorgorn, 4 years ago, In English
[Tutorial] Theoretically Faster HLD and Centroid Decomposition This blog was going to be translation of $[1]$ (which is in Chinese) but I think I ended up deviating too much from the source material that it would not be appropriate to call this a translation. Anyways, I am honestly amazed by how ahead of its time this paper is. In its abstract, it starts by saying that the state of art for tree path queries is $O(n \log n + q \sqrt n \log n)$, which I honestly can't fathom how one would arrive, then proceeds to claim that it has found an $O((n+q) \log n)$ algorithm. All the more, in 2007. While I was in the process of writing this blog, [user:smax,2022-07-18] sniped me and posted $[9]$. However, we will focus on static trees **only**. Thanks to [user:oolimry,2022-07-18], [user:everule,2022-07-18] and [user:timreizin,2022-07-18] for proofreading. Note to reader: I am expecting the reader to be familiar with what a splay tree and HLD is. You do not really need to know why splay trees are $O(\log n)$ amortised but you should know what the z...
```c++ #include #include <atcoder

Full text and comments »

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

36.
By E869120, 8 years ago, In English
[Tutorial] A way to Practice Competitive Programming : From Rating 1000 to 2400+ Dear Codeforces community.<br /> Finally red :)<br /> <br /> Today, I want to share about some ways to practice competitive and gain your rating. I hope that this is helpful for those who is practicing competitive programming harder but rating is sluggish. There are 54,000+ people who participated in Codeforces contests actively, but sadly only a few people reach a red-ranked coders. For people who can't reach red, I will introduce my way to gain rating in some steps.<br /> <br /> This blog is an extended and more detailed version of [my previous tutorial blog](http://codeforces.me/blog/entry/53341), but 2 years and now are different. So there are many points that are different from blog which has written 2 years ago. Note: Some people who already read my previous tutorial blog may doubt, but do not doubt &mdash; I should say that the "from rating 1000 to 2000" part of this blog is not the copy of my previous blog and it's very different.<br /> <br /> Since the size is very big...
introduction, knowledge of some contests systems (AtCoder, TopCoder) and some convenient websites, some

Full text and comments »

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

37.
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...
change for AtCoder Grand Contests (AGCs). These changes apply only to AGCs., held extensive discussions among the people involved with AtCoder. In the end, I established these

Full text and comments »

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

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

Full text and comments »

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

39.
By rng_58, history, 6 years ago, In English
AtCoder Grand Contest 050/051 (Good Bye rng_58 Day 1 / Day 2) Announcement This weekend, we will hold two AGC contests: AtCoder Grand Contest 050 (Good Bye rng_58 Day 1) and AtCoder Grand Contest 051 (Good Bye rng_58 Day 2). Both contests count for GP30 scores. For these contests, we use problems that were originally prepared for the postponed World Tour Finals, plus some new problems, divided into two sets. Since we change the admin from next year, these contests will be [user:rng_58,2020-12-25]'s last contests as an author. - Contest URL: https://atcoder.jp/contests/agc050 and https://atcoder.jp/contests/agc051 - Start Time: http://www.timeanddate.com/worldclock/fixedtime.html?iso=20201226T2100&p1=248 and http://www.timeanddate.com/worldclock/fixedtime.html?iso=20201227T2100&p1=248 - Duration: 210 minutes (Day 1), 270 minutes (Day 2) - Number of Tasks: 6 each - Writer: [user:rng_58,2020-12-25] - Rated range: 2000 ~ The point values will be: - Day 1: 500 &mdash; 800 &mdash; 1000 &mdash; 1300 &mdash; 1800 &mdash; 2000 - Day 2: 500 &mdash; 80...
AtCoder Grand Contest 050/051 (Good Bye rng_58 Day 1 / Day 2) Announcement, 2000 in AtCoder. We are looking forward to your participation!, This weekend, we will hold two AGC contests: AtCoder Grand Contest 050 (Good Bye rng_58 Day 1) and

Full text and comments »

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

40.
By Errichto, 6 years ago, In English
AtCoder Grand Contest 047 Hi. I invite you to AtCoder Grand Contest 047. - Contest URL: https://atcoder.jp/contests/agc047 - Start time: [Sunday, August 9, 12:00 UTC](https://www.timeanddate.com/worldclock/fixedtime.html?msg=AtCoder%20Grand%20Contest%20047&iso=20200809T1200&ah=1&am=50) - Duration: 140 minutes - 6 Problems, 300-700-800-1000-(800+1000)-2200 - Writer: [user:Errichto,2020-08-07] - Rated range: 1200+ Statements are very short and I think that problems are interesting. Big thanks to [user:rng_58,2020-08-07] for discussing problems with me. I will likely make a short live stream just after the contest ends. (update: watch the recording [here]( https://www.youtube.com/watch?v=SN0dyP2kJgo)) UPD, congrats to [user:tourist,2020-08-09] for winning and [user:Benq,2020-08-09] for the second full score.
AtCoder Grand Contest 047, ](https://www.timeanddate.com/worldclock/fixedtime.html?msg=AtCoder %20Grand%20Contest%20047&iso

Full text and comments »

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

41.
By dario2994, history, 7 years ago, In English
AtCoder Grand Contest 044 Announcement We will hold <a href="https://atcoder.jp/contests/agc044">AtCoder Grand Contest 044</a>. This contest counts for GP30 scores. - Contest URL: https://atcoder.jp/contests/agc044 - Start Time: http://www.timeanddate.com/worldclock/fixedtime.html?iso=20200523T2100&p1=248 - Duration: 150 minutes - Number of Tasks: 6 - Writer: [user:dario2994,2020-05-22] - Rated range: All The point values will be 400-700-1000-1100-1300-2400. We are looking forward to your participation! Edit: Thank you very much for your participation, I hope that you liked the problems! First of all, congratulations to the winners: 1. [user:tourist,2020-05-23] 2. [user:MiFaFaOvO,2020-05-23] 3. [user:mnbvmar,2020-05-23] 4. [user:fizzydavid,2020-05-23] 5. [user:taeyeon_ss,2020-05-23] Then, I want to say thank you to the testers [user:dacin21,2020-05-23], [user:rafbill,2020-05-23], [user:reew2n,2020-05-23], [user:tempura0224,2020-05-23] and obviously to the coordinator [user:rng_58,2020-05-23]...
AtCoder Grand Contest 044 Announcement, We will hold AtCoder Grand Contest 044 <https://atcoder.jp/contests/agc044>. This

Full text and comments »

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

42.
By maroonrk, history, 20 months ago, In English
What to be careful about when submitting your problems to other contests This is a story about my recent contest participation. Let's call the contest X. X was an international contest with online qualification rounds and the onsite Finals, with trip and hotel expenses covered by the organizer. In other words, X was a very important contest for me. Hoping to go to the Finals, I participated in the qualification round. However, when I opened the last problem, I immediately remembered that the exact same problem had previously been submitted to AtCoder. I also knew that the submitter of that problem was among the organizers of X. Let's call the author of that problem Y. I immediately messaged Y about this issue. At first, I thought that Y had simply forgotten that he had submitted the problem to me, but the situation was a bit more complicated. Y _did_ remember he had submitted the problem to me but still used it in another contest. Why? Because I had given him permission! To make things clear, let me show you the relevant chat log betw...
AtCoder. I also knew that the submitter of that problem was among the organizers of X.

Full text and comments »

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

43.
By antontrygubO_o, 4 years ago, In English
AtCoder Grand Contest 059 Announcement I am glad to invite you to [AtCoder Grand Contest 059](https://atcoder.jp/contests/agc059). This contest counts for GP30 scores. <ul> <li> Contest URL: <a href="https://atcoder.jp/contests/agc059">https://atcoder.jp/contests/agc059</a> </li> <li> Start time: <a href="https://www.timeanddate.com/worldclock/fixedtime.html?iso=20221204T1200&ah=3&am=0&msg=AtCoder%20Grand%20Contest%20059">Sunday, December 4, 12:00 UTC</a> </li> <li> Duration: 180 minutes </li> <li> Number of Tasks: 6 </li> <li> Writer: [user:antontrygubO_o,2022-12-01] </li> <li> Rated range: 1200+ </li> </ul> The point values will be added soon. I would like to thank: <ul> <li> [user:maroonrk,2022-12-01] for the amazing coordination of this round, for improving one problem, and for allowing me to host my third AGC (and third AGC in 2022). I also want to congratulate him on winning gold in ICPC 2021! </li> <li> [user:maspy,2022-12-01], [user:dario2994,2022-12-01], [user:errorgorn,2022-12-01], [u...
AtCoder Grand Contest 059 Announcement, =20221204T1200&ah=3&am=0&msg=AtCoder%20Grand%20Contest%20059">Sunday, December 4, 12:00 UTC , I am glad to invite you to [AtCoder Grand Contest 059](https://atcoder.jp/contests/agc059). This

Full text and comments »

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

44.
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 ...
[Original Post on AtCoder](https://atcoder.jp/posts/agc_proctoring_en)

Full text and comments »

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

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

Full text and comments »

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

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

Full text and comments »

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

47.
By tourist, history, 9 years ago, In English
AtCoder Grand Contest 019 [AtCoder Grand Contest 019](http://atcoder.jp/) will be held on Saturday [(time)](https://www.timeanddate.com/worldclock/fixedtime.html?iso=20170826T2100&p1=248). The writer is [user:tourist,2017-08-24]. [Contest Link](https://agc019.contest.atcoder.jp/) [Contest Announcement](http://atcoder.jp/post/141) The point values will be 300 &mdash; 500 &mdash; 900 &mdash; 1000 &mdash; 1700 (1200) &mdash; 2000 (1500). Note that the contest duration is unusual (150 minutes). Let's discuss problems after the contest.
AtCoder Grand Contest 019

Full text and comments »

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

48.
By aryanc403, 5 months ago, In English
Notice Regarding the Sale of AtCoder User Submissions to AI Companies Notice Regarding the Sale of AtCoder User Submissions to AI Companies and Updates to the Terms of Service and Privacy Policy &mdash; [Official blog here](https://atcoder.jp/posts/opt-out-notify-en) <spoiler summary="Posting it verbatim below"> ~~~~~ Starting in August 2026, AtCoder will begin licensing user-submitted source code to AI companies for use as AI training data. The licensed data will include not only submissions made after the start of the program, but also source code that has already been submitted in the past. However, any submission for which AI training has been explicitly opted out will not be included. In connection with this change, we have updated our Terms of Service and Privacy Policy. We believe this data licensing program is necessary to ensure that AtCoder can continue providing programming contests free of charge in the future. At the same time, we do not believe that users should be required to allow their submissions to be used for AI training si...
Notice Regarding the Sale of AtCoder User Submissions to AI Companies, this data licensing program is necessary to ensure that AtCoder can continue providing programming, ~~~~~ Starting in August 2026, AtCoder will begin, AtCoder will continue pursuing new initiatives to ensure that our programming contests remain free, Thank you, as always, for your continued support of AtCoder. ~~~~~

Full text and comments »

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

49.
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, ...
the Atcoder problem mentioned at the very beginning of this article! Define $E(x) = \displaystyle

Full text and comments »

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

50.
By gojira, 5 years ago, In English
A look at Competitive Programming post-hibernation Hello friends! As I've recollected in a previous [post](https://codeforces.me/blog/entry/97566), I am an old competitor who hadn't really participated since ~2014, and recently got a bout of nostalgia to return to Competitive Programming. So, I did a couple Topcoder SRMs, suffered through some SNWS rounds, participated in [three regional 5hr competitions](https://contest.yandex.ru/3QF2021) on three consecutive days, and dozed off at every Codeforces contest I tried to wake up for. A lot of things are still the same as 8 years ago: [user:tourist,2022-01-26] is still at the top, grey coders still ask for how many minutes to solve a problem before reading the editorial, Russian university teams [continue winning](https://icpc.global/worldfinals/results) ACM ICPC, and Snarknews never gives up on his alternate competition formats. But in this post, I want to focus on the new patterns that emerged since my last time around. #### #1: Codeforces rounds timing Did you know that t...
#### #3: The AtCoder library and the Codeforces Catalog, There is another curious pattern in the submissions of some top contestants: `namespaceatcoder

Full text and comments »

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

51.
By rng_58, history, 9 years ago, In English
AtCoder Grand Contest 016 [AtCoder Grand Contest 016](http://atcoder.jp/) will be held on Sunday [(time)](http://www.timeanddate.com/worldclock/fixedtime.html?iso=20170618T2100&p1=248). The writer is [user:sugim48,2017-06-17]. [Contest Link](https://agc016.contest.atcoder.jp/) [Contest Announcement](https://atcoder.jp/post/117) The point values will be 300 &mdash; 700 &mdash; 700 &mdash; 1000 &mdash; 1400 &mdash; 1600. Let's discuss problems after the contest. **UPD**: Now the [editorial](https://atcoder.jp/img/agc016/editorial.pdf) (check page 5) is ready. I'll add some quick comments here. A. <spoiler summary="Spoiler"> Try all characters from 'a' to 'z', and assume that we want to get a string that consists only of this character. What greedy strategy should we follow? </spoiler> B. <spoiler summary="Spoiler"> Suppose that there are $C$ colors in total. Then, each $a_i$ must be either $C$ or $C-1$, and it means that the difference between the maximum and the minimum is ...
AtCoder Grand Contest 016

Full text and comments »

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

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

Full text and comments »

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

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

Full text and comments »

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

54.
By Geothermal, history, 7 years ago, In English
AtCoder Beginner Contest 151 English Solutions #A &mdash; Next Alphabet The easiest way to deal with this problem is probably to convert the given character to an integer, add one, and convert it back. If you absolutely can't do that, a somewhat more annoying implementation would involve iterating through the alphabet, waiting until you find the given letter, using a boolean variable to store that the letter has been found, and printing the letter on the next iteration of the loop. (However, iterating over the alphabet is itself nasty unless you have conversion from letters to integers, so this approach is rather pointless unless your language just doesn't support the first method, though in that case you should probably switch languages anyway.) Runtime: $O(1)$. [Click here for my submission.](https://atcoder.jp/contests/abc151/submissions/9440245) --- #B &mdash; Achieve the Goal In total, we need to earn $NM$ points. We subtract the points earned so far and determine whether this is a valid score for the final ...
AtCoder Beginner Contest 151 English Solutions, #C — Welcome to AtCoder

Full text and comments »

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

55.
By rng_58, history, 8 years ago, In English
AtCoder World Tour Finals 2018 Finalists <font color="red">UPD: The contest is tomorrow, from 11:00 JST (4 hours). You can watch the standings from [here](https://atcoder.jp/contests/wtf19). The problems will be published later (not during the contest, because finalists have the internet access).</font> Congratulations to finalists! The date of the event is February 21st. [Full table of GP30 scores](https://docs.google.com/spreadsheets/d/1T-hKu_vIh8l4EiW6XTWOvP0evzsWj0f45JNNgou21Cc/edit#gid=695896678) <table border="1" width="500" cellspacing="0" cellpadding="5" bordercolor="#333333"> <tr> <th bgcolor="#EE0000"><font color="#FFFFFF">AtCoder Profile</font></th> <th bgcolor="#EE0000"><font color="#FFFFFF">CF Handle</font></th> <th bgcolor="#EE0000"><font color="#FFFFFF">Country</font></th> </tr> <tr><td><img src="https://atcoder.jp/public/img/icon/crown4000.gif"></img><a href="https://atcoder.jp/users/tourist"><font color="red"><b>tourist</b></font></a></td><td>[user:tourist,2018-12-29]</td><td>Belarus</td></tr>...
AtCoder World Tour Finals 2018 Finalists, By the way, now you can set your picture and CF/TC handles in your AtCoder profile page from https

Full text and comments »

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

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

Full text and comments »

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

57.
By maroonrk, history, 5 years ago, In English
AtCoder Grand Contest 057 Announcement We will hold AtCoder Grand Contest 057. This contest counts for GP30 scores. - Contest URL: [https://atcoder.jp/contests/agc057](https://atcoder.jp/contests/agc057) - Start Time: [http://www.timeanddate.com/worldclock/fixedtime.html?iso=20220507T2100&p1=248](http://www.timeanddate.com/worldclock/fixedtime.html?iso=20220507T2100&p1=248) - Duration: 180 minutes - Number of Tasks: 6 - Writer: [user:maspy,2022-05-06] - Tester: [user:HIR180,2022-05-06], [user:tatyam,2022-05-06] - Rated range: 1200 - The point values will be 400-700-1100-1100-1400-1800. We are looking forward to your participation! This is the first contest in the 2022 season that counts for the GP30 race. We are planning to invite top runners of the race to WTF 2023, but we still haven't decided on the details of the Finals. We will closely watch the domestic and international situations and consider when and how to hold the Finals. We are also trying to find a way to hold unfinished WTF 2020, 2021...
AtCoder Grand Contest 057 Announcement, We will hold AtCoder Grand Contest 057. This contest counts for GP30 scores.

Full text and comments »

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

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

Full text and comments »

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

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

Full text and comments »

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

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

Full text and comments »

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

61.
By pajenegod, 3 years ago, In English
Shallowest Decomposition Tree Hi Codeforces! Today I want to tell you about a really cool and relatively unknown technique that is reminiscent of Centroid decomposition, but at the same time is also completely different. The most common and well known decomposition tree algorithm out there is the centroid decomposition algorithm (running in $O(n \log n)$). It is a standard algorithm that is commonly used to solve tons of different kind of divide and conquer problems on trees. However, it turns out that there exists another closely related decomposition tree algorithm, that is in a sense optimal, and can be implemented to run in $O(n)$ time in around $30$ lines of code. I have chosen to call it the _Shallowest Decomposition Tree_. This blog will be all about the shallowest decomposition tree. Something I want to remark on before we start is that I did not invent this. However, very few people know about it. So I decided to make this blog in order to teach people about this super cool and relatively unknown tec...
. Many years later, atcoder independently came up with [Uninity](https://atcoder.jp/contests/agc009

Full text and comments »

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

62.
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...
About the idea. First of all, I don't think div2A should be like Atcoder ABC A, because inAtcoder

Full text and comments »

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

63.
By YocyCraft, history, 4 years ago, In English
First time becoming red In yesterday's contest [contest:1815] I've got the achievement which I could not imagine just half a year ago &mdash; reach 2400 rating and become GM. The first time I learned about CF was on 2022.2, that time I registered this account and took my first contest. But my first submission [submission:146390589] on contest got TLE, and I solved 0 problem in this contest. (At that time I didn't know that's because the efficiency of `java.util.Scanner` is extremely low) And because I needed to deal with graduation thesis, I didn't use CF until the end of last year, when I restarted CF contest. At 4th and 5th contests I solved div2D problems to reach blue. In my 9th contest, I first time solved div2E problem in contest, and I became purple in my 12th contest. In my 14th and 15th contest, I solved div2E problems twice and became orange. In the next weeks, I started to hit the upper limit of my skill, and dropped from orange twice. In order to improve my skill of competive programming...
used other CP platfroms like atcoder, where I've reached rating 2233.

Full text and comments »

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

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

Full text and comments »

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

65.
By Everule, history, 4 years ago, In English
How to prove your solutions in Competitive Programming It seems many people struggle to understand what a proof even looks like, for greedy problems. The issue is the polarized forms of proof in CP and academic math, which may seem to be overly rigorous and difficult to during contest. However there is spectrum of what a proof even is. It is important to understand, that you cannot truly write and verify a proof within yourself, or within an entity (the entirety of codeforces for example). It is necessary to have judgement on what level of rigor is sufficient. If you want to tell yourself that you just don't have math background and therefore can't prove and will perpetually use it as excuse this blog is not for you. Academic proofs usually tend to be as rigorous as possible, and are carefully verified by other experts in the field, to be objectively certain of its correctness. Clearly that is not a level of rigor you need while solving a codeforces problem. You only need to prove it _to yourself._ For this, there are certain heu...
Let's try [this](https://atcoder.jp/contests/arc145/tasks/arc145_a) atcoder problem. You've binary

Full text and comments »

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

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

Full text and comments »

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

67.
By Geothermal, history, 7 years ago, In English
AtCoder Beginner Contest 137 English Solutions Although AtCoder seems to be getting back to posting English editorials, I'm continuing to release some myself in case having the extra explanations helps some people. (Sidenote: Some of the provided submissions come from after the contest itself, because I had to leave midway through, before I got the chance to debug my E or write my F.) --- #A &mdash; +-X Just use your language's max function. As $A$ and $B$ are small, we don't need to worry about integer overflow. Runtime: $O(1).$ [Click here for my submission.](https://atcoder.jp/contests/abc137/submissions/6802607) --- #B &mdash; One Clue Let's try to find the minimum and maximum values in the answer. It's fairly easy to see that all integers between them will also be in the set. To find the minimum possible position of a black stone, we place $K$ black stones such that $X$ is at the maximum position. Then, the minimum position will thus be $X-K+1$, as we have $K-1$ black stones to the left of $X$....
AtCoder Beginner Contest 137 English Solutions, Although AtCoder seems to be getting back to posting English editorials, I'm continuing to release

Full text and comments »

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

68.
By wuhudsm, 3 years ago, In English
Codeforces Round 930 (Div. 1, Div. 2) Editorial Thank you for participation and we hope you enjoy this round :) #### [D2A &mdash; Shuffle Party](https://codeforces.me/contest/1937/problem/A) Idea : [user:chromate00,2023-08-27] <spoiler summary="Hint (for thinkers)"> If you think in terms of $k$, it might be hard to find the solution. Maybe it will be helpful if you fix $d$ and find the $k$ which will be swapped with $d$. </spoiler> <spoiler summary="Hint (for observers)"> Try bruteforcing for, say, $n \le 20$. Do you see a pattern? </spoiler> <spoiler summary="Tutorial"> On $n=1$, the answer is trivially $1$. On $n=2$, index $1$ and $2$ are swapped. The answer is therefore $2$. For $n>2$, let us assume the element $1$ is on index $a$ and it will be swapped with index $k$. Then, $a$ must be $k/2$. We will prove this by contradiction. Let us assume that there is no divisor greater than $a$, and $a$ is lesser than $k/2$. But then, as $a$ is a multiple of $2$ in the base condition, $k$ must be a multiple of $2...
namespace atcoder {, using namespace atcoder;, } // namespace atcoder

Full text and comments »

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

69.
By tourist, history, 9 years ago, In English
AtCoder Grand Contest 020 _What is better than setting one AtCoder Grand Contest? Setting two AtCoder Grand Contests, of course!_ [AtCoder Grand Contest 020](http://atcoder.jp/) will be held on Sunday [(time)](https://www.timeanddate.com/worldclock/fixedtime.html?msg=AtCoder+Grand+Contest+020&iso=20180114T21&p1=248). The writer is [user:tourist,2018-01-12]. [Contest Link](https://agc020.contest.atcoder.jp/) [Contest Announcement](http://atcoder.jp/post/186) This is the first contest of 2018 counted towards AtCoder Race Ranking. If you get into top 30 in this contest, you will get [GP30 scores](https://atcoder.jp/post/171). The point values will be 300 &mdash; 500 &mdash; 700 &mdash; 1100 (500) &mdash; 1400 &mdash; 2100. Note that the contest duration is unusual (130 minutes). Let's discuss problems after the contest.
AtCoder Grand Contest 020, This is the first contest of 2018 counted towards AtCoder Race Ranking. If you get into top 30 in, _What is better than setting one AtCoder Grand Contest? Setting two AtCoder Grand Contests, of

Full text and comments »

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

70.
By wuhudsm, history, 16 months ago, In English
Codeforces Round 1040 (Div. 1, Div. 2) Editorial Thank you for participation and we hope you enjoy this round :) <spoiler summary="How did you find the contest?"> - Great: - Good: - Average: - Bad: - Trash: </spoiler> <spoiler summary="Which problem is your most favourite?"> - D2A: - D2B: - D1A: - D1B: - D1C1: - D1C2: - D1C3: - D1D: - D1E: - D1F1: - D1F2: </spoiler> <spoiler summary="Which problem you hate the most?"> - D2A: - D2B: - D1A: - D1B: - D1C1: - D1C2: - D1C3: [likes:favorite,2039E3_...
//#include<atcoder/all> //using namespace atcoder;

Full text and comments »

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

71.
By bicsi, history, 6 years ago, In English
Personalized competitive programming ladders Hello Codeforces! For the past couple of years I have been developing a competitive programming platform that would aggregate solutions from different OJs. It was initially written for assigning tasks for my preparations (and some professors used it in our university for grading students in algorithmic courses). Recently I have been developing a "ladders" feature, because I wanted to train and realized that this would be the best way to do it. Now, I am excited to say that I have decided to "go public" with this feature and invite you to try it out. ### How it works Do the steps below: - Create an account at https://competitive.herokuapp.com - Add your handles to your profile (Codeforces/Atcoder/etc.) - Go to ladders and start solving problems - When you start a task, a 2-hour timer starts; you have to solve the task in this time limit - Tasks that are solved successfully are marked green, tasks that were unsolved are marked red - You can also see a leaderboard with...
(Codeforces/Atcoder/etc.) - Go to ladders and start solving problems - When you start a task, a 2-hour, - Add a Codeforces/Atcoder/etc. account that **is not yours** - Try to mess with the website in

Full text and comments »

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

72.
By Geothermal, history, 4 years ago, In English
Returning to In-Person GCJ/Hacker Cup Finals In the past, most elite programming competitions (e.g. IOI, ICPC, TopCoder Open, AtCoder World Tour, GCJ, Hacker Cup) have held their final stages in person. In 2020 and 2021, however, most of these contests were moved online. This was unfortunate, but understandable given the circumstances: in 2020, the state of the pandemic clearly did not allow for extensive travel, and while the dangers decreased by late 2021 as a result of rising vaccination rates around the world, there was still sufficient uncertainty to justify holding events online in 2021. This year, however, both Google Code Jam and Meta Hacker Cup have committed to hosting online finals. [**UPD:** Meta has retracted its commitment to a virtual finals, so it seems that the plans for MHC are still up in the air.] I believe that this is a highly unnecessary precaution--there is plenty of evidence showing that it is possible to successfully run an in-person event in 2022. Notably, TopCoder has committed to hosting the...
In the past, most elite programming competitions (e.g. IOI, ICPC, TopCoder Open, AtCoder World Tour

Full text and comments »

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

73.
By arujbansal, 5 years ago, In English
[Tutorial] 2-SAT Introduction ================== In computer science, 2-satisfiability, 2-SAT or just 2SAT is a computational problem of assigning values to variables, each of which has two possible values, in order to satisfy a system of constraints on pairs of variables. It is a special case of the general Boolean satisfiability problem, which can involve constraints on more than two variables, and of constraint satisfaction problems, which can allow more than two choices for the value of each variable. But in contrast to those more general problems, which are NP-complete, 2-satisfiability can be solved in polynomial time. -[Wikipedia](https://en.wikipedia.org/wiki/2-satisfiability) If you have not heard of propositional logic before, plead read about it [here](https://brilliant.org/wiki/propositional-logic/). Wikipedia links have been provided wherever a term has been used for the first time in this tutorial. The whole algorithm is based on graph theory so it will help to be familiar with direc...
] - [CodeChef Hackerman](https://www.codechef.com/LTIME95A/problems/HKRMAN) - [ AtCoder Coprime

Full text and comments »

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

74.
By maroonrk, history, 5 months ago, In English
AtCoder World Tour Finals 2026 Algorithm Announcement (with Unrated Mirror) We will hold AtCoder World Tour Finals 2026 Algorithm. - Contest URL: https://atcoder.jp/contests/awtf2026algo - Mirror Contest URL: https://atcoder.jp/contests/awtf2026algo-open - Start Time: https://www.timeanddate.com/worldclock/fixedtime.html?iso=20260709T1100&p1=248 - Duration: 420 minutes - Number of Tasks: 5 - Writer: [user:maroonrk,2026-07-07] - Tester: [user:hos.lyric,2026-07-07], [user:tatyam,2026-07-07], [user:maspy,2026-07-07], [user:yosupo,2026-07-07], [user:sigma425,2026-07-07] - Rated range: Unrated The point values will be 900-900-1500-2500-2500. We don't freeze the standings in the contest. AtCoder World Tour Finals 2026 is an international onsite contest. We have invited top-runners of AtCoder Race Ranking 2025 to Tokyo. This year, as an exhibition match, an AI agent from OpenAI will also participate in the contest. On the contest day, we will stream the contest on our YouTube channel with [user:Petr,2026-07-07]. For more details, please visit thi...
AtCoder World Tour Finals 2026 Algorithm Announcement (with Unrated Mirror), AtCoder World Tour Finals 2026 is an international onsite contest. We have invited top-runners of, We will hold AtCoder World Tour Finals 2026 Algorithm.

Full text and comments »

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

75.
By maroonrk, history, 17 months ago, In English
AtCoder World Tour Finals 2025 Algorithm Announcement (with Unrated Mirror) We will hold AtCoder World Tour Finals 2025 Algorithm. - Contest URL: https://atcoder.jp/contests/awtf2025algo - Mirror Contest URL: https://atcoder.jp/contests/awtf2025algo-open - Start Time: http://www.timeanddate.com/worldclock/fixedtime.html?iso=20250717T1200&p1=248 - Duration: 300 minutes - Number of Tasks: 5 - Writer: [user:maroonrk,2025-07-16] - Tester: [user:maspy,2025-07-16], [user:HIR180,2025-07-16], [user:hirayuu_CF,2025-07-16] - Rated range: Unrated The point values will be 800-1000-1400-1400-2000. We don't freeze the standings in the contest. AtCoder World Tour Finals 2025 is an international onsite contest. We have invited top-runners of AtCoder Race Ranking 2024 to Tokyo. On the contest day, we will stream the contest on our YouTube channel. For more details, please visit [this page](https://info.atcoder.jp/more/contents/awtf/2025). The mirror contest is Unrated and the standings is hidden. Other rules are the same as AGC. Specifically, there are n...
AtCoder World Tour Finals 2025 Algorithm Announcement (with Unrated Mirror), AtCoder World Tour Finals 2025 is an international onsite contest. We have invited top-runners of, We will hold AtCoder World Tour Finals 2025 Algorithm.

Full text and comments »

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

76.
By tourist, history, 7 years ago, In English
AtCoder Grand Contest 041 We will hold AtCoder Grand Contest 041. This is the last contest of 2019 that counts for AtCoder Race Ranking. - Contest URL: https://atcoder.jp/contests/agc041 - Start Time: http://www.timeanddate.com/worldclock/fixedtime.html?iso=20191228T2100&p1=248 - Duration: 150 minutes - Number of Tasks: 6 - Writer: [user:tourist,2019-12-27] - Rated range: All The point values will be 300 &mdash; 700 &mdash; 900 &mdash; 1200 &mdash; 1600 (800 + 800) &mdash; 2000. We are looking forward to your participation!
AtCoder Grand Contest 041

Full text and comments »

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

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

Full text and comments »

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

78.
By purplesyringa, history, 5 years ago, In Russian
Платформы по программированию в анекдотах ## AtCoder ### Условие Даны числа A и B. Выведите A + B. ### Разбор В задаче требуется вывести сумму двух чисел. Обратите внимание: в языках C и C++ необходимо использовать достаточно большие типы данных. Решение: ```python print(int(input()) + int(input())) ``` <!-- x --> [cut] <!-- x --> --- ## Algocode ### Условие Яна стоит на числовой прямой в координате 0. Так как у Яны день рождения, ей дарят яблоки мальчики Петя и Вася. Яна любит только зеленые яблоки, но не любит красные. У Пети есть N зеленых яблок, а у Васи M красных. Одно красное яблоко сдвигает ее из координаты i в координату i-1, одно зеленое яблоко сдвигает ее из координаты i в координату i+1. Напишите, при каких N и M координата на числовой прямой будет положительной; отрицательной; равна нулю. **Все утверждения строго доказывать!** ### Разбор --- ## Codeforces ### Условие Петя и Вася решили подарить Кате на день рождения яблоки, Петя подарил N яблок, а Вася &mdash; M. ...
## AtCoder

Full text and comments »

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

79.
By Um_nik, history, 4 years ago, In English
An unexpected D&C with FFT I came up with this idea when solving [an AtCoder problem](https://atcoder.jp/contests/arc140/tasks/arc140_f), but the editorial had a simpler solution. I liked the idea, so I decided to set [a CodeChef problem](https://www.codechef.com/COOK142A/problems/BOXES) using this idea. Since most of you guys don't participate in CodeChef contests, which is a big mistake, I'll write a short blog explaining the idea. Consider this a spoiler warning for these two problems and a CodeChef promotion. ### Combinatorial problem For given $a$ and $n \le 10^5$ calculate $A_k = \sum_{i=0}^{k} \binom{k}{i} \binom{n-k}{k-i} a^{i}$ for each $k$ from $0$ to $n$. (Use the two links above to see why anybody would like to do that) ### Reformulation with polynomials It is easy to see that $A_k$ is $((1+ax)^{k}(1+x)^{n-k})[x^k]$ (coefficient of $x^k$ in polynomial $(1+ax)^{k}(1+x)^{n-k}$). But since the polynomials are different for different $k$ this doesn't seem very helpful... ### Solution ...
I came up with this idea when solving [an AtCoder problem](https://atcoder.jp/contests/arc140/tasks

Full text and comments »

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

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

Full text and comments »

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

81.
By Errichto, 17 months ago, In English
DP Group Class in August 2025 _The blog publish date is incorrect, should be around 12.07.2025. CF saved the draft date._ Hi, I'm organizing paid group classes on Dynamic Programming in August. Last year, I did something similar with general problem-solving ([link](https://codeforces.me/blog/entry/129878)). There will be two groups of different style and difficulty. Each group gets 8 lessons of 1h30m each, from 28.07.2025 to 24-31.08.2025. Group size up to 12 people. You get access to recordings and problems from both groups, but you should actively attend only one. There's a lot of homework, some to be discussed next lesson. I will create new original CF/Polygon problems, especially for the easy group. These problems will eventually be published for everybody! **Price**: 250 EUR with a small country-based discount. **Registration**: You should pay via [link (Stripe)](https://buy.stripe.com/7sY3cx2nD5Oh8CQ7w96wE03) and choose the group there. I will send you the Discord invite link via e-mail. Co...
problem. Being able to solve at least half of the problems from [AtCoder DP Contest](https://atcoder.jp, We will use problems from Codeforces (including new original ones) and a few from CSES andAtCoder.

Full text and comments »

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

82.
By chenhongrui, history, 5 months ago, In English
How Do Codeforces and AtCoder Determine if a Contestant Has Cheated? A while ago, a strong and well‑known Chinese contestant achieved rank 1 in an AtCoder Regular Contest (ARC). Instead of receiving a significant rating increase, he was banned. I was quite shocked at that time, so I left a comment under the blog of that contest. I thought such an incident was merely an isolated case, but last night on Codeforces, a classmate of mine (CF handle: changjunkongde) was suddenly banned during a contest. I currently do not know the reason for his ban, but given his character, I believe it is highly unlikely that he cheated. Of course, if further investigation reveals that he did cheat, that is a different matter. Nevertheless, this has made me question the cheating review mechanisms of Codeforces and AtCoder – how exactly does the anti‑cheating system work? In the early stages of my competitive programming (OI) career, Codeforces' anti‑cheating system seemed very robust to me, capable of accurately identifying cheating. However, with the rapid advancement o...
How Do Codeforces and AtCoder Determine if a Contestant Has Cheated?, So I am wondering: is it feasible for Codeforces and AtCoder to provide an appeal channel for

Full text and comments »

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

83.
By TeaPot, history, 9 years ago, In English
Will competitive programming ever become a real sport? I always was dreaming that one day competitive programming will become a real sport, not just activity for a small group of participants. Why? Because I don't really like working and my tries to do some science were totally unsuccessful. It would be cool to live just by doing what you like. Very childish, I know. But this blog is not about if competitive programming is important or are there any ways to make it interesting to watch to wider audience. I am just trying to understand, is it currently moving toward real sport or away from it? And I get some mixed signals about that: Bad signals: - Big onsites (like GCJ or TCO) seem to cut the number of participants and the amount of prizes. - Some onsite-finals are turning to online-finals. For example, several years ago we had Russian Code Cup onsite in Russia, currently RCC Finals is online. - Some big companies are turning away from sport programming (IBM is stopping sponsorship of ACM ICPC). Good signals: - Some ne...
platforms for training that were created just in the last year: like atcoder (for international

Full text and comments »

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

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

Full text and comments »

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

85.
By wuhudsm, history, 2 years ago, In English
Codeforces Round 960 (Div. 2) Editorial Thank you for participation and we hope you enjoy this round :) Additionally, we sincerely invite you to join the unofficial round of TheForces Community tomorrow. Compete alongside many high-rated participants and earn your own rating in a our own rating system([TheForces Rating System](https://theforces.netlify.app/ratings))! For more details, pls read https://codeforces.me/blog/entry/131733. #### [A &mdash; Submission Bait](https://codeforces.me/contest/1990/problem/A) <spoiler summary="hint1"> For Alice, what if choosing the maximum value doesn't work? </spoiler> <spoiler summary="hint2"> Consider parity. </spoiler> <spoiler summary="solution 1"> Case $1$: When all values appear an even number of times, Alice will lose. This is because no matter which number Alice chooses, Bob can mimic Alice's move. Case $2$: When at least one value appears an odd number of times, Alice will win. Alice only needs to choose the maximum value that appears an odd number ...
//#include<atcoder/all> //using namespace atcoder;

Full text and comments »

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

86.
By rng_58, history, 9 years ago, In English
AtCoder Petrozavodsk Contest 001 We've just rescheduled our contests. Next Saturday, we'll hold a long (most probably 5 hours, but it is not finalized yet) contest on AtCoder. Note that the start time is unusual: please check [here](https://www.timeanddate.com/worldclock/fixedtime.html?iso=20180203T2300&p1=248). The problems are based on one of the problemsets of Petrozavodsk camp. If you are a participant of Petrozavodsk camp, please don't participate in this contest. And of course, please keep the problems secret! This is a **rated** contest for everyone, and this contest **counts for GP30 scores**. If you are a Petrozavodsk participant and you care GP30 scores, please let me know. We'll make sure that you won't get disadvantages (please check [here](https://atcoder.jp/post/171), we'll handle you as a writer, i.e., increase the value of Y by one). The writers are japan02 team ([user:yosupo,2018-01-28], [user:sugim48,2018-01-28], [user:sigma425,2018-01-28]). Note that AGC 021 was postponed to avoid col...
AtCoder Petrozavodsk Contest 001, AtCoder. Note that the start time is unusual: please check [here](https://www.timeanddate.com

Full text and comments »

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

87.
By ADJA, history, 6 years ago, In English
Yet more thoughts on recent "adhoc/constructive" problems discussion. What is the ideal contest distribution? (this was originally intended as a comment to another post, but it turned out very lengthy, so I separated it into its own post) As it's often in debates, I think in this one there is too much polarization on both sides (people just attack each other), and a lot of ambiguity. I think there are some points to be made. Premise ------- 1. Let's be kind to each other. Like it or not, this is just a current trend in the history of Codeforces, and it too will pass. No need to attack anyone personally. If you want to criticize, let's provide constructive suggestions. 2. I've set contests before too, and I know that setting problems and coordinating is a very difficult job. It requires a lot of hard work, skill, experience, and patience. So like Anton's and other coordinators' style or not, let's not forget that they have done a lot of work, and let's thank them for that. Thank you! 3. It's also very mean to single out one person for the possible issue. While Anton may have...
4. I also don't find comparison to Atcoder fully valid. If you look at ABC and ARCs, you will find

Full text and comments »

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

88.
By nellex, history, 6 years ago, In English
[Beta] Harwest — Git wrap your submissions this Christmas! Hi beautiful people of Codeforces! Hope you'd all be doing fine and keeping safe. I'd like to start by mentioning that it's been a while since I graduated from university ever since which I haven't completely been able to indulge myself in competitive coding in the same way I did back in my university. But I sure haven't forgotten those days. I had some time off from work recently and decided to spend my time giving back to the community from where I have learned so much. In the thought of so, I've built this tool which I like to call [`Harwest`](https://github.com/nileshsah/harwest-tool) (a play on the word Harvest since the package name wasn't available anymore :'D) It's one of those tools which I would have loved to have during the time when I used to practice rigorously on this platform. **Harwest** allows you to manage all the submissions that you've made on Codeforces, or on other OJs (WIP) into one single Git repository which you can then push to your personal Github...
~~~~~ harwest atcoder ~~~~~, ~~~~~ harwest codeforces --full-scan OR harwest atcoder --full-scan ~~~~~

Full text and comments »

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

89.
By maomao90, 2 years ago, In English
Goodbye... top 1 contributor :( It's about time... 6 months have passed since Hello 2024 and the [halving](https://codeforces.me/blog/entry/76361?#comment-608729) is taking place. It is about time I retire from my top 1 contribution spot :( I want to take this opportunity to thank the community for being so generous with your upvotes for my Hello 2024 round. Thank you for letting me have this achievement of reaching the top contributor spot that not many people will get to experience. Regarding this, I hope that people will be more generous with their upvotes for other rounds as well. A big part of why Hello 2024 received so many upvotes is that Goodbye 2023 was not a great round. If a round went smoothly with no serious issues, why not upvote the round? This will encourage the problem-setters and motivate them to create more rounds in the future. In return for the community's support, I am considering writing some educational blogs. Let me know what type of blog you want to see from me in the comments. I am c...
about Static Top Tree since there are some functionality that the [atcoder editorial](https://atcoder.jp

Full text and comments »

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

90.
By maroonrk, history, 4 years ago, In English
Some Updates on AtCoder World Tour Finals [Original Post](https://atcoder.jp/posts/983) We have held Race Rankings to choose AtCoder World Tour Finalist. However, after we postponed the World Tour Finals 2020 due to the pandemic, the rules of the 2020 to 2022 seasons were obscure. This year, we finally decided to hold a combined AtCoder World Tour Finals for four seasons. There will be a single championship contest and some fun activities. The Finals will take place in August or September and we are communicating with the finalist to decide on the date. In addition, we have published [the rule for the 2023 season](https://atcoder.jp/posts/982). The major difference from the previous version is that we allow online participation for the Finals. This is because, though the pandemic is gradually settling down, the world situation is still turbulent when compared to the before-COVID era. We also allow people under 18 to take part in the Finals. The previous rule excluded underage participants because it was hard ...
Some Updates on AtCoder World Tour Finals, This year, we finally decided to hold a combined AtCoder World Tour Finals for four seasons. There, We have held Race Rankings to choose AtCoder World Tour Finalist. However, after we postponed the

Full text and comments »

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

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

Full text and comments »

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

92.
By Spheniscine, history, 5 years ago, In English
Unofficial AtCoder Beginner Contest 237 Editorial ### [A &ndash; Not Overflow](https://atcoder.jp/contests/abc237/tasks/abc237_a) <spoiler> Note that $N$ has to be read as a signed 64-bit integer type. You could check it by either doing to comparison manually, or casting back and forth between the signed 32-bit integer type. Time complexity: $O(1)$ </spoiler> ### [B &ndash; Matrix Transposition](https://atcoder.jp/contests/abc237/tasks/abc237_b) <spoiler> Simply construct a $W$-by-$H$ matrix, assign $B_{i, j} = A_{j, i}$ for all relevant $i, j$, then output it. Alternatively, if you use Python, the `numpy` library installed in AtCoder gives a really short implementation, as noted in this user editorial: https://atcoder.jp/contests/abc237/editorial/3344 Time complexity: $O(HW)$ </spoiler> ### [C &ndash; kasaka](https://atcoder.jp/contests/abc237/tasks/abc237_c) <spoiler> Note that for a string to be a palindrome, it must start with the same number of contiguous `a`s as it ends with. If there are less con...
Unofficial AtCoder Beginner Contest 237 Editorial, Alternatively, if you use Python, the `numpy` library installed in AtCoder gives a really short

Full text and comments »

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

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

Full text and comments »

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

94.
By Amao_Fox, history, 2 years ago, In English
The Rating table History versions: [here](https://www.luogu.com/paste/46w0g5p4), link from Luogu. If this project is successful I'll make a similar table for Luogu. [This](/blog/entry/126802) is someone else's chart. Due to the exclusion of interfering factors, the persuasiveness is stronger. (But I will still insist on making this less convincing version) ![This is the CF table](/predownloaded/74/63/7463fe1cc1e90382d7762dda1db5caad79314d0a.png) The columns: name = name, min = min, max = max, total = there're how many people in front of this line, current = there're how many people with you in this zone, proportion = proportion. Guess where you are? <spoiler summary="The AtCoder Table"> ![This is the AtC table](/predownloaded/2b/a9/2ba998c3fae22cbf223911474a56707527087156.png) </spoiler> I made this thing purely out of boredom, and it would be my honor if it could be helpful to you. I hope I will remember to update it every month. <spoiler summary="Fun Facts:"> - Due to the stra...
![This is the AtC table](/predownloaded/2b/a9

Full text and comments »

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

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

Full text and comments »

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

96.
By maroonrk, history, 3 years ago, In English
AtCoder World Tour Finals 2022 will be 2 Days Event [Original Post](https://atcoder.jp/posts/1055) AtCoder World Tour Finals 2022 will take place on Sep 8th and 9th. We have two contests, one for each day, and we will combine the results of the two contests to declare a champion. Contest Day 1: [https://atcoder.jp/contests/wtf22-day1](https://atcoder.jp/contests/wtf22-day1) Contest Day 2: [https://atcoder.jp/contests/wtf22-day2](https://atcoder.jp/contests/wtf22-day2) To reward those who advanced to the Finals multiple times, we will introduce a special tie-breaker this time: a contestant will get X points before the start of the contest where X is the number of times they advanced to the Finals. We will also offer mirror contests for them. They have the same problems as Finals and happen at the same time. Mirror Contest Day 1: [https://atcoder.jp/contests/wtf22-day1-open](https://atcoder.jp/contests/wtf22-day1-open) Mirror Contest Day 2: [https://atcoder.jp/contests/wtf22-day2-open](https://atcoder.jp/contests/wt...
AtCoder World Tour Finals 2022 will be 2 Days Event, AtCoder World Tour Finals 2022 will take place on Sep 8th and 9th. We have two contests, one for

Full text and comments »

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

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

Full text and comments »

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

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

Full text and comments »

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

99.
By YF_YUSUF, 7 months ago, translation, In English
Типичный "прямой эфир" codeforces Как часто читаете блоги на codeforces? --- ## Codeforces Round Announcement/Editorial Самое обычное напоминание что здесь можно не только читать блоги, но и решать/дорешивать задачи. --- ## Atcoder Contest Announcement Попробуй порешать задачи на другом vjudge. --- ## Пожалуйста забаньте этих читеров Стражи порядка, смотрят чужие коды и проверяют не LLM ли написала этот код. --- ## Изменение правил об использовании... Автор MikeMirzayanov Вы видели сколько там коментариев? --- ## Я только начал начал изучать спортивное программирование Новички которые только изучают код, рассказываюти как они решали задачи и просят советы как двигатся дальше. --- ## Я решил эту задачу с раунда другим способов Либо гении которые нашли более простое решение, либо те кто не понял авторское решение и написали его по своему. --- ## Челендж апнуть много рейтинга Поставил себе цель до которой хочет дойти, и ...
## Atcoder Contest Announcement Try solving the problems on another vjudge., ## Atcoder Contest Announcement Попробуй порешать задачи на другом vjudge.

Full text and comments »

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

100.
By Egor, history, 11 years ago, In English
CHelper 4.4 I would really appreciate any new ideas of what new features to add I would also appreciate donations: [Yandex.Money](https://money.yandex.ru/embed/shop.xml?account=410011732687384&quickpay=shop&payment-type-choice=on&writer=seller&targets=CHelper&targets-hint=&default-sum=100&button-text=03&successURL=), [PayPal](https://www.paypal.me/CHelper) Seems like no one tried beta verion &mdash; I would really appreciate feedback **4.4.3b3** - All supported sites are updated - New Google Code Jam is now supported - You can now inline any file (feature best used for DCJ, which is not here this year, but I hope will return) ------ **4.4.1b2** Support for interactive tasks added. By default you would interact using user input, but you can write your own interractor ------ **4.3.1** Task format is changes to JSON. I would recomment backing up your project before updating ------ **4.2.2** - Critical bug fix - CHelper Beta is no longer supported. You can sel...
- Added parsing for AtCoder and CSAcademy - Fixed parsing for HackerRank - Fixed enums in

Full text and comments »

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

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

Full text and comments »

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

102.
By rembocoder, 4 years ago, translation, In English
Простые оптимизации ДП Нет, я не имею в виду Convex Hull-оптимизацию и оптимизацию Кнута. Я имею в виду более простые и распространённые методы. _Это продолжение моей серии постов о ДП, чтобы понимать обозначения, читайте [пролог](https://codeforces.me/blog/entry/102542)._ ### Переходы из отрезка Очень часто после построения графа динамики можно обнаружить, что переходы в то или иное состояние ведут не из случайного набора вершин, а из некоторого отрезка по одному из параметров. _Например, из состояний `dp[i][j]`, при некотором константном `i` и при `j`, лежащим в отрезке `[a, b]`._ **В таком случае можно не реализовывать каждый переход в отдельности, а реализовать все скопом.** Если под реализацией перехода понимается прибавление из `dp[A]` в `dp[B]`, то можно воспользоваться префиксной суммой. Если же нам нужно найти _наилучший_ переход в `dp[B]`, то можно воспользоваться деревом отрезков. #### Пример [AtCoder DP Contest: Задача M](https://atcoder.jp/contests/dp/tasks/dp_m) _Найти количе...
[AtCoder DP Contest: Задача M](https://atcoder.jp/contests/dp/tasks/dp_m) _Найти количество

Full text and comments »

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

103.
By WLZ, history, 3 years ago, In English
A Slight Generalization of Push-Free Segment Trees Hi everyone! I'd like to share a simple way to use the [push-free segment tree](https://codeforces.me/blog/entry/112890) in some cases where the updates aren't commutative (spoiler: they need to be invertible). The uses cases of this trick are rather limited, though. The problem ------------------ We want to solve the following problem: Given an array $a_0, a_1, \dots, a_{N-1}$, whose elements satisfy certain properties (see [here](https://atcoder.github.io/ac-library/production/document_en/segtree.html)), answer $Q$ queries of the following types: - (Range queries): Given $0 \leq l < r \leq N$, find $a_l \cdot a_{l+1} \cdots a_{r-1}$ (endpoints are left inclusive and right exclusive). - (Range updates): Given $0 \leq l < r \leq N$ and a mapping $f$, update $a_i$ to $f(a_i)$ for all $i \in [l, r)$. $f$ has to satisfy the properties described [here](https://atcoder.github.io/ac-library/production/document_en/lazysegtree.html). Push-free segment trees ------------------ ...
(I'm using the [AtCoder modint implementation](https://github.com/atcoder /ac-library/blob/master

Full text and comments »

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

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

Full text and comments »

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