Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

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

Full text and comments »

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

2.
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 — 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 — 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) — all of that affects my mental state and willingne...

Full text and comments »

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

3.
By MikeMirzayanov, 5 years ago, In English
C++20 Is Released Hello, Codeforces. Please, welcome c++20 support on Codeforces. Yes, it is 64-bit. Thanks to Brecht Sanders: I used his distribution GCC-11.2.0-64 from https://winlibs.com/. If you have installed [PBOX](http://pbox.me/packages), you can add this compiler with the line `pbox install gcc11-64-winlibs`. Probably, a good idea is to add `C:\Programs\gcc11-64-winlibs\bin` into the PATH. More about PBOX you can read [here](https://codeforces.me/blog/entry/18274). I use the compilation command line similar to other GCC installations: `g++ -Wall -Wextra -Wconversion -static -DONLINE_JUDGE -Wl,--stack=268435456 -O2 -std=c++20 <source>`. The only differences are `-std=c++20` and `-Wall -Wextra -Wconversion` (I plan to use somehow such warnings in Polygon to suggest fixes in uploaded files). Now you can use c++20 in your solutions. I'm not sure there are many features useful in competitive programming. Probably, I'm wrong. For example, now you can write `vector v{vector{1, 2}};` inste...

Full text and comments »

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

4.
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...
interface (which is exactly the one you see when competing on AtCoder) I had to run a phpscript

Full text and comments »

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

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

Full text and comments »

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

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

Full text and comments »

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

7.
By ko_osaga, history, 14 months ago, In English
Squarepoint Challenge (Codeforces Round 1055, Div. 1 + Div. 2) Annyeonghaseyo, Codeforces! We invite you to participate in [contest:2152], which will be held on [contest_time:2152]. The round will be **rated for everyone**. You will be given **8 problems**, one of which is divided into two subtasks, and **3 hours** to solve them. One of the problems will be interactive, so make sure to read the [guide for interactive problems](https://codeforces.me/blog/entry/45307) before the contest. The problems are authored and prepared by [user:as_dfsdf,2025-09-29], [user:djm03178,2025-09-29], [user:ko_osaga,2025-09-29], and [user:qwerasdfzxcl,2025-09-29]. We would like to thank: - [user:errorgorn,2025-09-29] for great coordination. - [user:Alexdat2000,2025-09-29] for great Russian translation. - [user:Adam_GS,2025-09-29], [user:ainta,2025-09-29], [user:bangan,2025-09-29], [user:BuzzyBeez,2025-09-29], [user:cookiedoth,2025-09-29], [user:Dragos,2025-09-29], [user:gamegame,2025-09-29], [user:garam1732,2025-09-29], [user:Geothermal,2025-09-29],...

Full text and comments »

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

8.
By unreal.eugene, 5 years ago, In English
Polygon Updates (June — August 2021) Hello, Codeforces. I and [user:DK318,2021-08-19] joined the Codeforces team in June. These three months we mainly dealt with the development of the Polygon platform. In this post, we would like to present to you a list of what we have done during this time. Most of the changes were made to attain easier problem creation. This list does not include minor bug fixes or any improvements that are invisible to users. #### Tables support when rendering statements in HTML Now it's possible to insert the most basic tables in your HTML statements. For example, you can show the scoring system of your problem or insert several images side by side. Only column text alignment and border specification are supported now. <img src="/predownloaded/4a/4a/4a4a6c726e96df40929803a1276a448947d6ebed.png" style="width: 800px; margin-left: auto; margin-right: auto; display: block"/> #### A brief manual for writing statements We bet a lot of users who wrote statements were confused by the fact ...
statements page for all problems created after June 1, 2021. * Removed the 'Run Script' button on, . * Removed the 'Run Script' button on the tests page and improved 'Preview Script'. * Added new

Full text and comments »

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

9.
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 ...
on them. To do it, I have written a script file., **The script.** Now, the third line., If this code breaks early, the script has found a test case where the naive and wrong solution

Full text and comments »

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

10.
By -is-this-fft-, history, 2 years ago, In English
Things you should know before you discuss cheating Cheating has been discussed a lot lately. I'm writing a blog post about it with actual data (mainly, I want to know if there is an actual increase). However, in the many discussions that have ensued both here and on Discord servers, I noticed several recurring misconceptions. I wrote a section to debunk them and it grew kind of long, long enough to be a post in itself. So while my scripts are running, we can treat this as a kind of teaser. ### Things you should know before you write a comment about cheating Vocabulary: - _To plagiarize_ [means](https://dictionary.cambridge.org/dictionary/english/plagiarize) to use someone else's work while passing it off as yours. It refers to the act itself, **not** to its detection or punishment. "jrandomcoder plagiarized all of his solutions in round 987" is a meaningful statement. "jrandomcoder cheated in round 987 but he still hasn't gotten plagiarized, I request [user:MikeMirzayanov,2024-08-16] to look into this" is not. - _Plague_ is a...

Full text and comments »

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

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

Full text and comments »

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

12.
By MikeMirzayanov, 4 years ago, In English
Testlib: tests + CI Hello, Codeforces. I have wanted for a long time and now, finally, I sat down and did it. Many of you are familiar with my [Testlib](https://github.com/MikeMirzayanov/testlib) project. This is a library that helps you develop problems if you are using C++. In the case of problems for Codeforces rounds, its use is mandatory. It seems to me that it is almost a de facto standard for preparing materials for completely different olympiads and competitions. The history of С++-Testlib is almost lost in centuries, I published the first version in 2005. Nowadays, making edits to Testlib has become tricky. The code grown to thousands of lines, also it has too long a history. This increases the likelihood of accidentally changing some aspect of behavior, which will jeopardize the holding of a Codeforces round or another important competition. In short, making a bug in this code or changing behavior anywhere is highly discouraged. So I recently took the plunge and wrote some test...
find it useful to use `test-ref` script in tests, which checks that a process has exited with the, Otherwise you might find it useful to use `test-ref` script in tests, which checks that a process

Full text and comments »

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

13.
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...
#compile everything subprocess.run("g++ gen_random.cpp -o bin/gen_random -O2 -std=c++17",shell, [x]),shell=True,capture_output=True).stderr) print(), ]),shell=True,capture_output=True).stderr) print() ``` , for i in solutions: subprocess.run("g++ {}.cpp -o bin/{} -O2 -std=c++17".format(i,i),shell=True), for test in tests: print(test) subprocess.run("./bin/{} 2 > in".format(test), shell=True), for test in tests: print(test) subprocess.run("./bin/{} 4 > in".format(test), shell=True)

Full text and comments »

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

14.
By awoo, history, 4 years ago, translation, In English
Educational Codeforces Round 130 [Rated for Div. 2] Hello Codeforces! On [contest_time:1697] [contest:1697] will start. Series of Educational Rounds continue being held as [Harbour.Space University](https://harbour.space/) initiative! You can read the details about the cooperation between [Harbour.Space University](https://harbour.space/) and Codeforces in the <a href="http://codeforces.me/blog/entry/51208">blog post</a>. This round will be **rated for the participants with rating lower than 2100**. It will be held on extended ICPC rules. The penalty for each incorrect submission until the submission with a full solution is 10 minutes. After the end of the contest you will have 12 hours to hack any solution you want. You will have access to copy any solution and test it locally. You will be given **6 or 7 problems** and **2 hours** to solve them. The problems were invented and prepared by Adilbek [user:adedalic,2022-06-11] Dalabaev, Vladimir [user:vovuh,2022-06-11] Petrov, Ivan [user:BledDest,2022-06-11] Androsov, Mak...
, perl, shell scripts._ - _Proven experience in backend & frontend software systems & web applications, , shell scripts._ - _Proven experience in backend & frontend software systems & web applications, , shell scripts._ - _Подтвержденный опыт работы с backend и frontend программными системами и веб, shell, Perl, python to perform automation and maintenance tasks and CI/CD environments_

Full text and comments »

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

15.
By errorgorn, 14 months ago, In English
Congrats bribritt on becoming Singapore's new youngest LGM bro still has 3 more IOI and IMO attempts &#128128;&#128128;&#128128; <spoiler summary="By the way, I was wondering whether Singapore having 2 LGMs would make us the highest LGM per capita. It turns out no."> Note that here, I am doing it by max rating, instead of current rating. <div style="text-align:center;"> <img src="https://cdn.discordapp.com/attachments/752406106009239585/1423728259522105588/image.png?ex=68e15dc4&is=68e00c44&hm=a4ca2cc71c4482788e5915e40b71213a9a8d896fddd8594758c8d6b1eac663af&" style="width:50%;"> </div> In the chart above, I manually added one more LGM to Singapore. The error bars are what happens with $\pm 1$ LGM. Manually inspecting the above graph, we see that we should probably remove Antigua and Barbuda, and Samoa. Actually let's remove Cyprus (which I think <a class="rated-user user-red" href="/profile/Endagorion" title="International Grandmaster Endagorion">Endagorion</a> plausibly lives there) too from the plot so we can see everythin...
```python import os import json import requests from

Full text and comments »

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

16.
By codetiger927, history, 5 years ago, In English
My Quest to Answer the Ultimate Question Through Machine Learning: If a hamster was born in aquarium, does it become a fish? `If a hamster was born in aquarium, does it become a fish?` &mdash; Rotavirus 2021 When the hour hand is way past twelve and the sky is dark, I often find myself pondering about this question, alone. Of course, a hamster is a hamster, and it cannot just become a fish right? But then again, if its mother gave birth to it inside an aquarium, then who's to say the hamsters didn't acquire a critical mutation that gifted them the ability to breathe underwater, transforming them into fish? I would be awake at 3 am in the morning, frustrated and defeated by this cruel dilemma that I cannot seem to solve. But, Rotavirus must know, right? After all, he was the person that proposed this rhetorical question, so he must have the answer to his own question! If I could just ask him, maybe, just maybe... Yet fate cheated me once again: Codeforces has permanently banned Rotavirus &mdash; I can no longer ask him. All I have left are only pieces of clues and hints scattered around his commen...
, so I wrote a cleaner script that only accepts ASCII characters., I first wrote a simple python scraper to get all of rotavirus' comments. It's just a simplescript

Full text and comments »

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

17.
By Franklyn_W, history, 5 years ago, In English
When Dreams Come True: The only solve on N at ICPC WF 2020. _Addendum: This is mostly about the story behind our solution to N. To see more about the math, see [here](https://codeforces.me/blog/ekzhang)_ When I was younger, fairytales always captivated me, with their nice and clean stories. All through my life I've liked the idea of having a fairytale ending to a life arc, but I was frequently disappointed. Many times after an unsuccessful experience, one simply gets more unsucessful experiences and then time runs out... At ICPC recently, I was lucky enough to finally attain my fairytale ending to my competitive programming career. I figured I would tell the fairytale, to close a career that started about 6 years ago. On my World Finals team, my role is to help the team get hard math problems, as I haven't actively processed algorithms in years. So imagine my delight when my teammate ([user:ekzhang,2021-10-06]) points out that problem N reduces to finding a vector so that the (l2)-norm of x is r, and $Ax = b$ for a matrix $A$ and vect...

Full text and comments »

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

18.
By .o., history, 6 years ago, In English
An automatic script to update test groups in Polygon automatically While preparing problems with subtasks using Polygon, it's super annoying that we cannot set test groups using test scripts. As a workaround, I wrote a simple script. Test group of each test = the last token of the test generation command ```javascript function setPolygonTestGroupAutomatically() { const mapping = {}; $("#testsTable tbody tr code") .each((_, v) => { const vid = v.parentNode.parentNode.id; if(!vid.startsWith('test_')) return; const idx = parseInt(vid.substring('test_'.length)); const tokens = v.innerText.split(" "); // Test generation command const testGroup = tokens[tokens.length - 1]; // Last token of the test generation command if (!mapping[testGroup]) { mapping[testGroup] = []; } mapping[testGroup].push(idx); }); const keyToIndices = Object.entries(mapping); function go (idx) { if (idx == keyToIndices.length) { console.log("Changed everything!"); ...
An automatic script to update test groups in Polygon automatically, simultaneously, Polygon will automatically change the dollars of the test script into non-consecutive, As a workaround, I wrote a simple script., Paste the script above to the developer console on the tests page.

Full text and comments »

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

19.
By awoo, history, 11 years ago, translation, In English
Creating Gravity Defied tracks using Codeforces rating graph Introduction ============ <img src="http://cs624422.vk.me/v624422694/36ac0/8jKq7pMzPOc.jpg" style="float: right;"></img> Hi everybody! Recently I have decided to refresh memories about good old times and play Gravity Defied on my phone. It wasn't really hard to find port of that legendary game from J2ME to modern platforms. It rapidly gained glory among students of past decade. Key points of Gravity Defied success were nice gameplay (biker completing different stages with high cliffs and deep pits), convinient physics (ability to rotate mid-air) and simplicity of modmaking. As for me, it was a bit more than usual game. When I had completed over thousand tracks, I began earning money on helping others to progress. Only later even more difficult games were developed: HOMM 3, Far Cry and Dark Souls... Predevel story ============ <img src="http://cs624422.vk.me/v624422694/370dd/wU1hi77t6U8.jpg" style="float: right;"></img> And now Gravity Defied is on my phone again! Not o...
implementation. Python 3 script loads JSON with contests list of certain users and creates array of points using, needed piece of information translated and proceeded with implementation. Python 3script loads JSON, Please, notify me about found bugs in script and errors in post by PM.

Full text and comments »

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

20.
By Vladosiya, history, 3 years ago, translation, In English
A Little Script for Your Announces Hello, Codeforces! I made announces of rounds quite often, so some time ago I made a script that gives out the entire list of testers divided by colors. Of course, you can rewrite it a little, so that the order is whatever you want. Script uses [Codeforces API](https://codeforces.me/apiHelp ), so first of all you need to go to your account settings and generate API keys and put the open one in the "key" file, and the secret one in the "secret" file in the same folder with the script (or just assign them to the corresponding variables in the script). Now you just need to fill in the array _contestids_ with ids of mashups that you used for testing and run the script. At the end of its work, the script will create file "en.txt " with thanks to all the testers. I hope it will help you to quickly change the list of testers. Good luck to all and successful rounds! <spoiler summary="Script"> ~~~~~ import sys import requests import json import time import random import string ...
A Little Script for Your Announces, ~~~~~ import sys import requests import json import time import, Hello, Codeforces! I made announces of rounds quite often, so some time ago I made ascript that, Script uses [Codeforces API](https://codeforces.me/apiHelp ), so first of all you need to go to

Full text and comments »

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

21.
By Swistakk, history, 8 years ago, In English
Ultimate guide to TopCoder plugins Hi, I wanted to present to you guide on how you should set up TopCoder Arena in order to make competing in TC much more pleasant experience. Or at least guide how to do the same thing as I did which seem very comfortable to me compared to this big pain of competing in bare default Arena. In case you want to grab easy upvotes please leave here some joke about how I am jealous about ~Radewoosh,2018-08-16 getting insane boost in his contribution by writing his blogs, but the real reason is that I screwed my setup recently and needed to go through this painful and magical setup once again and it seems this information is very nontrivial and not available publicly in a known place (which I believe is one of reasons TopCoder is losing its popularity, but I hope thanks to this post I can give slight boost to it by settling up Arena problems once and for all for many people), so I wanted to share it with others. I want to express my sincere thanks to [user:tomasz.kociumaka,2018-08-16] for guid...

Full text and comments »

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

22.
By Sparky_WCH_Master1226, history, 4 years ago, In English
A useful blog about how to become master Dear Codeforces community, Today I realised I should teach more people the secrets on how to become a Master in Codeforces like [user:20llmc,2022-11-14]. The key to reaching orange is to just acquire some 4-anilino-4'-nitroazobenzene and spread it all over your keyboard. This will ensure that you absorb the most orange powers while you type code. **If you are going for Legendary Grandmaster, replace that with squid ink.** Regarding 4-anilino-4'-nitroazobenzene, this dye is useful in conducting experiments with flash photolysis due to the isomerization effect between the trans-4A4N and cis-4A4N states that occurs during photo relaxation. Hence, I believe it will have the maximum effect on helping you become a Master in Codeforces. If you are too poor to buy / chemically synthesize it, then you are having a skill issue. An easy solution to this is to bake some lemon tart. The following is a procedure written in English (not C++, sorry in advance) on how to bake lemon tart: ...
the edges. Prick the bottom with a fork, and place the shell in the freezer for 30 minutes., Heat oven to 375 degrees. Remove tart shell from freezer, and bake until lightly golden, 20 to 25, While shell is in freezer, prepare lemon curd. Grate zest of lemons. Squeeze lemons to extract 1, shell in the freezer for 30 minutes. While shell is in freezer, prepare lemon curd. Grate zest of

Full text and comments »

23.
By greateric, history, 5 months ago, In English
Stresstesting script Don't worry, your regularly scheduled useless information programming will resume soon. Anyway, here is [`gtest`, my attempt at writing a script to help with stresstesting](https://github.com/greatericontop/gtest). Note that I still personally think stresstesting is slightly overrated. It is not a silver bullet, especially when some questions are unstresstestable, like some constructive problems, [problems where the solution space grows way faster than even exponentially if you're trying to brute](https://codeforces.me/contest/1747/problem/D), other cases where your brute forcer has to make some core observation that could potentially be wrong, or if your brute forcer is bugged too and misses the same edge case your fast solution does (Cirno and Number with digit 0 be like). I also think it takes a lot of time so you decide whether you want to write everything up or not. With that being said though, it should be very helpful for debugging WA2s, hopefully. The format is ~~~...
Stresstesting script, , here is [`gtest`, my attempt at writing a script to help with stresstesting](https://github.com, Anyway, here is [`gtest`, my attempt at writing a script to help with stresstesting](https, For Python generators, the script will load the module (using importlib) and extract every function, `. Alternatively just copy the python script `gtest.py` and put it somewhere. It has no dependencies other than

Full text and comments »

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

24.
By Fefer_Ivan, 13 years ago, translation, In English
Improvement of the functionality of test scripts in Polygon Good night/dawn/morning/day/dusk/evening/night, Codeforces! Today I am glad to present you the latest features of the [Polygon](https://polygon.codeforces.com/) &mdash; the system for creation and preparation of programming problems and contests. All Codeforces Rounds are made using Polygon. New features are concentrated around test script. ![Old script field](https://dl.dropboxusercontent.com/u/28090424/ScriptField.png) #### Part one. Test autonumeration The first new feature allows you to automatically numerate tests. Instead of this ~~~~~ gen_n 5 10 1 > 57 gen_n 5 10 2 > 58 gen_n 5 10 3 > 59 gen_n 5 10 4 > 60 gen_n 5 10 5 > 61 ~~~~~ you can now write this ~~~~~ gen_n 5 10 1 > $ gen_n 5 10 2 > $ gen_n 5 10 3 > $ gen_n 5 10 4 > $ gen_n 5 10 5 > $ ~~~~~ Dollar sign, used to mark autonumeration, stands for the first unused test index. So, for example: ~~~~~ gen 1 > $ gen 2 > $ gen 4 > $ gen 5 > $ gen 3 > 3 ~~~~~ will be translated to...
Freemarker script. But, in my opinion, if you already wrote program, that generates all tests, why, to any possition without changing the script., ![Old script field](https://dl.dropboxusercontent.com/u/28090424/ScriptField.png), - It is impossible to delete, edit or move script test using web-interface. To do it, you must edit, As you will see, there are two new buttons near Save Script: Preview Script and RunScript., But don't you think, that dollars will be replace with actual numbers upon saving thescript. It, But, script must be always consistent with the test table. It adds some limitation to the use of, New features are concentrated around test script., Now you can write script using [Freemarker Template Engine](http://freemarker.org/), that will be, Preview Script shows you the final result — which test will get which generator line. Run, Preview Script показывает вам конечный результат, то есть какие строки генерации попадут в какие, Вы заметите, что кроме кнопки Save Script появились также Preview Script и Run Script.

Full text and comments »

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

25.
By ramchandra, 6 years ago, In English
Compilation and debugging tutorial In this tutorial I'm going to share some useful compilation and debugging tips. These tips can save you a ton of time debugging and make compilation and debugging convenient. ### Useful compilation flags G++ has many useful warning flags such as - `-Wall` enables all warnings. I highly recommend using this flags. - `-Wextra` enables extra warnings. - `-Wno-sign-conversion` silences sign conversion warnings for code like `x < vec.size()` - `-Wshadow` enables shadowing warnings, so that if you define another variable with the same name in a local scope, you will get a warning. Using these flags can save you time debugging silly mistakes like forgetting to return a value in a function or doing a comparison like `x < vec.size()-1` where `vec.size()-1` can underflow into `SIZE_MAX-1`. #### Precompiled headers You can use precompiled headers to substantially speed up the compilation of your code. Note that the precompiled header is only used if it is compiled with the ...
folder (e.g. `C:\Users\my_username` on Windows). This shell script in this file is executed by bash

Full text and comments »

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

26.
By Mindeveloped, history, 2 years ago, In English
I made (Not Yet Another) problem filter script I made my own script to filter problems in CF problemset. If such script with same function already exists you can ignore my post or downvote it. This is a python 3 script that fetches all problems from CF problemset and allows custom filtering. It supports custom filter criteria in python expression format. After you input the filter function, it filters the problems and choose a random one. More details can be found in spoilers below. <spoiler summary="Filter Expression"> In your filter expression, you are given variables `problem` and `contest`, and it's supposed to returns `1` if the problem matches your search, `0` otherwise. Example: `problem.rating == 2400 and "geometry" not in problem.tags and contest.divison == "Div. 1"` The variable `problem` contains such properties: ``` id - The ID of the problem, in the format e.g. 1234H, 2024A. rating - The CF rating tag. Can be absent. contest - The contest id of this problem. Equals to contest.id. index - The problem...
I made (Not Yet Another) problem filter script, I made my own script to filter problems in CF problemset. If such script with same function already, This is a python 3 script that fetches all problems from CF problemset and allows custom filtering

Full text and comments »

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

27.
By kevaljain, 2 years ago, In English
Indian ICPC Camp 2024 (and scripts to host your own camps!) Greetings Codeforces! ===================== IIIT Hyderabad Programming Club is excited to announce Indian ICPC Camp 2024, a collaborative effort from top Indian colleges and universities, sponsored by [Databricks](https://www.databricks.com/). This camp offers an excellent opportunity to advance your skills in competitive programming and team contests. <center> <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/63/Databricks_Logo.png/440px-Databricks_Logo.png"> </center> **TL;DR** First contest will be held on September 22. One contest almost every Sunday. The deadline to fill the form is 23:59 IST, 15 September 2024. Scripts for hosting your own camp at the end. [Registration Form](https://forms.gle/F6Ttn3KnrGyWXcPh7) [Discord Server](https://discord.gg/W8xv5kfFay) About ICPC Camp --------------- ### Contests We have planned ICPC style contests (5 hours, with difficulties corresponding to Indian regionals and higher) over the next 8+ weeks. Eac...
camp concludes. We’ve also incorporated a script to generate the feed for simulating the "unfreeze, the camp concludes. We’ve also incorporated a script to generate the feed for simulating the

Full text and comments »

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

28.
By Golovanov399, 5 years ago, In English
A tool for testing interactive problems Hello, codeforces! I have created a tool for testing interactive problems. If you do not know what it is, I recommend you to read [Interactive Problems Guide](https://codeforces.me/blog/entry/45307) before/instead of reading this blog. It is important to understand that this tool does **not** help, in any way, to solve interactive (and all other types of) problems, where by "solve" I mean "come up with the solution". Today's June Lunchtime introduced an interactive problem called [XOR, The Detective](https://www.codechef.com/LTIME109A/problems/XORDETECTIVE), where I used my tool and it helped me to debug my solution, so I would like to use this chance to show the tool in work. With all of this out of the way, let's begin. Debugging interactive solutions in general ================== I can't say about everyone, but for me personally debugging a solution to an interactive problem is much harder than to a non-interactive one. First of all, basic testing on samples is already no...
probably not going to be in need of frequently. Also, as far as I remember, thisscript should not, submitted my code, it passed all the tests. Installation and usage ================== Thescript, - Create a directory for such scripts (optional); - Move the script in such a directory (or in any, After these steps you should be able to run the script from anywhere using the `interact` command, The script can be downloaded from my [github](https://github.com/Golovanov399/stuff/blob/master

Full text and comments »

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

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

Full text and comments »

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

30.
By Nanako, 4 years ago, In English
Good Bye 2022 -- Editorial ## [problem:1770A] Idea by [user:m_99,2022-12-30] <spoiler summary="Hint 1"> Exactly $n$ items out of of $a_1,\ldots,a_n,b_1,\ldots,b_m$ will remain on the whiteboard at the end. </spoiler> <spoiler summary="Hint 2"> $b_m$ will always remain on the board at the end. </spoiler> <spoiler summary="Hint 3"> Consider the case where $n=2$ and $m=2$. As we mentioned in hint 2, $b_2$ will always be written, but what about $b_1$? </spoiler> </details> <spoiler summary="Solution"> This problem can be solved naturally with a greedy algorithm &mdash; for $i = 1, 2, \dots, m$, we use $b_i$ to replace the minimal value among the current $a_1, a_2, \dots, a_n$. The time complexity is $O(nm)$ for each test case. Alternatively, we can first add $b_m$ to our final sum. For the remaining $(n+m-1)$ integers, we can freely pick $(n - 1)$ out of them and add it to our final sum. This is because if we want a certain $a_i$ to remain on the board at the end, we simply do not touch i...

Full text and comments »

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

31.
By ssvb, 5 years ago, In English
$O(N^2)$ solution to Facebook Hacker Cup 2021 Round 1 problem A2 (part one) Right after the end of Facebook Hacker Cup 2021 Round 1, [user:wjomlex,2021-09-25] posted the following [comment](https://codeforces.me/blog/entry/94726?#comment-839269) in the discussion section under the announcement blog: > A common issue was people writing O(N^2) solutions to problem A when O(N) solutions are necessary. You won't be able to run an O(N^2) solution in 6 minutes when N = 800,000. But is this really true? Challenge accepted! ##### Problem A1 <div> <spoiler summary="Spoiler"> First of all, here is an $O(N)$ solution for [problem A1](https://www.facebook.com/codingcompetitions/hacker-cup/2021/round-1/problems/A1): <spoiler summary="Spoiler"> ~~~~~ #include <iostream> #include <vector> #include <stdint.h> using namespace std; /* * This is a solution for problem A1. Time complexity: O(N) * Characters in the input buffer are remapped: 'F' => 0, 'X' => 1, 'O' => 2 */ static int32_t solve_a1(const int8_t *arr, int n) { int32_t ans = 0, h...
-fopenmp solution1.cpp # adb push a.out /data/local/tmp/ # time adb shell /data/local/tmp/a.out, a.out /data/local/tmp/ # time adb shell /data/local/tmp/a.out < weak_typing_chapter_2_input.txt, work together? It isn't very difficult to make a script, which dissects the input data into separate, ~~~~~ require 'open3', ", # Laptop "adb shell /data/local/tmp/a.out", # Android tablet ], # This script splits a big test into individual testcases. And then runs # them on multiple, == Workers contribution: == './a.out' : 66.68% (2 cases) 'adb shell /data/local/tmp/a.out, shell /data/local/tmp/a.out' working on case #18 'adb shell /data/local/tmp/a.out' finished case #18

Full text and comments »

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

32.
By galen_colin, 3 years ago, In English
fix problem ratings pls (the rainboy effect) [The first few paragraphs of this blog, above the first spoiler, are just for story purposes and are irrelevant to the problem statement] One fateful day, a naive and young version of me from about 5 days ago had a dream. A dream to stop being so terrified of hard problems. A dream to conquer the most challenging stuff that CF ever had to offer. A dream to... ok, enough of that, that's so stupid. Basically, I've been grinding 3500s lately, mostly for fun (and my god, has it been fun). Two days prior, I found myself solving [1919G](https://codeforces.me/contest/1919/problem/G). That went fine, but after getting it, I noticed that despite G being 3500, it wasn't even the hardest problem in the contest &mdash; that honor went to the next problem, [1919H](https://codeforces.me/contest/1919/problem/H) (the subject of this blog), which had **no solves in-contest**. I concluded that I would have to be insane to try that, and moved on to other problems. Well, yesterday, I decided I...
You don't even need a separate script for it. I embed my testing into my main code (which, often

Full text and comments »

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

33.
By kostka, 8 years ago, In English
Team dashboard Hey Codeforces! I made a thing and I want to share it with the community. We wanted to keep track of achievements and submissions in our team and using Codeforces status page is not really handy. Therefore, I introduce to you **Team dashboard**. ![ ](http://weaselcrow.com/pro/cf/team/example.png) Here you can find some kind of a timeline for each member of your team, showing last submissions, contests and even blog posts on Codeforces. Using this script is pretty easy, just specify up to 3 handles in the address, separated by semicolons (please check below). Also please keep in mind that this script was made in 3-4 hours, so there is almost certainly a handful of bugs. Also, the script asks a lot of queries to the Codeforces API, so sometimes not all requests are answered. You should wait a couple of seconds and try again. Visit right now and bookmark your team: http://weaselcrow.com/pro/cf/team/?h=Radewoosh;Errichto;kostka You can also compare yourself with you...
submissions, contests and even blog posts on Codeforces. Using this script is pretty easy, just, Using this script is pretty easy, just specify up to 3 handles in the address, separated by

Full text and comments »

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

34.
By HYPERHYPERHYPERCUBELOVER, history, 11 years ago, In English
Codeforces' Hidden Feature — Multiple Profile Images! I have noticed a strange feature while conducting some experiments. Look at the following. My large profile picture and small profile picture look different. ![ ](http://i.imgur.com/t4Ce5cm.png) #### I can't believe that. You can see that my profile pictures look different [here](http://codeforces.me/profile/cubelover) and [here](http://codeforces.me/comments/with/cubelover). Still not convinced? Upload [this](http://i.imgur.com/3KovuM8.png) and check how your profile pictures are changed. #### Why does this happen? I uploaded [this](http://i.imgur.com/1Bkbn3m.png) to change my profile picture. The result was interesting. The large profile picture was almost black, but the small was white. I thought that Codeforces uses [Nearest-neighbor interpolation](https://en.wikipedia.org/wiki/Nearest-neighbor_interpolation) to scale pictures in proper sizes. (This is just a guess!) Nearest-neighbor interpolation selects the value of nearest point and does not consider the valu...
) python script to create a 3600x3600 image that will make your profile pictures look different, I used [this](http://ideone.com/OMPWJD) python script to create a 3600x3600 image that will make

Full text and comments »

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

Full text and comments »

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

36.
By Not-Afraid, history, 6 years ago, In English
Bash Script for Stress Testing[Code with explanation] Hello Codeforces community. ~~~~~ Tl;dr: The script is specifically for *Unix and can be used to stress test `C++` solutions. It can be easily modified to work with python or java. To use it in windows you can download Ubuntu terminal which is officially available on Microsoft Store and then use it or you can modify the script to work in cmd by changing the .out files to .exe and a bit of syntax for cmd. ~~~~~ **Note**: If you don't want to read this lengthy blog, just go to [this](https://github.com/bhupixb/Stress-Testing-bash-script) repo and follow the instructions of readme. <br> First let me tell you what stress testing is if you don't know, Stress testing is technique using which we can run our solution (which we think might fail/is failing) on a number of random test cases and match it's output with the output of a solution which is a brute force solution or accepted solution of someone else.<br> If you don't know why and when to use stress testing you can use [...
Bash Script for Stress Testing[Code with explanation], solution on terminal and the script will be terminated. If you wish to terminate the script at any, understand the script all we need is just basics of the language `bash`. So we have three `.cpp` files:, /Stress-Testing-bash-script) repo and follow the instructions of readme. , About script: , Hello Codeforces community. ~~~~~ Tl;dr: The script is specifically for *Unix and can be used, I want to share my script for stress testing your solution. , Tl;dr: The script is specifically for *Unix and can be used to stress test `C++` solutions. It can, UPD1: Updated the script to take brute and main file via flags, no. of testcases as optional, Usage: Download [this](https://github.com/bhupixb/Stress-Testing-bash-script) repository

Full text and comments »

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

37.
By Adhami, history, 8 years ago, In English
Educational Rounds Wrapper — Python Script If you ask a Jordanian competitive programmer for a training advice, there is 98% chance that he would recommend you to solve Educational Rounds, ask [user:Hiasat,2019-03-14]. However, getting your progress in Educational round tracked is hard, so here it comes! I wrote this script way before, but my friends recently encouraged me to post it. It gets every Educational Round and what you have already solved in it. ``` import urllib.request, json import datetime s = [] w = [] with urllib.request.urlopen("https://codeforces.me/api/contest.list") as url: data = json.loads(url.read().decode()) for x in data["result"]: if x["name"].startswith("Educational"): w.append(x["name"]) s.append(x["id"]) e = [""]*len(w) #Edit this line to your handle: USER_NAME = "CPX" with urllib.request.urlopen("https://codeforces.me/api/user.status?handle="+USER_NAME) as url: data = json.loads(url.read().decode()) for x in data["result"]: if "verdict" in x and "contestI...
Educational Rounds Wrapper — Python Script, progress in Educational round tracked is hard, so here it comes! I wrote this script way before, I wrote this script way before, but my friends recently encouraged me to post it. It gets every, You can copy it or print the output to a file. Check my script for Country-Wise standing.

Full text and comments »

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

38.
By upobir, 8 years ago, In English
Debugging with random generated tests, with windows script Sometimes when you are getting WA on a problem, possibly due to missing some corner case or a bug in your code, all you really need are the perfect test cases. Of course you don't know the perfect test cases, so you have to resort to something else. And that something else is checking your code on a bunch of randomly generated testcases. I recently learnt about it and so, am writing this so other noobs like me can get a little help. First of all, this isn't an unique idea. I myself learnt about it from [user:errichto,2019-05-03]'s youtube [video](https://youtu.be/JXTVOyQpSGM). You should check it out if you haven't seen it before. So the idea is simple, you will write two new c++ programs, one to generate random test cases. And another to get solution for those test cases, but unlike your actual solution code, this will definitely give the correct answer (perhaps not efficiently/ via brute force). You run the test generator a bunch of times and save the tests in a fine **input.in**....
Debugging with random generated tests, with windows script, brute force solution). And then you compare the solutions with a script code of your OS., with a script code of your OS. The test generation part is easy for a lot of problems, you need to, Anyways, about the script part, which is the main goal of this blog. For linux script you can just

Full text and comments »

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

39.
By GlowCheese, 2 years ago, In English
Editorial of Codeforces Round 963 (Div. 2) [problem:1993A] <spoiler summary="Hint"> What is the pattern of Tim's answer sheet that can give him maximum score? </spoiler> <spoiler summary="Solution"> Let's say there are $n$ problems take $A$ as the answer, therefore he can only get $n$ points with the answer $A$. The same is correct for $B$, $C$ and $D$. Therefore, the maximum score can be achieved is $min(n, A) + min(n, B) + min(n, C) + min(n, D)$. Time complexity: $O(4n)$ </spoiler> <spoiler summary="Code (python)"> ~~~~~ t = int(input()) for _ in range(t): n = int(input()) s = input() print(sum(min(n, s.count(c)) for c in "ABCD")) ~~~~~ </spoiler> [problem:1993B] <spoiler summary="Hint 1"> Find a way to make all the elements even. Then odd. </spoiler> <spoiler summary="Hint 2"> In the worst case, the number of operations required is the number of even elements + 1. Why? </spoiler> <spoiler summary="Solution"> First, if all elements already have the same parity, we don'...
Let the robot moves freely (no modification on the script). , keeps going without modifying the script). Then, you follow the path of each robot that is moving, the number of times Alex's position is $(0, 0)$, we know that if we don't change thescript at all, wants to move up while Alex know the discipline and modify the script before executing the command and, $ commands of the script. Then: $t_0 = (0, 0)$ and $t_k$ can be calculated through $t_{k-1}$ and $s_k$., Now, let's say Bob moves up so much that Alex follows the script and reaches the top side and the, The robot will execute the script $k$ times and the script contains $n$ commands, so we have $nk

Full text and comments »

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

40.
By johnathan79717, 13 years ago, In English
A Codeforces Contest Parser and Sample Tests Generator Many thanks to [user:brunoja,2014-01-19]. He is the main contributor now. Please try it out and give us feedback. You're also welcome to fork the project or join us as a collaborator. https://github.com/johnathan79717/codeforces-parser Codeforces Parser v1.4.1 ================= Summary ------- [Codeforces](http://codeforces.me/) is a website for _competitive programming_. It holds contests, so-called **Codeforces Rounds**, about every week. This is a python program that parses the sample tests from the contest problem pages. For each problem, it generates the sample input/output files and a shell script to run sample tests. You can also find this article here, [http://codeforces.me/blog/entry/10416](http://codeforces.me/blog/entry/10416) ### Example: `./parse.py contest_number (e.g. ./parse.py 464)` Where `464` is the contest number, not the round number! Check the URL of the contest on your browser, that is the number you are supposed to use. ### Effec...
problem, it generates the sample input/output files and a shell script to run sample tests., slightly different. Fixed some invalid character on input and output causing thescript to crash, /output files and a shell script to run sample tests. You can also find this article here, [http

Full text and comments »

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

41.
By -1e11, 20 months ago, In English
April Fools Day Contest 2025 Editorial ### [2095A &mdash; Piecing It Together](https://codeforces.me/contest/2095/problem/A) Credits: [user:flamestorm,2025-04-01] <spoiler summary="Solution"> If you complete the puzzle, you will get a line of Python code reading $\texttt{print("puzzling")}$. To solve the problem, you just need to print $\texttt{puzzling}$. </spoiler> <spoiler summary="Code (C++)"> ~~~~~ #include <bits/stdc++.h> using namespace std; void solve() { cout << "puzzling\n"; } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); solve(); } ~~~~~ </spoiler> <spoiler summary="Code (Python)"> ~~~~~ print("puzzling") ~~~~~ </spoiler> ### [2095B &mdash; Plinko](https://codeforces.me/contest/2095/problem/B) Credits: [user:AlperenT,2025-04-01] <spoiler summary="Solution"> In this problem you need to drop a ball from a column of your choosing and get it to the green area. With simple analysis (similar to Pascal's triangle), one can notice that best chanc...
quite strange — because some of the characters are in a different script!), ### [2095I — Mysterious Script](https://codeforces.me/contest/2095/problem/I) Credits, Figure 2: Balikon script, Now we know all digits in the Balikon script and how to read them. , Now we need to know how to read the mysterious script. Except weird diagonal attachments which work

Full text and comments »

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

42.
By balllightning37, history, 19 months ago, In English
Every CSES problem can be solved in 44 characters with Python **Do you want to be at the top of a CSES leaderboard? Are you tired of your friends complaining that your code is impossible to read? Do you just want to solve the problem in one line? Here's how.** Step 1: Actually solve the problem. However, you must write a correct solution in Python. It doesn't matter how long your solution is, but make sure everything is an ASCII character. Step 2: Save your solution as "in.py" in the same folder as the following Python script: ~~~~~ f=open('in.py','r') output='exec("".join(chr(len(i)) for i in "' for l in f.readlines(): for ch in l: output+=(" "*ord(ch)) output+=chr(9) output=output[:-1]+'".split(" ")))' f.close() with open('out.py','w') as g: g.write(output) ~~~~~ Step 3: Run the program to produce "out.py". This will run reasonably fast as long as "in.py" isn't as fat as your mom. Step 4: Submit "out.py". Guaranteed to work if your original solution is correct and the output file is not too lar...
Step 2: Save your solution as "in.py" in the same folder as the following Python script:

Full text and comments »

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

43.
By marat.snowbear, history, 11 years ago, In English
Distributed Code Jam test script for Windows I have written a bat script for Windows to automate a bit testing DCJ solutions on multiple examples, putting it here, might be helpful to somebody. I've written it to test C++ solutions but in case you write in other languages you should be able to change it easily. script itself: ~~~~~ echo off set PYTHONPATH=C:\Program Files (x86)\Python27\ set DCJ_PATH=c:/Temp/SP/DistributedCodeJam/dcj/dcj.py cls for %%* in (.) do set TaskName=%%~nx* echo %TaskName% for %%f in ("%TaskName% (*).h") do ( echo ---------------------------- echo %%f copy /y "%%f" %TaskName%.h > NUL copy /y "%%f.out" expected.out > NUL for /F "delims=" %%i in (expected.out) do echo EXPECTED: %%i "%PYTHONPATH%\python.exe" "%DCJ_PATH%" test --source=solution.cpp --nodes=3 ) ~~~~~ There are two path variables on top, don't forget to set them appropriately. Here is an output for sandwich problem: ~~~~~ Sandwich ---------------------------- sandwich (1).h EXPECTED: 14 STDO...
Distributed Code Jam test script for Windows, I have written a bat script for Windows to automate a bit testing DCJ solutions on multiple, That should be it and you should be able to run the script and check all testcases in one run. It, script assumes that all input files have names matching 'PROBLEM NAME (TEST_CASE).h' pattern, to do, script itself:

Full text and comments »

Tags dcj, gcj
  • Vote: I like it
  • +47
  • Vote: I do not like it

44.
By s-sireneva, history, 2 years ago, In English
Bypassing Cloudflare's "bot fight mode", or how I wrote a working JS interpreter in a weekend... ...for fun and absolutely no profit. # Part 0. Introduction It so happened that I haven't written any Codeforces contest in a few months. When I was logging into my account to leave a comment under some post (I ended up not doing that), I noticed something weird:[cut]&#32; `Please wait. Your browser is being checked. It may take a few seconds...` After about half a second, this screen disappeared, and the normal login page showed up. But since I'm maintaining a CLI client for Codeforces, this immediately caught my attention with an intrusive question: did Mike break my client once again? After firing up a shell and trying to login, the answer was clear: yes, he did. # Part 1. "What the heck?" At the first glance, this screen looked suspiciously like the Cloudflare "Checking your browser" screen. This would have been a dead end, as even "professional" scrapers prefer using headless browsers and such instead of relying on "Cloudflare bypasses". The idea of the CLI tool ...
event, then creates an empty invisible iframe and injects into it a script from a string literal, on a piece of code they don't control? Simple, by adding debug prints everywhere! I made ascript, question: did Mike break my client once again? After firing up a shell and trying to login, the, stubs, the script finally worked to an end, and `document.cookie` was set to `"pow=52686_"`., would have reloaded before the server had the chance to serve the challenge script, and so the

Full text and comments »

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

45.
By AlexandruINV, 9 months ago, In English
2026 Codeforces Rating Distribution With Advanced Analytics! Hello, Codeforces ! I'm excited to share my first contribution to the community: a complete analysis of Codeforces rating distributions, as the last one I know about is [this one from 2024](https://codeforces.me/blog/entry/126802). After several days of collecting and processing data through the Codeforces API, I built a set of analytics covering user rating brackets, average time needed to reach specific rating milestones, and other interesting insights about progression on the platform. I’m also looking to build a community around future projects, learning programming, and helping each other improve. No matter your current rank on Codeforces, you’re welcome to join our newly created [Discord server](https://discord.gg/9RJHWfYUw9) ! Now let's get started with the data. I collected information only for users who have participated in at least 6 contests. I also categorized them based on their recent activity: 6 months, 1 year, 3 years, and all time. If interested in what s...

Full text and comments »

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

46.
By galen_colin, 5 years ago, In English
I'm creating the ultimate roadmap (and need your help) **UPD:** Well, it took way longer than expected, but this is finally [out](https://www.youtube.com/watch?v=bSdp2WeyuJY). Thank you (and sorry) to everyone (especially those who did the form) who waited so long to see it come into existence. If you are interested and missed the previous thing, [this](https://www.youtube.com/watch?v=cO98bWxb308) explains what happened. Since I never did an actual roadmap (i.e. a guide) to get good at this stuff (the journey video was more of a story), I’m finally going to create one, and I’m going to try to take a different approach to it. Here’s why it’ll be cool: - Extensiveness. Since I’ve surpassed the grandmaster mark, I can take it all the way to the level of becoming red. So there’ll be something for (almost) everyone. - Segmentation. Every rating range is a bit different. For example, at the early levels, it’s much more important to train basic logic than knowing a variety of topics. Later on, you have to be more well-versed in everything....
through each level, kind of like a master topic list. I’ll add to this by running ascript through

Full text and comments »

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

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

Full text and comments »

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

48.
By cold_chair, history, 18 months ago, In English
An Open-Source Retrieval Model and Service for Competitive Programming Problems Over the past few years, the number of *duplicate* or *nearly-duplicate* problems in competitive programming has grown noticeably. You can find several discussions about this on Codeforces, for example: * [https://codeforces.me/blog/entry/113064](https://codeforces.me/blog/entry/113064) * [https://codeforces.me/blog/entry/113251](https://codeforces.me/blog/entry/113251) * [https://codeforces.me/blog/entry/118883](https://codeforces.me/blog/entry/118883) To address the issue, we collected a variety of data — problem–solution pairs, duplicate-problem pairs, and pairs of full vs. simplified problem statements. With these data we built a dedicated **benchmark for problem retrieval** and trained a **special-purpose retrieval model** that currently achieves the best performance among open-source models in this domain. You can try the model-powered search service live at **[https://cpret.online/](https://cpret.online/)**. About two years ago, the project [yuantiji.ac](http...

Full text and comments »

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

49.
By ExplodingKonjac, history, 4 years ago, In English
A ridiculous user script for codeforces: Emojiforces Emojiforces is a Tampermonkey script written by me. It can add emojis the verdicts of submissions in `status` page making the page more rich and colorful. You can find it on [greasyfork.org](https://greasyfork.org), and here is the [link](https://greasyfork.org/scripts/460448-emojiforces). And some snapshots are given below: ![1.PNG](https://s2.loli.net/2023/02/21/WesLGYOpCVqDEw3.png) *Install it now and start your unforgettable experience in CP with these emojis!* **2023/2/22 UPD**:Emojiforces has been updated to version 0.3. You can now find emojis in more place besides the `status` page. **2023/2/23 UPD**:Version 0.5 has been updated. There will be an emoji "level" of Rating and Contribution in user info card.
A ridiculous user script for codeforces: Emojiforces, Emojiforces is a Tampermonkey script written by me. It can add emojis the verdicts of submissions

Full text and comments »

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

50.
By bicsi, history, 6 years ago, In English
Autotest: Creating test cases by optimization ### https://github.com/bicsi/autotest Hello! For the last two days I have been working on an idea of mine that I had for quite some time but haven't had the time to implement until now. It is a framework for automatic test generation using optimization methods. ### The main point I want to help people that are into problem-setting but might have problems writing generators (or might have little time to do so). I was thinking that, instead of coming up with complicated generators, one might be able to reuse some generic parametric generators for given structures (partitions, graphs, polygons, etc.) and generate tests by focusing on designing a "fitness" function for a given input case. Not only that, but many times while preparing problems I found that I was writing some generators by giving them some free parameters and trying to optimize something for the test, while keeping some randomness (for example, making the output answer as big as possible s.t. the constraints...
command-line argument, instead of failing, the generator 'asks' the script via stdin/stdout what its, interaction with the `autotest.py` script. Populating the `autotest::Param`s is being done via command-line, Then the script optimizes for the sum of absolute differences between the goal metrics given by the

Full text and comments »

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

51.
By oweMeEternity, 11 months ago, In English
A Guide to Debugging Runtime Errors with Compiler Sanitizers We have all been there. You submit your solution, wait anxiously, and then see the dreaded Runtime Error on test 2. Is it an array out-of-bounds index? A signed integer overflow? A null pointer dereference? Usually, you have to stare at your code or add a dozen printf statements to find out. But there is a better way. ![ ](https://i.ibb.co.com/8g1j2NT9/Screenshot-2025-12-25-172753.jpg) ![ ](https://i.ibb.co.com/s9yBm35K/Screenshot-2025-12-25-16503f5.jpg) ![ ](https://i.ibb.co.com/ynHZFnPG/Screenshot-2025-12-25-165035.jpg) By using compiler sanitizers and debug flags, you can make your compiler tell you exactly which line caused the error and why. Here is how to set up a powerful debugging environment on both Linux and Windows. ### For Linux Users Linux makes this incredibly easy with GCC. Instead of your standard compilation command, use the following flags to catch errors at runtime. `g++ -g -O2 -fsanitize=undefined -fsanitize=address -fno-omit-frame-pointer -D_GLIB...
linker expects them. Run this entire block in your MSYS2 UCRT64 shell:, ** _Remember to use **UCRT64** shell for compiler setup steps. You may use CMD / Powershell, Run in MSYS2 UCRT64 shell:

Full text and comments »

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

52.
By chenmark, history, 10 years ago, In English
Rating the Difficulty of Codeforces Problems **Update:** Due to popular request, we created a script for you to generate your own rating profile. For detailed instructions, refer to our [ui page on github](https://github.com/yjiao/codeforces-api/tree/master/ui). We plan to rewrite our code in Javascript to expand functionality, but hopefully this is helpful in the meantime. Please let us know if you have any suggestions! This project was written jointly with [user:yj12,2016-07-28]. Several heuristics exist for finding suitable practice problems on Codeforces. One common piece of advice is to sort all problems by the number of solvers and to work down the list. However, the number of solvers depends on a number of factors, including the recency of the contest, and the date and time the contest was held. Another heuristic is to try to solve problems at a certain level, for instance, all Div. 1 C problems. However, the difficulty of such problems can vary greatly from contest to contest. We decided to create a better measur...
**Update:** Due to popular request, we created a script for you to generate your own rating profile

Full text and comments »

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

53.
By Crysfly, history, 4 months ago, In English
UOJ Prime Round 2026 & UOJ Challenge #1 [UOJ Prime Round 2026](https://uoj.ac/contest/112) will be held at [10:00 AM on Saturday, August 8 (UTC +8)](https://www.timeanddate.com/worldclock/fixedtime.html?iso=20260808T1000&p1=33)! The contest will last for 672 hours (28 days). [UOJ Challenge #1](https://uoj.ac/contest/113) will be held at [10:00 AM on Sunday, August 9 (UTC +8)](https://www.timeanddate.com/worldclock/fixedtime.html?iso=20260809T1000&p1=33)! The contest will also last for 672 hours (28 days). UOJ Prime Round has already been mentioned in a [previous blog post](https://gezhiyuan.blog.uoj.ac/blog/9779). It will bring together problems from on-site contests over the past year that were solved by almost nobody during the contests and have received relatively few post-contest submissions. As for UOJ Challenge, [user:Gellyfish,2026-08-08] happened to have an interesting problem that did not seem to fit particularly well anywhere else, so we thought we might as well release it alongside UOJ Prime Round for eve...

Full text and comments »

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

54.
By low_, history, 4 years ago, In English
[Rated, Prizes!] DYTECHLAB Cup 2022 Round Announcement [Div.1 + Div.2] <img src="/predownloaded/ff/85/ff85322f740c69d9497bd061c096bad892766f13.png" align="right" style="height: 400px;" alt="text"/> > Hello Codeforces. Hoping you're having a wonderful day! ^_^ # DYTECHLAB Cup 2022 This October, we invite you to the **first ever [contest:1737]** that will start on [contest_time:1737]. The problems were prepared by members of our company who _share a passion for Competitive Programming_. It is an open and rated round for both divisions. The round will consist of **7 problems** and will be **150 minutes** long. We wish everyone good luck and have a positive delta! ### Prizes - 1st place: **US$200** cash prize - 2nd place: **US$100** cash prize - 3rd place: **US$50** cash prize Also, we understand that contestants like dope **MERCHANDISE**, so we are giving away lots of them! - **Top 20** will get a merchandise package which will include: a t-shirt **with your Codeforces handle on it**, a notebook, 2 pens, and a sports bag. - **3...

Full text and comments »

Announcement of Dytechlab Cup 2022
  • Vote: I like it
  • +118
  • Vote: I do not like it

55.
By purplesyringa, history, 3 years ago, In English
This one weird trick will speed up your I/O 5x Just do this!! ```cpp #include <iostream> int main() { std::ios_base::sync_with_stdio(false); std::cin.tie(nullptr); // Your code here int n; std::cin >> n; long long sum = 0; for (int i = 0; i < n; i++) { int x; std::cin >> x; sum += x; } std::cout << sum << std::endl; } ``` This will speed up your code so much you won't have to care about spending time in I/O anymore!! Give likez plz :3 [cut] <!-- --> --- Yeah, no. That's not how it works. We're still using `<iostream>`, and that means we have to rely on virtual inheritance and all the deoptimizations that follow from that. Even if you use a random "here's-my-fast-io-library" snippet from Codeforces, you still depend on block-buffered output. (Also, none of those libraries mesh well with floats.) In many cases, more CPU time is spent encoding/decoding numbers than interacting with the file system. Can we do better? ...Yeah, stupid que...

Full text and comments »

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

56.
By SilverTongue1729, history, 11 months ago, In English
Codeforces Profile Preview — Chrome Extension Are you tired of constantly opening new tabs just to check a user's profile? Maybe you're browsing standings or scrolling through comments and want to quickly check a user's **peak rating** or **organization**, or perhaps **add them as a friend**. Introducing **Codeforces Profile Preview** — a seamless way to view user profiles without leaving the page! * * * Profile Preview ------------ ![Profile Preview](/predownloaded/6e/9c/6e9c5980bc366d31f4267f651a7f8380b1ca161b.png) Just hover over any username link on Codeforces, and a detailed profile card will pop up instantly. It displays: * **Rank & Rating** (Current and Peak) * **Profile Picture** * **Contribution** & **Blog Entries** * **Friend Count** & **Last Visit** * **Organization**, **City**, and **Country** Plus, you can **add or remove friends** directly from the preview card without ever leaving the page. * * * Installation ------------ 1. **Chrome Extension:** Install directly from the ...
3. **User Script:** If you prefer Tampermonkey or Violentmonkey, you can install thescript from

Full text and comments »

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

57.
By ATSTNG, history, 20 months ago, In English
Undesired -fpermissive behaviour of CF GCC compilers Apparently $24$ hours without sleep and months of coding in scripting languages had the effect on me... During the contest I submitted this [submission:310073998] _Quick challenge: pause reading and find the bug in my solution_ ![ ](/predownloaded/0e/26/0e2631ab99e8f926b267a2b88710962ea2cf0f7e.png) [Link to original art](https://www.artstation.com/artwork/8elamx) When I found out that I failed a div3D on not properly using `int64_t` I was quite surprised, because I double checked that I did it right. I felt very stupid at first, but then I got surprised even more when I figured how exactly this happened. Take a look at the line $25$ ~~~~~ const& r = cr[i]; ~~~~~ It appears that GCC allows to declare variable references omitting type declaration completely when cv-qualifier is present. Yes, without invoking type deduction using `auto`. To be precise expression in form ~~~~~ <cv-qualifier> &<variable-name> = <value>; ~~~~~ appears to be well-formed an...

Full text and comments »

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

58.
By oweMeEternity, 9 months ago, In English
CF Country Standings — Fresh and Updated [![ ](https://i.ibb.co/93gCGgc8/Screenshot-2026-03-01-040626.png)](https://i.ibb.co/93gCGgc8/Screenshot-2026-03-01-040626.png)<br/> _click to enlarge the image_ ![ ](https://i.ibb.co/JjQJxH4M/Screenshot-2026-03-01-040733.jpg) Now you can add a **“Country Standings”** tab to Codeforces **contest/gym standings** pages. The goal is simple: quickly see how participants from a specific country performed — including **teams** — without manually searching the full standings! #### Key features - **New “Country Standings” tab**: Appears next to the normal standings menu and uses URL mode `?cs=country` to make it ready to share with friends! - **Country filter for both individuals & teams**: Works for solo participants and teams automatically, A team is included if **any member** of the team matches the selected country - **Extra profile info**: Shows **avatar**, **rating pill**, **full name + city**, and **organization/institute** (if present on CF profile) - **Uses Codefo...
####2. Install the **CF Country Standings** script from [here](https://greasyfork.org/en/scripts, . Install the **CF Country Standings** script from [here](https://greasyfork.org/en/scripts/567887-cf, Click on **Install this Script** Click on **Install** Again inside the Tampermonkey tab.

Full text and comments »

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

59.
By Luma, history, 8 years ago, In English
The faster way to submit on Codeforces Hello Codeforces! I made the user script to append the form to submit on Codeforces problem pages. Sorry, this supports only modern browsers like Chrome and Firefox. greasyfork link : https://greasyfork.org/en/scripts/371117-cf-fast-submit ## Install Install UserScript runner like <strong style="color:red">Tampermonk</strong> <strike>and Greasymonkey</strike> to your browser. (Sorry, I couldn't make it work well with Greasymonkey.) Then, open [install link](https://greasyfork.org/scripts/371117-cf-fast-submit/code/cf-fast-submit.user.js) and click install. ## Usage You can use it as you can see it on the submit page's form. ## Specification * Support contest, gym and problemset problem pages. * Problem selection will be auto-selected and disabled. Problem ID is calculated from URL. * This tool gets form from the submit page using Ajax. * This tool never connect the other site. * If we open the submit page right away after the contest starts, we can'...
. This script automatically retry if there's no option. * If 30 minutes left and you submit, this, Hello Codeforces! I made the user script to append the form to submit on Codeforces problem, I made the user script to append the form to submit on Codeforces problem pages.

Full text and comments »

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

60.
By Wandoka, history, 2 years ago, In English
How optimal is your CP setup? Click here and find it out! Recently I thought a lot about optimizing my setup. I don't think it is an important aspect of cp, as it barely affects the performance, but it is fun to think about nonetheless. In this blog, you will be able to determine whether you have an optimal setup or not. I will list the criteria and points you get for satisfying each one of them. In the end, I do the breakdown for different point ranges. I won't include things like **having a monitor** or **having an internet connection**, but I will be including basically everything else that comes to my mind. If you see something missing from the list, let me know in the comments, I will probably update my list then. This blog is mainly made for laughs, but if you are new, you will probably learn something new, even though **it won't help you to increase your rating**. ### You can compile and run your code. - $0$ points: I don't know how to run my code before submitting - $10$ points: I compile my code b...
: I have a script that is able to stress my solutions.

Full text and comments »

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

61.
By agul, 11 years ago, translation, In English
[UPD: 22 July 2020 -- v.1.2] Codeforces Enhancer — Chrome Extension During several years Codeforces users created useful userscripts that collected significant amount of fans. Tonight I merged a couple of popular scripts into one Chrome extension Codeforces Enhancer. Brief description of features: #### Colorize standings by used programming language Based on userscript by [user:yak_ex,2015-06-25] ([http://codeforces.me/blog/entry/1871](http://codeforces.me/blog/entry/1871)). ![ ](http://i1186.photobucket.com/albums/z367/alexander-nsk94/colorizeStandings_old.png) #### Multiple rating graph comparing Based on userscript by [user:yak_ex,2015-06-25] ([http://codeforces.me/blog/entry/1743](http://codeforces.me/blog/entry/1743)). ![ ](http://i1186.photobucket.com/albums/z367/alexander-nsk94/multiGraph_old.png) #### Hiding solved problems in the Problemset Based on userscript by [user:pablo.aguilar,2015-06-25] ([http://codeforces.me/blog/entry/4357](http://codeforces.me/blog/entry/4357)). ![ ](http://i1186.photobucket.com/albums/z367/...

Full text and comments »

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

62.
By yak_ex, 16 years ago, In English
Multiple rating graph with other accounts We can view friend standings and we can view rating history graph for individual. Did you want to view rating history graph with friends? At least, I wanted.<br><br>Rating history graph on Codeforces uses flot jQuery plug-in and the plug-in support multiple data sequences. Therefore such functionality can be easily implemented.&nbsp; If many Codeforces users want, the functionality will be integrated by admin, hopefully.<br><br><p>So, I made <a href="http://yak2.myhome.cx/misc/multi_rating_graph_cf.user.js">user.js script</a>&nbsp;<b>(v1.3 2015/05/05)</b> to show usefulness of the functionality. The latest code is also at <a href="https://github.com/yak1ex/cf_userjs">github</a>. <b>[Updated: v0.02]</b> <u>Y-axis is adjusted when higher rating is shown, and message box appears when data can't be obtained properly.</u> <strong>[Updated: v0.03]</strong> <u>While you log-in, your rating graph appears in any profile page initially.</u> <strong>[Updated: v1.2]</strong> <u>Red dots for the hi...
Please note that this is an experimental script and I am just a newbie for user.jsscript. On my

Full text and comments »

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

63.
By TooNewbie, 8 years ago, In English
How plagiarism checkers are implemented? Let's help CodeForces to find cheaters! Hello, community! I wonder how plagiarism detectors are coded? I think CodeForces only checks for exactly same codes. Maybe it's time for community to help our admins to implement a good and reliable plagiarism detector. Actually, I have some ideas! First of all, following idea does not work for problems with very little amount of code like Div2A or Div2B problems (even some harder ones). The actual point is saving the order of main operations written in the code. By using the word main, I mean we need to ignore lines such as declaring variables or libraries. For example, let's take a code from [this post](https://codeforces.me/blog/entry/65873). <spoiler summary="Code"> ~~~~~ #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; const int N = 3e5 + 5; vector<int> g[N]; int arr[N]; bool good[N]; int freq[N]; int main() { ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0); int n, m; cin >> n >> m; for(int i...
For this code, our script generates this list:

Full text and comments »

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

64.
By snapdragon3101, 7 years ago, In English
CP Editor 5.0 : Submit to codeforces right from CP Editor Check : https://cpeditor.org ================== Hi Guys! CP Editor met Competitive Companion in 3.0, giving it the ability to parse contests from over 30+ online competitive programming websites. Now, with CP Editor 5.0, it met CF tools, a wonderful tool by [user:xalanq,2020-01-09] which can do all most everything in code-forces, even submit solutions. Read more about CF tools in his [blog](https://codeforces.me/blog/entry/66552). *If you are a pro-user and like vim keybindings, using cf-tools on your favorite terminal with tmux would give your more than what CP Editor has to offer but at the same time, it is very time consuming and difficult to setup on windows.* Let's dive into what is new for us in CP Editor 5.0 - **Submit solution to Codeforces from CP Editor**, you don't need to copy or upload your solutions manually. Let CP Editor do it for you with just one button click. This feature requires that you have `cf-tools` installed and you have correctly configured c...
5.10 Now it asks script. Type anything (say "dummy" in this case), 5.11 Not it asks after script. Keep it empty, 5.9 Now it asks before script. Keep it empty

Full text and comments »

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

65.
By purplesyringa, history, 6 years ago, translation, In English
Let's face it, Polygon is horrible ![image](https://i.ibb.co/rs7PwmM/7Cu9Z.jpg) Polygon is not world's greatest evil. Polygon doesn't even have a particular defect that makes it horrible. You can't say what's exactly wrong with Polygon. Polygon seems to work, it seems like every feature is supported, but if you touch it here it will fall apart, and if you touch it there a problem (pun not intended) will appear. Or not, depending on your luck. Polygon is like PHP. For those who haven't read the famous rant, I'll cite it for you: > I can't even say what's wrong with PHP, because-- okay. Imagine you have uh, a toolbox. A set of tools. Looks okay, standard stuff in there. > > You pull out a screwdriver, and you see it's one of those weird tri-headed things. Okay, well, that's not very useful to you, but you guess it comes in handy sometimes. > > You pull out the hammer, but to your dismay, it has the claw part on both sides. Still serviceable though, I mean, you can hit nails with the middle of the head holding it...
Script. You write commands to launch generators there, for example `gen_seq 9901 10000 1 100 > 5

Full text and comments »

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

66.
By PavelKunyavskiy, history, 11 years ago, In English
Commandline tool for polygon Everyone on this site heard about problem preparing tool, maintained by ~MikeMirzayanov,2016-01-16 called [polygon](https://polygon.codeforces.com). It have a lot of advantages, like automatic checks of everything you can imagine. But also, it have several very annoying things. The main one for me is necessity of synchronizing solutions and generators files by hand, between polygon and your local copy. So I had written a tool, which can do it. Tool is published on [github](https://github.com/kunyavskiy/polygon-cli), with instructions how to install it. You are welcome with any new features/suggestions (I'm not knowing python very well, to be honest). Known problems: * Not tested good enough, probably buggy * Installation script working strange. Anyone knowing python better? Any better ways to distribute? * Sometimes lost of session is not detected and script fails with strange non-readable errors. relogin helps * Parsing html pages can be not stable enough with c...
tested good enough, probably buggy * Installation script working strange. Anyone knowing python, * Not tested good enough, probably buggy * Installation script working strange. Anyone knowing

Full text and comments »

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

67.
By -739397, 18 months ago, In English
10x Your CP Workflow: A Smooth Bash Script to Automate Parsing, Testing, Stressing and many more # 10x Your CP Workflow: A Smooth Bash Script to Automate Parsing, Testing, Stressing and many more Hello Codeforces fam, Over the past few months, I've been building and using a personal tool that **completely automates** my competitive programming workflow. From **parsing** problems to **checking solutions**, **stress testing**, **debugging**, and even **validating edge cases** — this tool has made my life 10x easier and smoother. And now, I’m excited to share it with you so that you can boost your productivity! ## What is this tool? It’s a **template-driven Bash script** designed to integrate with [Competitive Companion](https://github.com/jmerle/competitive-companion) and streamline everything — whether you're solving problems on **Codeforces, AtCoder, LeetCode, CodeChef**, or anywhere else. With just one command, you can: - Parse problems - Compile and run code - Switch between fast and debug modes - Stress test using a brute-force checker - Validate solutio...
10x Your CP Workflow: A Smooth Bash Script to Automate Parsing, Testing, Stressing and many more, `dbg(...)` debug prints before submission! The script automatically handles this for you using the, valid outputs for `n = 5`. A validator script can check if the outputted numbers sum to `n`, rather, valid outputs. - ``: Script to generate random test cases. - `, when running the script:, your terminal font. This will make script outputs and prompts look even cooler!, ~/codeforces`). - Start the Script: `cprun --help` Running **cprun --help** displays a detailed, ## How to Use the Script ?, #### 3. Install the Script, - The script will: - Run your solution to produce output. - Run the checker with your, . The script will automatically fetch and save the test cases., > **Note:** > This script is **universal**—you can use it in any terminal, with any editor, on, After installing the script, here’s a comprehensive walkthrough to get you started: #### 1. Run, It’s a **template-driven Bash script** designed to integrate with [Competitive Companion](https, While this script works in **any terminal** and does **not require any specific editor or IDE, script is built for you**., script will prompt you with: > > Do you want to add this test case? (Y/N): > > By choosing, script will save your custom test alongside the parsed samples, and include it automatically in future

Full text and comments »

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

68.
By lattermatter, 2 months ago, In English
ThemeCP Helper Script ThemeCP natively exports a text file with contest information, but it requires a JSON import. The website recommends using AI to perform the conversion, but it can be finicky and is very slow if you have a lot of contests. I GPT-ed a script that takes the text file export and converts it to JSON. Paste the Python code below into an online compiler like [OneCompiler](https://onecompiler.com/python), paste your text file into the input box and run the code to get JSON output. <spoiler summary="Text to JSON ThemeCP"> ~~~~~ import sys import csv import json import io def main(): # Reads the entire content from the 'Stdin' box input_data = sys.stdin.read().strip() if not input_data: print("[]") return # Treat the input string as a file for the CSV reader f = io.StringIO(input_data) reader = csv.DictReader(f) # Configuration for formatting int_fields = { "contest_level", "contestId1", "R1", "contestI...
ThemeCP Helper Script, have a lot of contests. I GPT-ed a script that takes the text file export and converts it to, I GPT-ed a script that takes the text file export and converts it to JSON. Paste the Python code

Full text and comments »

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

69.
By vishalagrawal, 4 years ago, In English
A command-line tool to automate your CP workflow without cluttering your workspace with testcases. Command line tools can efficiently **automate** monotonous and **repetitive tasks** (such as creating source code files, copying boilerplate code, running code on sample testcases, etc.) and make competitive programming more fun. There already **exist various choices** for command line tools in the competitive programming ecosystem like [cpb](https://searleser97.github.io/cpbooster/) and [cf tool](https://github.com/xalanq/cf-tool). The problem with these tools is they follow the **"Flat File Structure" philosophy** in which your source code and testcase files are kept in the same folder to improve the speed of manipulating (creating, updating, deleting) them. This approach causes a mess making it **hard to navigate** between source code files. As changes in testcase are rare, saving a few seconds is manipulating them might not be worth it. ![cpb sample](https://i.imgur.com/pvluMkq.png) CPPT is a cross-platform command-line tool made specifically to address this issue. It **hi...
```shell $ cppt ```, ```shell $ pip install cppt ```

Full text and comments »

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

70.
By VastoLorde95, history, 10 years ago, In English
CFStat: A Python Script for CF Submission Statistics! Hi there. I have written a simple Python script that can do a couple of nifty things: 1. Compare the problems solved by user X but not by user Y 2. Give you a weekly breakdown of your problem solving performance on Codeforces 3. Return a list of all your submissions till a specified point so that you can do your own analyses :) [Screenshot](https://imgur.com/gallery/XGJ2b) Link ------------------ [Github Repo](https://github.com/VastoLorde95/CFStat) How to install ------------------ Pre-requisites: 1. Python 2.7 2. Python Beautiful Soup 4 3. Python requests 4. Python tabulate Once you have the prerequisites installed, simply place the CFStat folder to the directory where you want to write your script. Then in your script use `import CFStat`. Mini-Documentation ------------------ 1. `getSubmissions(user, page_mx, print_flag = False)`: Generates a list of all submissions from the first `page_mx` number of pages made by `user` and prints this list i...
CFStat: A Python Script for CF Submission Statistics!, depending on your internet speed. If your connection is slow then the script might skip some of your, you want to write your script. Then in your script use `import CFStat`., Hi there. I have written a simple Python script that can do a couple of nifty things: 1, I have written a simple Python script that can do a couple of nifty things:

Full text and comments »

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

71.
By DiegoBriaares, history, 6 years ago, In English
Locju — Local Judge for testing your solutions and downloading Codeforces test cases <h1>Locju &mdash; Local Judge</h1> Locju is a console controlled software, minded to test locally solutions to competitive programming problems. <br><br> It allows you to judge a C/C++ code, using sample testcases. Your code can throw Accepted, Wrong Answer, Runtime Error, Time Limit Exceed or Compilation Error as a verdict. Locju also has a test case finder functionality. You must write a generator, correct solution and a validator (if needed) to use this function. What it does, is generate a number of testcases and report the verdict for each of them (by comparing with correct solution output). So you can find those testcases in wich your code fails. Furthermore, it has a functionality to download test cases of a given Codeforces Round. <h3>Index</h3> <ol> <li><a href="#requisites">Requisites</a></li> <li><a href="#installation">Installation</a></li> <li><a href="#usage">Usage</a></li> <li><a href="#techused">Technology Used</a></li> <li><a href="#testing">Te...
-3.9.4 and Shell scripting * BeautifulSoup module is used alongwith requests in

Full text and comments »

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

72.
By mhn2, history, 4 years ago, In English
Template manager scripts for Vim Hello, today in this blog I'm going to share these two vim scripts with you. - The first one will simply just remove the current content of your file and will replace it with your template file. - The second one will allow you to have multiple templates in the same folder and will let you to choose which template to copy. Note that these scripts has only been tested on linux. I don't think they will work on Windows and there is no guaranty that it will work on Mac. ###### Let's start with the simpler script: ~~~~~ fu Template() let tempfile = "/path/to/template.cpp" silent :execute "!cp " . tempfile . " " . expand("%") edit! execute "normal \<c-L>" endf command T :call Template() command Temp :call Template() " map <F12> :call Template() <cr> ~~~~~ So lets explain whats going on: - In the 2nd line we keep the path to the template file in a variable, change it to your template file. - In the 3rd line we execute the `cp` command, this will ...
with the simpler script: ~~~~~ fu Template() let tempfile = "/path/to/template.cpp, ###### Let's start with the simpler script:, ###### Now lets move on to the more complex script:, If you want to use this script just copy it to the end of your vimrc. , Same as the previous script, if you want to use it, just copy it to the end of your vimrc. I, This script is pretty much the same. Just keep these in you mine:

Full text and comments »

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

73.
By nshkaruba, history, 4 years ago, translation, In English
How Sirius and nepotism ruined the biggest Russian olympiad Hello, Codeforces! Yesterday there was an important precedent for the competitive programming: the school stage of the Russian National Olympics in Informatics (I will call it ROI) has completely failed. The testing system could not select the language, it did not test or save submissions during the whole contest, and the organizers had to rewrite the rules right during the Olympiad... The reason for this is not new to our country &mdash; nepotism and incompetence. I was a volunteer at one of the schools where the stage was held, and I can tell you how it all happened. ### The problem with online judges Previously, the school stage was decentralized: each region came up with its own problems and **selected the testing system that was convenient for it**. Sometimes this caused "screw-ups", sometimes there were complaints about the unequal complexity of the problems, but in general the system worked. At some point, Moscow experts decided that this would not work, and last...
As it turns out from the leaked messages, Sirius.Courses — is just a shell over the old

Full text and comments »

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

74.
By marat.snowbear, 12 years ago, In English
Codeforces achievements Hi! I'd like to introduce my project to Codeforces community. My project's name is 'Codeforces achievements' and as you can probably guess it is about achievements! Your achievements on Codeforces site. For those who do not like my long posts I should mention that the link to the site is at the end of this post. Introduction ================== Last summer I left my last job, so I have quite a lot of spare time which I could invest in my hobby. Also I decided to learn something more or less new for me (for last several years my job was to write desktop software for Windows), so I decided to put my hands on some modern popular web-framework. At that point I chosen Python and Django, cause it was matching one position I applied. So I had a time and I wanted to learn Django. The best way to learn something is to practice in it, so I started looking for the idea for the site to create (didn't want to write yet another forum engine). Luckily at that point I ran into [user:I_love_...

Full text and comments »

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

75.
By gojira, 15 months ago, In English
How I vibe coded a programming contests platform Hello old friends! I recently decided to run an experiment: **could I build an entire programming challenges platform using nothing but an AI assistant**? This post covers how that went, what I ended up with, and a few “you can’t make this up” moments along the way. You can check it out [here](https://coding-platform-ochre.vercel.app/) (and solve problems in the ongoing contest) &mdash; feedback is welcome. ## Final architecture * Next.js frontend + backend on Vercel * Supabase Postgres for Users, Contests, Problems (including input/output files), and Submissions * Private GitHub repo for problem development, plus a script to upsert them into the DB * Redis cluster on Redis-Cloud for leaderboards and caching ![ ](/predownloaded/56/31/56318b76c1bd6c9e2566f3485fa603940541baad.png) ## Development anecdotes #### Day 1: instant success → instant disaster July 28. I open Cursor IDE, set it to claude-4-sonnet, and say: “Make me a programming contest site with multiple ...
development, plus a script to upsert them into the DB * Redis cluster on Redis-Cloud for leaderboards

Full text and comments »

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

76.
By pavook, history, 4 years ago, In English
Benchmarks of different segment tree implementations Sometimes I wonder, what implementation of a segment tree to use. Usually, I handwave that some will suit, and that works in most of the cases. But today I decided to back up the choice with some data and I ran benchmarks against 4 implementations: <ul> <li> Simple recursive divide-and-conquer implementation <spoiler summary="Code"> ~~~ struct SimpleRecursiveSegmentTree { unsigned size; private: std::vector<long long> t; void _build(const std::vector<int> &v, unsigned p, unsigned l, unsigned r) { if (r == l + 1) { t[p] = v[l]; return; } unsigned m = (l + r) / 2; _build(v, 2 * p + 1, l, m); _build(v, 2 * p + 2, m, r); t[p] = t[2 * p + 1] + t[2 * p + 2]; } long long _get(unsigned p, unsigned l, unsigned r, unsigned a, unsigned b) const { if (b <= l || r <= a) { return 0LL; } if (a <= l && r <= b) { ...
[Plot-generating Python script ](https://gist.github.com/p4vook/8636aeb68db2119b00fce679d361df6f

Full text and comments »

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

77.
By pani.natalia, 6 years ago, In English
How to become red. 01. Can a gray one become red? The most popular question on Codeforces must be "How to become red". I've just (February 2021) ran a script and discovered that the current number of Codeforces profiles is 323553. Only 1622 profiles have in their history a rating more than 2400. [cut] I should say, not as many reds as I expected. [My script on github.](https://github.com/NataIss/codeforces) I hope you remember that a newcomer used to start with 1500 points. I selected users who fell down to the grey level but did not give up and later became red. Let me introduce these 40 brave guys: - [user:Aleks5d,2021-02-19] min 1195 max 2683 - [user:Ali.Kh,2021-02-19] min 1167 max 2600 - [user:Alpha_Q,2021-02-19] min 999 max 2452 - [user:Arpa,2021-02-19] min 1057 max 2679 - [user:Arthur,2021-02-19] min 1158 max 2592 - [user:Atreus,2021-02-19] min 1134 max 2729 - [user:Bench0310,2021-02-19] min 1158 max 2502 - [user:CTPAX,2021-02-19] min 1188 max 2416 - [user:Danylo99,2021-02-19] min 1195...
) ran a script and discovered that the current number of Codeforces profiles is 323553. Only 1622, I should say, not as many reds as I expected. [My script on github.](https://github.com/NataIss

Full text and comments »

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

78.
By greateric, history, 4 months ago, In English
Useless CP Information #8: Are LGMs Overrated? Alright, clickbait title aside, how do tourist and jiangly get to 4000 rating? In chess, real life ratings cap out at around 2900, and even on online sites like Lichess, [the highest bullet players are 3300-3400, and just around 3000 for the other modes](https://lichess.org/player). Also, anecdotally, if rating is correct, the model predicts that someone who is 2940 should beat me 99.1% of the time. I have a gut feeling I beat more than 0.9% of GMs and LGMs in round 1105 and round 1108. <spoiler summary="Review on rating models if you forgot"> Rating represents win probability. In a match, for every 400 points player A is rated higher than player B, player A is 10 times more likely to win (exponentially). - If player A is rated 400 points higher than player B, then out of 11 games, player A should win 10 and player B should win 1. - If player A is rated 800 points higher than player B, then out of 101 games, player A should win 100 and player B should win 1. This can be ...
Take a real life example with $n = 30{,}000$. I asked ChatGPT to write a python script to do FFT

Full text and comments »

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

79.
By Aksenov239, history, 11 years ago, In English
ACM ICPC World Finals Stream Hi, everybody. We would like you to join Live broadcast from ACM ICPC World Finals 2016. The broadcast will start at [8-00 ICT 19 May 2016](http://www.timeanddate.com/worldclock/fixedtime.html?msg=Dress+Rehearsal+Broadcast&iso=20160519T08&p1=1230&ah=7), while the contest will start at [9-30 ICT](http://www.timeanddate.com/worldclock/fixedtime.html?msg=Dress+Rehearsal+Broadcast&iso=20160518T0930&p1=1230&ah=7). get more statistics afterwards. The broadcast consists of two parts: - Main broadcast with comments from our analytic [user:Egor,2016-05-17]. There will be presented all information about the contest, interviews and other interesting videos! Broadcast will be available in [youtube](https://www.youtube.com/watch?v=kIbgLrquTx4) and [twitch](http://twitch.tv/icpclive1). - Additional broadcast with videos from teams screens and web-cameras. This year you can influence what teams will be shown. For that, you should send the tweet in twitter, which contains #ICPC2016 and h...
- Script and beverages: [user:lperovskaya,2016-05-17].

Full text and comments »

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

80.
By bicsi, history, 6 years ago, In English
Automatic pre-compiler for submitting tasks on Codeforces Hello! After seeing the recent hype towards debugging utils and code snippets usage and what not, and due to the fact that I had 30 minutes of free time to spend this afternoon, I decided to write a small Python script that pre-compiles multiple files into one big file for Codeforces submission. The tool is here: https://pastebin.com/c4dS4Pik (Python 3 required) Basically the tool does these steps: - remove the ``#include <bla>`` lines from the code - run the GCC preprocessor on the code - add the ``#include <bla>`` lines back - run some cleanup routine (optional) In order to use this script, copy it somewhere (preferably in your PATH directory), and run it using: ``/path/to/scr.py file.cpp [ARGS]`` The ``ARGS`` are similar to the ones you would give to your ``g++`` command. For example, let's say we have three files: <spoiler summary="FILE: debug.hpp"> ``` #pragma once #ifdef DEBUG int recur_depth = 0; #define dbg(x) {++recur_depth; auto x_=x; --r...
Python script that pre-compiles multiple files into one big file for Codeforces submission., In order to use this script, copy it somewhere (preferably in your PATH directory), and run it

Full text and comments »

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

81.
By ismailfateen, 11 months ago, In English
ICPC WF 2026 Team List Hello Codeforces, Earlier this month, the ACPC (African and Arab Collegiate Programming Championship) concluded, determining the teams qualified for the ICPC World Finals from our region. I decided to write a blog post to gather the full team list somewhere (yes, I know this is very early and most championships are still in March, but I'm so excited anyway, and I already had the script for the ACPC list, so why not!) To add your team to the list, please comment these details: - Your region - Your country - Your university - Your team name - Team members' handles Wish everyone the best of luck in preparing for the ICPC, and can't wait to meet you all! <h2>Northern Eurasia</h2> <table> <tr> <th>Country</th> <th>University</th> <th>Team Name</th> <th>Member 1</th> <th>Member 2</th> <th>Member 3</th> <th>Team Rating</th> </tr> <tr> <td>Russia</td> <td>HSE University</td> <td>FFTilted</td> <td><a href="https://codeforces.me/profile/teraqqq" style="color...
script for the ACPC list, so why not!)

Full text and comments »

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

82.
By yak_ex, 16 years ago, In English
Colorize standings by used programming language <p>This is my second user.js script for Codeforces. If you install <a href="http://yak2.myhome.cx/misc/colorize_standings_cf.user.js">this script</a> <strong>(Updated: 1.6: 2015/05/05)</strong>, you can see standings like as follows:</p><p align="center"><img src="http://yak2.myhome.cx/misc/colorize_standings.png" /></p><p>You need to wait for seconds until standings are colorized. The order and decoration are set by my arbitrary feeling. If you want to change them, please edit the script directly. It is quite easy. The latest code is also at <a href="https://github.com/yak1ex/cf_userjs">github</a>.</p><p>On my environment, the user.js script works with the following browser:</p><ul><li>Firefox 3.6.17 with Greasemonkey 0.9.2</li><li>Opera 11.10</li><li>Chrome 12.0 (This is a development version but I think stable versions also work as well.)</li></ul><p><strong>Updated</strong><strong> (0.02):</strong></p><p>Now this script is applicable for division-specific standings and room standin...
Now this script is applicable for division-specific standings and room standings. For room , On my environment, the user.js script works with the following browser: , This is my second user.js script for Codeforces. If you install , my arbitrary feeling. If you want to change them, please edit the script directly. It is quite easy

Full text and comments »

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

83.
By Golovanov399, history, 8 years ago, In English
A script for background-monitoring atcoder contest standings Hi everyone. Some time ago I've written a script which notifies user about fresh changes in the standings during an atcoder contest (under some reasons, one but not the only of them being the last agc, I recalled it just today). More precisely, you set the contest name and a constant $k$ (5 by default), and you get a notification for each of the first $k$ accepted submissions on each problem in the contest. This is how it looks in my laptop (I've run it after the contest finished, so that's why there are a lot of notifications): ![ ](/predownloaded/73/55/73550ef030e19774347c1ead05885fdcb22626ad.png) Some details: * The script can be downloaded [here](https://github.com/Golovanov399/stuff/tree/master/agc_watcher). Run `python qwe.py -h` for help. * I use `notify-send` to notify, so one must have this utility to run this script. This can be replaced by your own way, though (change the line 43 in `qwe.py`). * I cannot surely determine the task letter by its code (maybe i...
A script for background-monitoring atcoder contest standings, * I use `notify-send` to notify, so one must have this utility to run this script. This can be, * The script can be downloaded [here](https://github.com/Golovanov399/stuff/tree/master/agc_watcher, Hi everyone. Some time ago I've written a script which notifies user about fresh changes in the, Some time ago I've written a script which notifies user about fresh changes in the standings during

Full text and comments »

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

84.
By codemastercpp, history, 5 years ago, In English
Reconstructing Old A2oj Ladders with new problems Hello CF, UPD: Sorry for necropost(?), but I had a lot of DMs about website being down, so I've updated it. But the old link is invalid now, and it is hosted at: https://c2-ladders-juol.onrender.com Thnx ------------------------------------------------------------------------------------------------------------------------------ I've seen a lot of people say very good things about a2oj ladders but I never used it because the problems in it are very old, as it was constructed by [user:ahmed_aly,2022-02-13] 4-5 years ago, so I decided to try to recreate the ladders with updated data of codeforces, especially because nowadays CF is quite ad-hoc (and I like it:D). I mostly followed the same procedure as described [here](https://codeforces.me/blog/entry/47442), with some little changes, one of them being not having 800 rated problem in 1500 ladders, these ladders are based on problem rating. You can visit the website here https://c2-ladders.com If you want to learn ...
Script: https://github.com/prince776/scripts-yt/tree/master/ladder, The website and the script both are open sources, feel free to make a PR if you want some change or

Full text and comments »

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

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

Full text and comments »

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

86.
By riadwaw, 7 years ago, In English
Using your own library on codeforces in 0 clicks In my opinion it's not interesting part of the contest to write algorithms you have already written dozens of times. I kind of see why people who prepare to IOI/ICPC would do that, but not other participants. So I created yet another tool that allows to use your own library locally and submit to CodeForces. Idea is that you write in one file, then submit another file and you don't need to do any other action to actually generate file to submit (once everything is configured) ##Demo <iframe width="560" height="315" src="https://www.youtube.com/embed/iUMgmGK8-xc" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> The tool consists of two independent parts [inline_includes](https://github.com/AlexeyDmitriev/inline_includes): this is a simple python script that inlines all the includes you used from whitelist of directories (so that standard headers such as <vector> are not inlined). It's far from suppo...
script that inlines all the includes you used from whitelist of directories (so that standard headers

Full text and comments »

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

87.
By saliii, history, 10 years ago, In English
Codeforces Round #411 Editorial We were waiting several weeks to setting this contest and hope the problem was good enough. #### Events There was a difficulty with [problem:805E]/[problem:804C]. A little bug in the checker fortunately yields accepting an incorrect solution of only one person during the contest. I should apologize all of you because of this. For this sentence, `Vertices which have the i-th (1 ≤ i ≤ m) type of ice cream form a connected subgraph.` You can find the meaning of "connected subgraph" with [connected](http://mathworld.wolfram.com/ConnectedGraph.html) and [subgraph](http://www.edmath.org/MATtours/discrete/concepts/csubgr.html), thus it can be empty as it is more logical. How ever, I should apologize all of the participants because of weak sample tests in the statement. I will write the full editorial in the few next days, now some hints and short solutions exist here. Hints ------------------ [problem:805A] <spoiler summary="hint1"> Almost half of numbers are divisible by two...
$The\ pitcher,\ the\ eye\ of\ the\ covetous,\ never\ becomes\ full:\ the\ oyster-shell\ is\ not

Full text and comments »

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

88.
By Agnimandur, history, 5 years ago, In English
April Fools Day Contest 2022 Editorial All problems were created and prepared by me and [user:magnus.hegdahl,2022-04-01]. Thanks to [user:BucketPotato,2022-04-01], [user:Monogon,2022-04-01], and [user:Priyam2k,2022-04-01] for valuable feedback and testing. Special thanks to [user:MikeMirzayanov,2022-04-01] for coming up with the idea and preparing the unique checker for [problem:1663H]. I hope you enjoyed the contest, and found it to be an interesting series of puzzles. Example solution code written by [user:Agnimandur,2022-04-01] is provided for each problem. ### [problem:1663A] <spoiler summary="Clue 1"> The problem statement is the title of the problem. </spoiler> <spoiler summary="Clue 2"> Re-read the original announcement blog. </spoiler> <spoiler summary="Solution"> If you carefully read [the announcement blog](https://codeforces.me/blog/entry/101364), you will notice that I especially thanked [user:BucketPotato,2022-04-01] for testing. Just print "BucketPotato". </spoiler> <spoiler summary=...
. Perhaps you can find ``esoteric``, ``java``, and ``script`` (hints for problem G). You might be

Full text and comments »

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

89.
By Amir_Parsa, 3 years ago, In English
Gym contests rating system! Hello, Codeforces! First of all huge thanks to Dhruvil [user:psychotic_d,2023-06-25] Kakadiya for developing this great tool to help us growing our community. Since many people like to see their unofficial rating changes in the contests they participate in gym, our team has developed a website that updates the rating of anyone who participates in our [series of gym contests](https://codeforces.me/group/XrvsTsJWMb/contests). What is TheForces? ------------------ [TheForces](https://discord.gg/h9N2vGmwep) rounds are series of unofficial gym contests which are created by a group of CP lovers in the CF community with the purpose of contributing the Competitive Programming community. What do you mean by rating changes? ------------------ From now on, You can see your performance and rating changes after each [TheForces](https://codeforces.me/group/XrvsTsJWMb/contests) round on https://theforces.netlify.app. ![Preview of the leaderboard]((https://img1.imgtp.com/2023/06/2...
://codeforces.com/blog/entry/117421)). He let me use his graph generating-script for this tool. Orz!

Full text and comments »

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

90.
By 7oSkaaa, 7 months ago, In English
Polygon Problems Generator — A Multi-Agent Pipeline for Generating Complete Polygon-Ready Problems Hello Codeforces! I want to share an update to an open-source project I've been building: a multi-agent AI pipeline that generates **complete, Polygon-ready competitive programming problems from scratch** — statement, tutorial, validator, checker, solutions (two ACCs, TLE, WA), test generator, and interactor — then **checks them locally** and **uploads them to Polygon**. → **GitHub:** [https://github.com/7oSkaaa/polygon-problems-generator](https://github.com/7oSkaaa/polygon-problems-generator) --- ## The problem Setting a proper problem for a contest takes a lot of time, even when you already know the idea: - Writing a clean LaTeX statement in Polygon style - Writing a bulletproof `testlib.h` validator (and validator tests) - Choosing or writing the right checker - Writing an accepted solution, a second ACC with a different approach, a TLE brute, and a WA solution - Writing a generator with a complete FreeMarker script and real min/max tests - Reviewing everythin...
/ TL / WA), generator + script, validator tests, tags; then commits and builds the package., -script / invocations loop. Polyman is still the right tool if you want a full local Polygon-like, The FreeMarker script **must** hit min and max for every variable (`-n` / `-k` exact-value flags, `, `acc_alt.cpp`, `brute.cpp`, `wa.cpp` | | `generator-agent` | `generator.cpp` + FreeMarkerscript

Full text and comments »

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

91.
By ArtDitel, history, 9 years ago, translation, In English
AIM Tech Mini Marathon 1 Hey Codeforces! ![ ](/predownloaded/37/f3/37f33e02b6220a02b1c61b24d92a72828d9b5f55.png) We’d like to invite you to take part in our **AIM Tech Mini Marathon 1** to be held [this Thursday on the 1st of February at 7 pm MSK](https://www.timeanddate.com/worldclock/fixedtime.html?day=1&month=2&year=2018&hour=19&min=0&sec=0&p1=166). This is **unrated competition**. All the participants will be challenged with only one problem, which doesn’t have a fast and full solution and 3 hours to solve it. Solutions will be evaluated independently on each test. The exact formula of points per test will be given in the problem statement. The score for the contest is a sum of scores for each test. You can participate in contest as a team, 3 members maximum. **All the tests will be released at the very beginning of the competition**. They will be used both for preliminary and final testing. You will be also provided with a checker and a visualizer, written in Python3. You can find environme...
MacOs. To check that everything works properly create a script file `test.py`:

Full text and comments »

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

92.
By GreatShinobiOwl, history, 2 months ago, In English
Polyman v3: Let an AI Agent Build Your Problem (and Test It Before Polygon Sees It) About ten months ago, [Stop Fighting with Polygon — Create and Test Problems Locally] (https://codeforces.me/blog/entry/148803) was written. It introduced **Polyman**, a CLI for problem setters. You write the validator, generators, checker, and solutions on your own machine. One command, `polyman verify`, generates every test, validates it, and checks that every solution gets the verdict it should. Then `polyman remote push` sends the whole thing to Polygon. Thank you for the upvotes, the issues and the pull requests. A lot has changed since then, so here is what's new. **Upgrade:** ``` npm install -g polyman-cli@latest polyman --version # 3.0.0 ``` There is one breaking change in how generator scripts are written. See **Migrating from v2** at the end; it takes about two minutes. --- ## 1. Polyman is now built for AI agents This is the biggest change. More and more of us write code together with Claude Code, Codex, Cursor or Aider. A problem package is a good...
message. - **Generator names are mapped.** A script line uses the name from `Config.json`, while, - **Ahmad-Faraj** built the compile cache. - **Gustavo-Harnisch** fixed shell -safe paths, In v2 the generator script was a JSON `commands` array in `Config.json`, which Polyman translated

Full text and comments »

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

93.
By kostka, 12 years ago, In English
Hack me! — Year 2014 in review! (part 1.) Hey there! Since new year is coming, I want to start little summing-up of the ending one (of course we still talk about hacks :)). I wrote another short script, which purpose was to summarize all hacks in the 2014. I wanted to upload it after two last rounds, but mostly because of little differences (especially between first and second place), I did it before last rounds. Maybe the next rounds will be more exciting because of it. Below there is a list of 50 best hackers in this year <s>(so far)</s>, the full list can be found [here](http://test.weaselcrow.com/pro/cf/hack2014/). <strong>Update: </strong> After last round, the ranking was updated. The last round was decisive: [user:mosiomohsen,2014-12-31] made 5 successful hacks and 1 unsuccessful and with 450 points, he managed to surpass [user:anta,2014-12-31]. Congratulations! [cut] <div></div> rank | handle | points | best rounds | accuracy | :---:|:---:|:---:|:---:| 1 | [user:mosiomohsen,2014-12-31] | 8...
I wrote another short script, which purpose was to summarize all hacks in the 2014. I wanted to

Full text and comments »

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

94.
By MikeMirzayanov, 13 years ago, translation, In English
Codeforces: Results of 2013 Hello! Do you feel the breath of New Year? <img src="http://assets.codeforces.com/images/tree.png" style="float:right;margin: 0 1em 1em 1em;"/> The clock shows a day before New Year, so it is time to sum up the past. I do not have speech-writers for words in the style of "what recently seemed almost impossible, it becomes a fact of life" so I'll be short. Thank you all! Your unfading interest and constant help inspire Codeforces team for new achievements! Brilliant writers, invisible soldiers: testers, tireless and greedy for knowledge participants &mdash; all of you help Codeforces do better! I've dug into the records and made a partial list of the most notable major improvements of 2013. Some large improvements of our infrastructure are not in the list, as the community can not see them directly. * A simple way to add contest from [Polygon](https://polygon.codeforces.com/) to Codeforces::Gym. * Drafts embedded in text form fields in Codeforces and Polygon. * Multipl...

Full text and comments »

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

95.
By tatianyi, history, 3 years ago, In English
Strange TLE by cin using GNU C++20 (64)...Again? _This time_, [user:Auroraa_,2024-05-17] is solving [problem:524E]. After some trial, he got <spoiler summary="this code"> ```c++ // Code written by Auroraa_ #include "bits/stdc++.h" using namespace std; #define endl '\n' const int N = 2e5 + 5; #define ls (p<<1) #define rs ((p<<1)|1) #define mid ((l+r)>>1) struct Seg { int l, r; int mn; }seg[4 * N]; void build(int p, int l, int r) { seg[p].l = l, seg[p].r = r; seg[p].mn = 0; if (l == r)return; build(ls, l, mid); build(rs, mid + 1, r); } void upd(int p, int x, int y) { int l = seg[p].l, r = seg[p].r; if (l == r) { seg[p].mn = y; return; } if (x <= mid)upd(ls, x, y); else upd(rs, x, y); seg[p].mn = min(seg[ls].mn, seg[rs].mn); } int ask(int p, int x, int y) { int l = seg[p].l, r = seg[p].r; if (x <= l && y >= r)return seg[p].mn; int ans = 1000000; if (x <= mid)ans = min(ans, ask(ls, x, y)); if (y > mid)ans = min(ans, ask(rs, x, y)); return ans; } int ans[N]; struct...
**Even MSVC would also encounter this if using the combined bomb-finder script aforementioned, However, when I translate the script to C++:, I used the same script aforementioned to test Clang-cl/MSC++, and every time I run the compiled, So, what about its result for the script and the bomb test with its **native** GCC?, The result is pretty neat! On my computer, the script outputs something only if I switch `if

Full text and comments »

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

96.
By THE_FOOL_ON_THE_GREY_FOG, history, 9 months ago, In English
Bahnasy Tree [cut] ** بسم الله والحمدلله والصلاة والسلام على رسول الله ** Bahnasy Tree ================== **GitHub Repository:** [Bahnasy-Tree](https://github.com/Mostafa-Bahnasy/Bahnasy-Tree) Bahnasy Tree is a dynamic tree that represents a **sequence of length $N$** (positions $1..N$). It is controlled by two parameters: - $T$ ( **threshold** ): the maximum fanout a node is allowed to have before we consider it "too wide". - $S$ ( **split factor** ): used when splitting; computed from the node size using the smallest prime factor (SPF). If $S > T$, we fallback to $S = 2$. The tree supports the usual sequence operations (find by index, insert, delete) and can be extended to support range query / range update by storing aggregates (sum, min, etc.) and optionally using lazy propagation. --- ## 1) Node meaning and the main invariant Each node represents a contiguous block of the sequence. If a node represents a block of length `sz`, then its children partition this block into...

Full text and comments »

97.
By Nickolas, 11 years ago, translation, In English
VK Cup 2016 Wild Card Round 1: editorial All solutions use the same verb definitions to read and write data as the example: ~~~ print =: 1!:2&2 read =: 1!:1[3 ~~~ Besides, the scripts have to end with verb exit ''. #### [problem:640A] As usual, the first problem tests competitor's ability to do basic arithmetics. Even in a language so unusual as J arithmetic verbs look pretty standard. Well, except for the fact that in absence of brackets operations are performed right-to-left, without any operator precedence, and division is denoted with %. [cut] Verb [".](http://code.jsoftware.com/wiki/Vocabulary/quotedot#dyadic) converts a string to a number or an array of numbers. ~~~ n =. ". (read-.LF)-.CR print 1 + (n * (n + 1)) % 2 ~~~ #### [problem:640B] This problem hints the competitors that J also has common imperative constructs for loops and conditional execution. In this case it's convenient to use [select. case. do.](http://www.jsoftware.com/help/dictionary/csel.htm). ~~~ month =. (read-.LF)-.CR...

Full text and comments »

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

98.
By pakhandi, 12 years ago, In English
Buggy — Batch-Test for CodeForces : V.2.2 (Windows & Linux) Hey programmers,<br> I have been working on a project lately and finally, after lots of testing and stuff (it's difficult to manage college, semester exams and also work on a project alone here in India) I would like to share with you people, **Buggy**. **Buggy** is a Sublime-Text plugin for CodeForces (for Windows). It can parse all the test-cases for a single round in nice folder system and allows you to run your code on all the test cases. It also allows you to run your program on custom-test-cases. The plug-in has been developed as a personal project, so it is not as refined as you may find some better plug-ins, but since I couldn't find any plug-in for Sublime-Text, I developed one. ### Windows : Here is the download link : [Buggy &mdash; V.2.2](https://github.com/pakhandi/Buggy---Windows/archive/V.2.2.zip)<br> Here is the release : [Buggy Release and ReadMe File](https://github.com/pakhandi/Buggy---Windows/releases/tag/V.2.2) <br> ### Linux : Here is the download lin...
/sublime-text-3/Packages/User/ - Make sure proper execution permission is given to ini andshell

Full text and comments »

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

99.
By vishalagrawal, 5 years ago, In English
UserScript to toggle on/off problem tags from the problem page itself. Problem tags could spoil a problem, so chances are you like to keep the problem tags switched off. Even so, you would probably like to know about the problem difficulty (or rating) or sometimes have a quick look at the tags and retry a problem before moving on to the editorial. It could be very tedious to go to your profile and change the settings to enable the tags, then after you finish your work, switch it off again. This extension can solve both of the issues for you. ![ ](https://i.imgur.com/daz3n3Q.png) <br>When tags are hidden ![ ](https://i.imgur.com/z6IbAFt.png) <br>After you click on the button Download Instructions :- 1. Download an user script manager like [Tamper Monkey](https://www.tampermonkey.net/). 2. Download the script from my [Github Repo](https://github.com/vishalagrawal22/tag-hider-codeforces). 3. **Switch off** "show tags for unsolved problems". <spoiler summary="What is the extension doing behind the scenes"> **Problem:** Sim...
tags does not work due to the lag in loading of script, tags are exposed for a while., 1. Download an user script manager like [Tamper Monkey](https://www.tampermonkey.net/)., 2. Download the script from my [Github Repo](https://github.com/vishalagrawal22/tag-hider, If you already have the script installed, you can update it from the same link provided above.

Full text and comments »

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

100.
By prophet_, history, 6 years ago, In English
Critical Bug in Codeforces: Broken AES encryption results in 403 Forbidden Error. (Solution) After investigating an issue resulting in a 403 error when trying to access codeforces as described in this blog: https://codeforces.me/blog/entry/80065 I believe I have found the issue and the solution. Codeforces uses a "slow aes" decryption function to require users to perform a non-trivial amount of computational work before they can access the site, presumably to protect against malicious users spamming the server. A parameter is given based on the user's IP address and the user must decrypt using this to generate a RCPC token in order to access the site. Those experiencing the 403 error likely are victims of a bug that causes the last 2 characters (last byte in binary) to be deleted. You can confirm this by checking your RCPC token in your cookies. This token should be 32 characters, but is only 30 if you experience this bug. The aes javascript implementation is from here: https://codeforces.me/aes.min.js I believe the issue is with the function "unpadBytesOut"....
UPD: I have written an ad hoc script that may serve as a potential foundation for fixing various cf

Full text and comments »

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

101.
By prophet_, 6 years ago, In English
Foundation for fixing various CF tools broken by recent security update (Solution) **UPD: The RCPC token wall seems to have been removed. As of the time of this update, no additional security check is needed to access codeforces. Hence this script has been rendered obsolete by this change, and you will receive an error message if you attempt to run it.** As a result of a recent security update, many codeforces tools have been broken. In short, in order to access codeforces, a token is now required, which is decoded by the browser through a javascript implementation of AES. I have explained the specifics of this in my previous blog: https://codeforces.me/blog/entry/80070. The token is different based on your IP address, and must be sent as a cookie with all requests to codeforces. Failing to do so will result in codeforces responding with a redirect page, containing the encrypted cipher token. I have written an ad hoc script to decode this token using python. https://github.com/great-prophet/adhoc_cf_rcpc_token_decoder This script makes a request to co...
Disclaimer: My current script is very very hacky and may be broken by future changes. However I, I have written an ad hoc script to decode this token using python.

Full text and comments »

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

102.
By ATSTNG, history, 3 years ago, In English
About Codeforces and Polygon functionality I would like to ask about certain features in problemsetting with CF and Polygon that I was not able to figure out how to use (or not even sure if they are supported at all). Probably some of them deserve feature requests. #### SVG images in problem statements Scalable Vector Graphics is a nice format to draw simple images and schemes that can be very lightweight and can be intergated directly into HTML page. Now if you include SVG image with `\includegraphics[scale=1]{a.svg}` it will be substituted with PNG version of the image in HTML and will fail to build PDF with `LaTeX Error: Cannot determine size of graphic in a.svg (no BoundingBox).` What am I doing wrong? #### Animated GIFs in problem statements Providing animated example is a great way to explain processes that are described in the problem. Providing an external link to GIF feels somewhat inconvenient. Now if you include animated GIF with `\includegraphics[scale=1]{s.gif}` it tries to subs...
Yes, an ability to include user-written JS script can be a serious security issue, but in some way

Full text and comments »

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

103.
By SirRogue, history, 6 months ago, In English
tampermonkey script for automatically filling codeforces problem identifier Hello Codeforces community, I noticed that when opening a problem from the problemset page, then going to the submit page, you usually have to manually type the problem identifier each time unless you entered through the contest page, so I made a Tampermonkey script that parses the current problem URL, stores the identifier, and automatically fills it into the submit form. :D (Note that you do need TamperMonkey installed, link to that [here](https://chromewebstore.google.com/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en).$\newline$ <spoiler summary="TamperMonkey Code"> ~~~~~ // ==UserScript== // @name Codeforces Problem Submit Helper // @namespace http://tampermonkey.net/ // @version 1.0 // @description Fetches the current Codeforces URL, and parses it for the problem identifier and automatically puts it in the field that asks for it. // @author SirRogue // @match *://codeforces.com/* // @match *://www.codeforces.com/...
tampermonkey script for automatically filling codeforces problem identifier, contest page, so I made a Tampermonkey script that parses the current problem URL, stores the identifier, you entered through the contest page, so I made a Tampermonkey script that parses the current

Full text and comments »

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

104.
By DmitriyH, 13 years ago, translation, In English
Thanks to everyone! There were two reasons, prompted me to begin round statistics acquiring:<br/> 1) it was interesting to know failed solution percentage <br/> 2) it was interesting to study **javascript** + **DOM** + **Chrome Extension** and develop something using it <br/> <br/> It was a new tool for me, and after samples & forums reading, the [First Post](/blog/entry/9858) was created. <br/> After the first three hours, it's score was **-7**. Am I the only one, who is interested to know failed solution percentage?<br/> 24 hours later, I got the answer for the question: no, not the only one ( **+123** ).<br/> <br/> Thanks to your support, comments and suggestions, the statistics progressed from round to round.<br/> My Javascript-skill was increased from "Below Hello World!" to "Above Hello World!". Your upvotes maked me develop new features and fix spotted bugs.<br/> Even after [First Post with Graphs](/blog/entry/9926) was estimated positively, I could not even imagine about getting to the T...

Full text and comments »

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

105.
By abdude824, history, 5 years ago, In English
Object Oriented Programming Notes(C++) OOPs are actually very simple but we can have some difficult questions on OOPs as well. We will first have short notes of theory(which can be asked in form of questions) and then shift to questions. I am refering E balaguruswamy book for this. These are short notes and may miss something, if you think something is missing please comment. Also, we would be using this track: 1. Introduction to classes and objects 2. Constructors and Destructors 3. Operator Overloading 4. Inheritance 5. Polymorphism > We will be discussing major topics here and actually difficult ones. **You must know basic OOPs**. ### Introduction <spoiler summary="C structures Vs C++ Classes"> We know structures can be used to create user-defined data types in C and C++. But then why we need classes? We can have functions, constructors, etc in structures as well but what differentiates it from classes are lack of abstraction and inheritance(And actually many other things as well). We can hide certain...

Full text and comments »

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

106.
By xuanquang1999, history, 7 years ago, In English
Generators with testlib.h What are generators? -------------------- Generators are helper programs that output test. Most programming task usually has a large input (for example, an array of up to $2 * 10^5$ elements, a tree of up to $10^5$ vertices), so it's not possible to add all the tests manually. In these cases, generators come to the rescue. If you are writing a generator in C++, it is recommended to use the [testlib.h](https://github.com/MikeMirzayanov/testlib) library. Types of generators ------------------- There are two types of generators: 1. **Single-test generator:** output exactly one test in a single run. Usually, to generate several tests, one must run the generator several times with different command line parameters. Such generators output the test to the standard output stream (to the screen). 2. **Multiple-test generator:** output many tests in a single run. Such generators output tests to files (one file for each test). An example single-test generator with testlib.h -...
something like `multigen a b c > {4-10}` in the script (if it is assumed that starting the multiple-test

Full text and comments »

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

107.
By Fefer_Ivan, 13 years ago, translation, In English
New feature of Polygon: tests for checkers and validators Good afternoon, Codeforces! Today I'll tell you about a new feature of [Polygon](http://codecenter.sgu.ru/polygon/) system, which is used to prepare all Codeforces rounds. Of course the system is open to any user – many contests for other competitions and training camps are prepared there. Two key elements of a problem, besides the author's solution, tests and statements, are two programs: the validator and the checker. The validator is the program that reads the test and reports whether it corresponds to the condition of a problem or not. Validators must be absolutely formal – a validator validates a test if and only if it meets the conditions of the problem and can be safely added to the test set. You can easily write validators using the <a href="http://code.google.com/p/testlib">testlib.h</a> library. Sometimes authors neglect validators (which never happens during the Codeforces contests) and it threatens the validity of tests. Since the Codeforces contests contain hacks,...

Full text and comments »

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

108.
By MikeMirzayanov, 10 years ago, translation, In English
Black Day of Polygon: 02.06.2016 Today, June 2, 2016 year, there was a technical failure, which I will remember for a long time. Several factors led to a serious malfunction of the Polygon system. The fact that in the middle of May Polygon was transferred to servers located in Mail.Ru data centers. To transfer with almost no downtime (Polygon has a lot of data, about a terabyte) lsyncd utility has been used, which quickly pushed the file changes from the old server to the new one. Today there was a reboot of the old server, which forced the unplanned start of lsyncd daemon. As a result it did the synchronization of data from the old server to the new again. So, data stored in the file system have been rolled back to the transfer time (May 13). The most unlucky fast that, unlike the old server where the backups system was set up well and reliable, on the new server, I quickly managed to set up only replication using the same lsyncd, which does not help in the incident of files deletion (as it forces the removals ...

Full text and comments »

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

109.
By cfalas, history, 7 years ago, In English
IOI vs CF performance: 2019 edition In response to blogs such as [this](https://codeforces.me/blog/entry/57700) and [this](https://codeforces.me/blog/entry/66211), I have made a similar graph for IOI 2019. I was interested in finding how I could expect to do if I qualified, and the only metric I have at the time is CF rating (since there isn't anywhere to submit the problems as of now) <spoiler summary="Spoiler"> not really, I was just bored of solving some more old OI problems. </spoiler> <spoiler summary="Spoiler 2"> I, wanted to post this before ratings change and I become pupil once again, so I had to do the extra effort of not only scraping stats.ioinformatics.org, but also ranking.ioi2019.az, since stats.ioinformatics.org didn't update to include the results of the contest. Edit: I forgot to post it last night, so I am green :( </spoiler> So, here it is: ![ ](https://i.ibb.co/f47cwFB/Figure-1.png) Here are some things to take into consideration: - A lot of the participants didn't have th...
](http://ranking.ioi2019.az) - [Script I wrote] (https://pastebin.com/wevujYXW)

Full text and comments »

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

110.
By piaoyun, history, 5 months ago, In English
Anti-cheating in the LLM Era I think many people now hold such an idea: LLMs have already historically defeated CP, and catching those cheaters is only useless effort. The fairness of CF and the value of rating will finally disappear. But, is CP the first game where humans were defeated? Long time ago, Deep Blue defeated chess, AlphaZero defeated Go, scripts and mouse macros defeated FPS games, and GTO defeated Poker. The fact is, chess developed faster time controls that are harder to cheat in. Thousands of millions of real money still flows on poker websites. FPS game companies rely on automatic detection and community anti-cheat to continuously reduce the percentage of cheaters in the game, until it reaches a level that can basically be tolerated. In this article, I list some anti-cheating methods that I know. Maybe not all of them are feasible. But what I want to express is that we still have many methods to defend the purity of the CP community. ## 1. KYC (Know Your Contestant) & VP (Verified Play...

Full text and comments »

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

111.
By UzuHa_NaruSuke, history, 2 years ago, In English
Transforming a Hidden Passion: The Rise of Our College's CP Club A year ago, the Competitive Programming (CP) club at our college was a small, almost hidden community. At that time, only two of us actively participated in CP contests: I was a Pupil, and my friend was a Specialist. Fast forward to today, and our club has grown dramatically. We now proudly have five Experts among us, a testament to our collective effort and passion. How did we achieve this transformation? It wasn’t magic; it was a combination of strategic initiatives and a supportive environment. We organized engaging events like Code UnCode (You can search about it on LinkedIn), which not only challenged the students in the college but also sparked their interest and excitement. After every Codeforces (CF) and CodeChef (CC) round, we hold Post Contest Discussions. These sessions have become a cornerstone of our community, where members can share their strategies, learn from each other, and collectively improve their skills. But perhaps most importantly, we celebrated every achi...
dedication. As our club grew, keeping track of these changes became a challenge. So, I wrote ascript to, However, my script isn’t without its issues. Sometimes, it returns a None response when fetching, I’m also working on a version of the script for CodeChef, and I’ll keep everyone posted once it’s

Full text and comments »

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

112.
By lis05, 2 years ago, In English
[UPD] I solved an atcoder problem using an interpreter written in C++ for another language. So for the last couple of months I've been busy making a simple (and unfortunately slow) interpreted programming language called [Cotton](https://github.com/lis05/Cotton). Today, I was able to compress its entire source code into a single file and solve an atcoder [problem](https://atcoder.jp/contests/abc365/submissions/56936079) using a small program in Cotton written in a huge interpreter in C++. **UPD**: I rewrote the "glueing" script in Cotton. You can compare [python](https://github.com/lis05/Cotton/blob/main/glue.py) and [cotton](https://github.com/lis05/Cotton/blob/main/glue.ctn) scripts if you want (they work almost identically. however, i dont have regex library, so i could not remove comments using re like in python). Why you need this information? You don't. I just wanted to share my excitement with someone. _The program in Cotton:_ ~~~~~ arr = make(Array) .resize(read(Integer)) .apply(function(x){x=read(Integer);}); target = arr.copy().sort(f...
**UPD**: I rewrote the "glueing" script in Cotton. You can compare [python](https://github.com

Full text and comments »

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

113.
By SummerSky, 10 years ago, In English
Solutions to Codeforces Beta Round #35, A, B, C, D A. Shell Game The solution is straightforward by swapping the integers as required by the problem. B. Warehouse The warehouse can be viewed as a two-dimensional array. If '+1' is met, we just enumerate the positions from the given one to the final one in the order required by the problem, and put the drink into the first empty box if there exist any. If '-1' is met, we can enumerate from the first position to the final one, and if any one that has the same ID is found, we just output the corresponding position; otherwise output "-1 -1". C. Fire Again Suppose that the position at which the fire begins is denoted as (f1,f2). Then, for any position (r,c), the fire gets to it after time |r-f1|+|c-f2|, which is referred to as Manhattan Distance as far as I consider. Therefore, we can first enumerate the positions where fire starts, and for each such position, we enumerate every feasible position and calculate the time when the fire arrives at it. As all the fires start at the...
A. Shell Game

Full text and comments »

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

114.
By recuraki, history, 6 years ago, In English
How to test interactive problems using mkfifo Interactive problems are rare problems in competitive programming. I think that interactive problems are hard to solve for many guys. Because, testing for your solution is too hard. When testing interactivity, it is necessary to understand the stdin/stdout on your system. In this article, we will cover the following topics, - Basic code for interactive problems. How to do printf debugging. How to do testing by sample file. - The `mkfifo` that you often see in CodeForces user articles. mkfifo does not work on WSL1 as it is, but we will make it work on Windows with WSL1. - Colorful Result - (option) Use zsh + coproc to test without generating intermediate files. - <font color=red>The following examples are all in Python, but will work equally well in C++</font>. Similar articles can be found below. > [eku's article](https://codeforces.me/blog/entry/49490) This is introduction to useful tools (github) for interactive problems. ([user:eku,2020-12-31]) > [Gassa's Comment](h...
recognized by the shell or external programs by using this., ### Appendix: Using coproc (zsh) In zsh and bash, you can use shell functions to flexibly redirect, #### Judging AC or WA by shell Use the return value of the Interactor program. In an interactor, %82%92%E3%81%A4%E3%81%91%E3%82%8B%E6%9C%AA%E5%AE%8C/) - [shell Redirect](https://gist.github.com/sho, If you connect commands with a pipe, shell will return only the return value of the command you, So you should use the shell feature `>&`. This allows you to `copy' the output. The image looks

Full text and comments »

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

115.
By Handled, history, 11 years ago, In English
Prepare a mashups contest using polygon system for newbies First things first, I'm so sorry because of my bad english, if have any confusions in wording. Thanks :) Okay, here we go ! ### **Step 1:** You have to prepare problems for contest. Have many ways to do this, but i recommended using [polygon](http://polygon.codeforces.com) system &mdash; The professional way to prepare programming contest problem. - Create an account on polygon system. - After login, you'll see Dasboard Screen like this ![ ](http://codeforces.me/predownloaded/fa/ec/faec1a8a63529b648a251692e0a7dd1c67acc0db.png) - Choose tab New Problem - Start Edit Session ![ ](http://codeforces.me/predownloaded/4c/1a/4c1a448447dd6035cdd179598bb245bb05d38883.png) ### **Step 2:** #### • **General Info** - Input file &mdash; input file name or "stdin" in case of standard input - Output file &mdash; output file name or "stdout" in case of standard output - Time limit &mdash; time limit per test in milliseconds - Memory limit &mda...
If you use igen.cpp, test script you should write is:, • Use Script — script contains lines like "gen 45 | permute > 33" which will create test

Full text and comments »

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

116.
By Igorjan94, 4 years ago, In English
Typescript SDK for codeforces ## Hello codeforces! You know you are a programming competitions addict when [this blog](https://codeforces.me/blog/entry/12968) was 9 years ago, but you thought it was no more than 3... More than month ago or, to be more precise from 15 to 19 December 2022, codeforces has five contests in five days. I participated in all of these contests and I thought how many contestants took part in all 5 contests? **TLDR**: If you don't want to read why I decided to implement SDK on typescript and how I struggled with python, just scroll down to Typescript paragraph. **TLDR2**: Links are below. ## Python Historically I have some python scripts to work with codeforces API, so I've created `allContests.py` file, imported my old library code with method `cf` and paused for a while. Which arguments does this method have? Let's look into source code. Ah, clear, `def cf(method, **kwargs)`. F**k. OK, let's go to [API](https://codeforces.me/apiHelp/methods#contest.standings) page. O...

Full text and comments »

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

117.
By Rynical, history, 5 months ago, In English
Japanese part 1: Hiragana — Vowels Inspired from [user:greateric,2026-06-17]'s Math series. So, we programmers have a thing in common: we are weebs. And weebs wish to learn Japanese. So, I give you one. Here is the [YouTube Video](https://youtu.be/6p9Il_j0zjc) I referred to learn Hiragana. You may either follow this, or read this blog. So, what is the Japanese script? ------------------ Like in English, we got 2 &mdash; Uppercase and lowercase. Japanese got 3 &mdash; Hiragana, Katakana and Kanji **Hiragana** is the script that is mainly used to write in Japanese. **Katakana** is the 'uppercase' of hiragana, but it's used to write loan words, i.e., words that were not in Japanese originally. Eg &mdash; Aisu (Ice). It's also used to show emphasis and by companies to write their names. Every Hiragana has a Katakana counterpart, just like lower and uppercase. Together they are referred as **Kana** **Kanji** is the third writing script, which is the direct use of the Chinese script. (Kana was derived...
**Kanji** is the third writing script, which is the direct use of the Chinese script. (Kana was, So, what is the Japanese script? ------------------

Full text and comments »

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

118.
By awoo, history, 10 years ago, translation, In English
Revoting for comments: dreams come true? They do! In some way. For eager ones [link to userscipt.](https://openuserjs.org/scripts/MineGeekYT/CF_Voting_Buffer) Hi everybody! You know, our universe is pretty unfair place. Luckily, some unfairness can be fixed. And I found a method to make this world a bit kinder! Let me introduce a plugin that can help people overcome difficulties in their lives and develop their self-esteem! I believe, every active member of codeforces community at least once faced the problem I've faced couple times. It's when you try to reach that sweet green arrow to support commentator but instead of this you accidentally punch the red one with all of your might! And there is no way to correct the mistake! So, I spent some time studying the problem (and jquery, btw) and made a cute little script that changes concept of vote confirmation. While you are on a page, you now can alterate between your decisions as much as you wish (though only on comments you haven't voted for before entering p...
I will dublicate [link to script ](https://openuserjs.org/scripts/MineGeekYT/CF_Voting_Buffer), if

Full text and comments »

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

119.
By ZhangShan, history, 8 months ago, In English
[Tool] stress.ojcloud.net — a free online stress tester **TL;DR:** I built **[stress.ojcloud.net](https://stress.ojcloud.net)** — a free online stress tester for competitive programmers. Paste your `main`, `brute`, and `gen` into three tabs, hit Run, and it streams per-test verdicts and stops at the first counterexample with `Input / Main Output / Brute Output` side-by-side. No signup, no install, 8 languages (C++ 03/11/14/17/20, C, Python/PyPy, Java, Kotlin, Go, Rust). ## Hello, Codeforces! If you've been doing CP for more than a week, you already know the routine. You submit, you get `Wrong answer on pretest 2`, the test is hidden, and your solution is 300 lines long. You open a terminal, `mkdir stress`, write the same `while true; do ./gen > in; ./a.out < in > out1; ./brute < in > out2; diff out1 out2 || break; done` you've written a hundred times, realize you forgot to seed the generator, rewrite it, forget to recompile `brute`, finally see a diff, and now you're squinting at 2000 random numbers trying to minimize the counterexamp...
valuable debugging skill in CP, and yet every single one of us has hand-rolled the same bashscript

Full text and comments »

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

120.
By TheWeakest, history, 7 months ago, In English
Codeforces Division Filter for Problemset (Div. 1, Div. 2, Educational & More!) # &#x1F680; New Tool: Codeforces Division Filter for Problemset (Div. 1, Div. 2, Educational & More!) Hello Codeforces! Have you ever wanted to easily practice specific types of rounds like *only* Div. 2, *only* Educational Rounds, or *only* Div. 3 on the Problemset page, but found it annoying that there is no native way to filter them? I've built a **Browser Extension / Tampermonkey Script** that fixes this! ![ ](/predownloaded/48/a5/48a563eb2a9e3241ae0db63f68010531c7cb96f5.png) ## Features * **Multi-Select Filtering**: You can select multiple categories at once (e.g., check both "Div. 2" and "Educational" to see problems from either). * **OR Logic**: If a problem belongs to any of your selected categories, it stays visible. * **Memory Status**: It securely saves your filter preferences so they remain active even if you refresh or switch to another page in the problemset! ## How to Install (Two Methods) I've provided this tool in two ways: as a **Tampermo...
I've built a **Browser Extension / Tampermonkey Script** that fixes this!

Full text and comments »

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

121.
By CountZero, 5 years ago, In English
[Tutorial] Setting up Windows C++ environment — Microsoft edition Hello. This is kind of continuation of this post https://codeforces.me/blog/entry/102287. In this tutorial I'll try to explain how to write and compile C++ code on Windows, using tools provided by (mostly) Microsoft. I'm going to use latest versions. Terminal ======== First of all, let's install [Windows Terminal](https://www.microsoft.com/store/productId/9N0DX20HK701) and [MS PowerShell](https://www.microsoft.com/store/productId/9MZ1SNWT0N5D). Standart windows command line is just not usable. Let's also install [winget](https://www.microsoft.com/store/productId/9NBLGGH4NNS1) &mdash; this is a package manager similar to, for example, homebrew. Maybe chocolatey is better but, again, this one is developed by Microsoft. Of course Microsoft Store isn't mandatory, you can use any other source for these packages. I'd also suggest to try [starship](https://starship.rs/) command prompt &mdash; very useful tool, supports powershell as well. Compilers and tools ================...
Replace `amd64` with your desired architecture and save this script to file, say `devshell.ps1

Full text and comments »

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

122.
By suspicious_wow, history, 11 years ago, In English
Friends Stalker! (Updated) Hi guys! I have modified the script and fixed some bugs of 'Friends Stalker!' and if you have the old one, please replace the code with new one. For those who missed the last blog, 'Friends Stalker!' script will help you to know (**in real time**): - if your friend has submitted a code on codeforces, along with its verdict and problem name through an alert on your screen.This works on contest time too, so that you won't have to open 'friends standings' page to know how many problems your friends have successfully solved or attempted! - You won't have to check for system test results in every 2 minutes. You can leave script running in background and it will let you know the result of your submissions along with your friends in no delay!! - If you are participating in a team but team members are at different locations, you will know quickly your teammate's submissions and results. - You will have a record on your terminal/ command prompt of the last submissions of your friends. ...
- I have checked last 15 solutions of a user in script. You may wanna increase or decrease this., For those who missed the last blog, 'Friends Stalker!' script will help you to know (**in real time**):, So please don't rely on script for system case checking for now! I will update thescript tomorrow

Full text and comments »

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

123.
By MikeMirzayanov, history, 11 years ago, translation, In English
Generators with testlib.h What are generators? -------------------- Generators are helper programs that output test. Most programming task usually has a large input (for example, an array of up to $2 * 10^5$ elements, a tree of up to $10^5$ vertices), so it's not possible to add all the tests manually. In these cases, generators come to the rescue. If you are writing a generator in C++, it is recommended to use the [testlib.h](https://g...content-available-to-author-only...b.com/MikeMirzayanov/testlib) library. Types of generators ------------------- There are two types of generators: 1. **Single-test generator:** output exactly one test in a single run. Usually, to generate several tests, one must run the generator several times with different command line parameters. Such generators output the test to the standard output stream (to the screen). 2. **Multiple-test generator:** output many tests in a single run. Such generators output tests to files (one file for each test). An example singl...
something like `multigen a b c > {4-10}` in the script (if it is assumed that starting the multiple-test

Full text and comments »

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

124.
By -Pho3nix-, history, 9 months ago, In English
Finally: Sublime Text + Companion FIXED! Most Sublime Text users use the "FastOlympicCodingHook" tool to facilitate transferring tests from the browser to the program. It's a good tool, but not very practical, as you have to click the "Listen to Competitive Companion" button every time to force the program to accept tests from the browser. I also encountered the problem that there isn't a tool that creates a separate file for each test, and sometimes the tool's response to the browser is unreliable. This piqued my curiosity, and I started looking for ways to fix these problems. It took me more than three days of searching and trying, but I couldn't find any articles that actually addressed these issues. I even resorted to using AI and asked it to fix these problems. It took a few hours because I didn't get the best result the first time, but finally, I can say I did it. ```python import sublime import sublime_plugin from http.server import BaseHTTPRequestHandler, HTTPServer import json import threading import os ...
The Ultimate Hook (My Script):

Full text and comments »

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

125.
By luosw, history, 6 years ago, In English
CarYon — An OI/ACM Contest Test Case Generator based on C++ # CarYon: An OI/ACM Contest Test Data Generator based on C++ ![img](https://img.shields.io/badge/Avatar-luosw-red.svg) ![img](https://img.shields.io/github/package-json/v/luosiwei-cmd/caryon) ![img](https://img.shields.io/npm/dm/datamaker-caryon) ![img](https://img.shields.io/npm/dt/datamaker-caryon) ![img](https://img.shields.io/npm/l/datamaker-caryon) ![img](https://img.shields.io/npm/v/datamaker-caryon) # Front Have you ever encountered the following problems when holding a self-contained OI match: - Want to quickly produce a paragraph of text? - Want to quickly perform mathematical operations to generate data? - Want to generate test data one by one without using freopen? - Want to generate a set of random data or series? - Quickly generate data to match the two programs? Then, you can use CarYon and C++ to quickly generate data. Previously supported features are: - Randomly generate a chapter, some words, some words - Get out of the limitation of RAND_MA...
```shell $ npm install datamaker-caryon --save ```

Full text and comments »

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

126.
By OSt, 14 years ago, translation, In English
Web service for defrost standings of competition — S4RiS StanD Good afternoon. Today I want to share with the public my little project (which was part of my thesis), service on the "defrost" the results of the competition format ACM ICPC &mdash; "System for Right Solutions Standings Dancing" (S4RiS StanD). Hosted on [github](https://github.com/OStrekalovsky/S4RiS-StanD). #### Introduction In 2011, my team is still held in the semifinals, where at the close I saw the live operation of such a system ITMO. The feeling was strong. But after analyzing the work and reviewing captured my video, I realized that it is possible to improve this implementation, make it open to and more modest, local competitions, the participants were able to watch in awe tabulation of results. It was chosen as part of my thesis was used already in one competition and received a logical extension. <p> [cut] </p> #### About the service and its features Service is just a web page with a core written in JS and requires no "server" scripts. Therefore, this service ...

Full text and comments »

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

127.
By Gerald, 12 years ago, In English
Who wants a VK-Cup T-Shirt? Hey, folks! I am not a fan of sport-programming t-shirts, but surely know that some of you would like to have one. If you wanna get a t-shirt, just add yourself in [Google Form](https://docs.google.com/forms/d/15-y3Z49MiGMQX2FU-GmwLpHW39t7LWqIfsdYpSlCS-M/viewform?usp=send_form). After a couple of days I will pick a person randomly from the list, and contact him/her for contacts. Also, I didn't decide how to calculate a random seed fair enough. So, feel free to propose something :) Cheers! **Edit 1:** Guys, please, don't mess around with the doc. Now you cannot edit the doc, please, add a comment with your handle. **Edit 2:** Ok, you forced me to delete Google Doc, and spend more time, thanks :) Please, **add you handle again** in Google Form. **Pay attention**, you can only add your handle once. Make sure you wrote it correctly. Also to prevent cheating, I will chose among people who participated in at least 2 competitions. **Edit 3:** Seems that everybody who wanted ...
I was super lazy, so I decided not to do anything complicated. I wrote python script:

Full text and comments »

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

128.
By vmaksimovski, 6 years ago, In English
Tips on Constructive Algorithms Constructive algorithms are common in both olympiads and online programming contests. If you’re looking for some examples, filter for "constructive algorithms" in CodeForces's problemset. Definition ------------------ What is a constructive algorithm, exactly? I think it’s most helpful to give a problem to motivate: _Let $1 \leq N \leq 10^5$ and $1 \leq K \leq \log_2(N)$ be fixed. Imagine performing a binary search on the values $1...N$. Give a value X, $1 \leq X \leq N$, which would be found after exactly K steps of the binary search._ There's a bunch of variations on binary search, so assume I chose a particular one for this example. We’re supposed to generate an example number which satisfies the above condition (found in exactly K steps of a binary search). In almost all constructive algorithm problems, there are many different approaches that all work, and usually any output which satisfies the conditions is accepted. The reason these problems get difficult is that w...
fast as you can code them up. If you didn't have this script ready, you would have to execute the, ! We can use the script yet again! We run the brute-force and "hypothesis" approach on as many choices, It's important to acknowledge the drawback here: writing the script takes 10-15 minutes, and yet, This is very valuable -- instead of having to solve examples yourself, you can just use thisscript

Full text and comments »

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

129.
By WillTheBill, history, 4 years ago, In English
What If... Virtual Contests were REAL? [cfscripts] Hey everyone! ![The What If? script simulating official/unofficial/virtual contest rating changes](/predownloaded/28/05/28056eb2c40af0aa2512903ba3270957cb6ad3f1.png) With inspiration from * the great [research](https://codeforces.me/blog/entry/86596) by [user:galen_colin,2022-06-25]. * [user:MiuraMiuMiu,2022-06-25]'s [Codeforces Anytime](https://codeforces.me/blog/entry/83122). * ... and of course the various Codeforces performance predictors! I proudly present **cfscripts**. *cfscripts* is a collection of scripts for Codeforces that uses the [cf-API](https://codeforces.me/apiHelp) to do different things. For instance, *cfscripts* includes a script named **What If?** (yes, very fancy), which allows you to **simulate Codeforces contest rating changes** over time, but **including virtual and unofficial contests**. You can choose to include only positive rating changes (this feature is dedicated to [user:galen_colin,2022-06-25]).<br/> &nbsp;&nbsp;&nbsp;You may ask: *...
![The What If? script simulating official/unofficial/virtual contest rating changes](/predownloaded

Full text and comments »

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

130.
By z4120, history, 7 years ago, In English
User script to keep track of your problem solving (Codeforces only) UPD: New version: Add problem title to the dashboard. [Screenshot](http://0x0.st/zUO8.png). Now you can tell easily what the problem is, without clicking through the link or add tags to describe the problem (although if you have existing tags, it's okay as well) --------- A port of the [chrome extension](https://codeforces.me/blog/entry/59575) to Greasemonkey. I don't use Chrome, and so I decide to spend some time convert the chrome extension to greasemonkey userscript. I know that Chrome is the most popular browser, but I hope this can be useful to someone else. (there was somebody who [asked for a Firefox extension](https://codeforces.me/blog/entry/59575#comment-433350)) For now, the user script only works on Codeforces, and it uses localStorage. Also, because it "merges" a bunch of files into one, the resulting user script is not really maintainable. Anyway, as far as I've tested the works identically to the chrome extension (except that the "badge text" does not work) ...
User script to keep track of your problem solving (Codeforces only), For now, the user script only works on Codeforces, and it uses localStorage. Also, because it

Full text and comments »

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

131.
By dendi239, history, 6 years ago, In English
Micro- and macro-management for your next cpp source: General tips'n'tricks Hello, Codeforces! In this series of articles, I would like to tell you about tips'n'tricks I use in C++ sources. Some of them require a strong C++ background, some not, but all of them are aimed to reduce the time you spend on basic things like reading input/debugging/etc, so it might be useful for your next template. This part is dedicated to some basic tips (and probably should've been the first part but it's not ¯\\_(ツ)_/¯). <spoiler summary="TL;DR"> Full code: ~~~~ #include <bits/stdc++.h> using namespace std; using i64 = int64_t; using f80 = long double; using Str = string; template <class T> using Vec = vector<T>; template <class K, class V> using UM = unordered_map<K, V>; template <class T> auto &operator>>(istream &is, vector<T> &xs) { for (auto &x : xs) is >> x; return is; } namespace io { template <class ...As> auto &read(As &...as) { return (cin >> ... >> as); } template <class ...As> auto &log(const As &...as) { return ((cerr << " " << as...
: there's no `z.hpp` accessible by codeforces's compiler. It may be enhanced by customscript doing it

Full text and comments »

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

132.
By smax, 6 years ago, In English
Tips on debugging "WA on pretest 2"? Hey all, I find one of my biggest weaknesses is debugging efficiently under contest settings. If you look at my contest history, there are plenty of instances where I get horrible penalties and wrong multiple submissions on a given problem before potentially solving it. The most recent example is today's Educational Round, where I took 40 minutes to figure out what was wrong with my D solution. I am well aware that there are plenty of blogs and posts on debugging upon Googling, but a lot of the advice is kind of generic and don't always work for me, so I was hoping to get some more specific answers via this blog. I'll try to provide some context so you know what I'm already doing. **Here is my current debug strategy during contests:** **TLE/MLE/RE**: Usually not very common for me. I just look for common sources of these errors. For TLE or MLE, I check things like allocating lots of vectors inside loops, while loop conditions and recursive functions, etc. For RE, I check fo...
bash solution and generator, and run my bash solution against my current solution with a bashscript

Full text and comments »

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

133.
By GreatShinobiOwl, history, 6 months ago, In English
Author Competitive Programming Problems With an AI Co-Setter Hey Codeforces! We've been quietly shipping something we're really excited about at **[Repovive](https://repovive.com)**: a full **AI-assisted problem authoring workspace** built for competitive programming setters. No more juggling six text files, a half-broken `gen.cpp`, a checker you wrote at 3 AM, and a `tests/` folder you're afraid to touch. We call it **the Build page**, and there are two flavors live right now: **v1** (the original chat-first design) and **v2** (the new full multi-panel workspace). This post walks through what they are, why we built two, and what each one is good for. > *TL;DR — v2 turns problem authoring into a Cursor-style IDE for problem setters. You chat with **Hannah**, our DeepSeek-powered agent, while she edits your statement, solution, validator, generators, checker, and test cases in real time. Multiple authors, one session, live sync.* --- ![PLACEHOLDER: Hero screenshot — full v2 workspace with all 3 panes visible, chat on right showing ...
- **Gen/data script** (parameterized recipe: `gen_random 1 100 1000`, one per test), Instead of writing test files by hand, you write a **gen/data script**:

Full text and comments »

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

134.
By okwedook, history, 4 years ago, In English
Is it possible to become red after a Div. 2 round? **TLDR; Yes, it's possible, but with some comments** First of all let's look at the past. Were there people that gained rating of 2400+ after a Div. 2 round? Turns out this already happened! The 5 contestants that reached red after Div. 2 rounds are - [user:demon1999,2023-02-19] reached rating of 2439 in [contest:727] - [user:WYZFL,2023-02-19] reached rating of 2430 in [contest:1709] - [user:apei,2023-02-19] reached rating of 2421 in [contest:1763] - [user:klimmek55,2023-02-19] reached rating of 2400 in [contest:1476] - [user:afterall,2023-02-19] reached rating of 2400 in [contest:1451] But of course there is always a catch. Both [user:demon1999,2023-02-19] and [user:klimmek55,2023-02-19] were already masters when they joined the contests, so I wouldn't count that as reaching grandmaster after a Div. 2 round. Nevertheless, what about the other three? They had a rating lower than 2100 before the contest and 2400 or more after. **Easy peasy right?** Well, **un...
are Educational Div. 2 contests This is the [python script ](https://github.com/okwedook/codeforces

Full text and comments »

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

135.
By hermit_parth, history, 11 months ago, In English
CodeForces Daily POTD (Problem of the Day) Tamper Monkey Script Hi, I wrote a simple Tampermonkey script that adds a **POTD (Problem of the Day)** button on Codeforces. Clicking it will give you a problem with a rating similar to your current rating. **Links:** - [Download Script (GreasyFork)](https://greasyfork.org/en/scripts/560655-cf-potd) - [GitHub Repo](https://github.com/saitamapunches123/CF-POTD) --- ### DESIGN CHOICES 1. **Minimize API Calls During Contests** All API calls are done **only when clicking "POTD"**, making the button slightly slower to respond, but keeping page refresh fast and lag-free during contests. 2. **User-Specific POTD** Each user gets a **different POTD**, depending on their current rating (`curr_rating`). 3. **Rating Range** POTD will be in the range: `[curr_rating - neg_delta*100, curr_rating + pos_delta*100]` - `curr_rating` is rounded down. - Example: If a user's rating is **1650**, POTD can be one of **[1400, 1500, 1600, 1700, 1800]**. - You can cha...
CodeForces Daily POTD (Problem of the Day) Tamper Monkey Script, **Links:** - [Download Script (GreasyFork)](https://greasyfork.org/en/scripts/560655-cf-potd

Full text and comments »

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

136.
By dyzets, 6 months ago, In English
A desktop app for managing CP problems on Codeforces Polygon through APIs. Everyone who prepares problems on this site knows [Polygon](https://polygon.codeforces.com), a problem-preparation tool maintained by [user:MikeMirzayanov,2026-06-08]. It's powerful — automatic invocation, validation, checking, stress testing, packages. However, the web experience is not really convenient. I have to click through the tabs to copy the generator, checker, validator from my computer whenever I change the files. I wanted my problem to live in a local folder I control, and edit it like I edit code. So I built a small desktop app for it: [Decagon](https://github.com/dyzets/decagon). It talks to Polygon through the official [Polygon API](https://codeforces.github.io/polygon-misc/API). Each problem is one local folder bound to one Polygon problem. Inside the app you get a tabbed editor: - **Info** — time/memory limits, input/output files, interactive flag, checker / validator / interactor, points mode. - **Statements** — edit every field (legend, input, output, sc...
headers, and attachments. - **Tests** — manual and script-generated tests per testset, the

Full text and comments »

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

137.
By accidentallygivenfuck, 13 years ago, In English
Turkmen National OI ### Day1 Tasks #### A. Bet you can't solve it You need to build a stairway, which has $1.5$ unit height and $4.5$ unit width. Each step has to have $0.3$ unit height and multiple of $0.5$ unit width. How many different ways are there to build such a stairway? Строится лестница из точки А в точку В. Растояние АС = $4.5м$; ВС = $1.5м$. Высота ступеньки $0.3м$, ширина $0.5м$ или кратное $0.5м$. Сколькими способами можно построить лестницу? <center> <img class="tex-graphics" src="http://i.stack.imgur.com/z0CUT.png"> <span class="tex-font-size-script">Sample stairway.</span> <img class="tex-graphics" src="http://i.stack.imgur.com/eE361.png"> <span class="tex-font-size-script">Original images for description.</span> </center> #### B. Piece of cake Given matrix $A[1...n][1...m]$, each element of which is $0$, $1$, $2$ or $3$. Find number of 4-ples $A[i][j]$, $A[i][j+1]$, $A[i+1][j]$, $A[i+1][j+1]$ where these numbers differ from each other. Данна целочисленная матрица ...
-script">Original images for description., -script">Sample stairway.

Full text and comments »

138.
By accidentallygivenfuck, 12 years ago, In English
So spammer, much asshole! <div style="text-align: center;"><img src="http://cdn.meme.am/instances/500x/61924944.jpg"></div> Hello Codeforces, Today, after getting bored of sleeping, I decided to sharpen up my vim skills. So I opened the firefox, then developer tools, and set the 'keybindings' to 'vim style', and decided to write a user script. A user script that automatically downvotes the spammers. If you are fed up of spammers as much as I am, then I invite you to use my user script. To install the user script in your browser, just follow these 2 instructions: <div style="text-align: center;"> <h3>1. Install <b>Greasemonkey/Tampermonkey</b></h3> <div style="font-size:smaller;" class="notice">Choose your browser</div> <a target="_blank" style="background: #FFFFFF" href="https://addons.mozilla.org/firefox/downloads/latest/748/addon-748-latest.xpi?src=dp-btn-primary"><img src="http://i.stack.imgur.com/HiPkQ.png" style="width:250px" alt="Greasemonkey"></a> <a target="_blank" style="background: #FF...
If you are fed up of spammers as much as I am, then I invite you to use my user script. To install

Full text and comments »

139.
By ayushgirigoswami15, history, 6 months ago, In English
Me and DeepSeek spent a weekend analyzing 8000 CF problems. Here's what we found # Me and DeepSeek analyzed 1600 Codeforces contests and 8000+ problems — some interesting patterns please check this result : https://ayushgirigoswami.github.io/codeforces_analysis_report/ A few weeks ago I got curious about something most of us probably notice intuitively but rarely measure properly: * Is Codeforces getting harder over time? * Which topics are becoming more common? * Are some problems overrated or underrated? * How different are Educational rounds from regular rounds? So I wrote a Python script that pulls contest/problem data from the CF API, analyzes ratings + tags, and generates interactive visualizations. ### Report https://ayushgirigoswami.github.io/codeforces_analysis_report/ ### Source code https://github.com/Ayushgirigoswami --- ## Dataset The analysis includes: * 1600 contests * 8354 rated problems * Div.1 / Div.2 / Div.3 / Div.4 / Div.1+2 * 2011 → present Average problem rating across the dataset: **1793** --- ...
# Running the script, The script:

Full text and comments »

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

140.
By Golovanov399, 8 years ago, In English
Antimagic Hello everyone! Since the masquerade of colors and ranks was announced, many pseudo-creative shitblogs from pseudo-nutellas will appear soon. Of course, some of them may be [funny](https://codeforces.me/blog/entry/15511) (especially when it's not about newbies trying to look smarter but vice versa), but one can be sick about all this situation. Usually it's not funny, but annoying. This is why I decided to create a script which would reveal the true colors and titles. I think it does not (completely) kill the idea of changing colors: if one wants to take part in this masquerade, they can ignore my post and will still see the colors chosen by others (including their own) instead of the true ones. This extension _extends_ the page loading time because it downloads a ~1.6mb file. It shouldn't change the title on the profile page, but what it should do is make all in-page colors look properly. It also doesn't change the site background since killing the new year spirit is not wha...
This is why I decided to create a script which would reveal the true colors and titles. I think it

Full text and comments »

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

141.
By tridipta2806, history, 8 months ago, In English
Insomnia'26 Editorial ####[Problem A : Ancient Trees](https://codeforces.me/gym/680528/problem/A) Problem Idea: [user:shorya1835,2026-03-23], Problem Preparation: [user:aastik231205,2026-03-23] <spoiler summary="Hint 1"> You are allowed to use intermediate vertices in your sequence. Does it ever actually help? For any three vertices $a$, $b$, $c$, what is the relationship between $c(a,b) + c(b,c)$ and $c(a,c)$? Recall that for non-negative integers, $x + y \geq x \oplus y$. </spoiler> <spoiler summary="Answer for Hint 1"> Since, $c(a,b) + c(b,c) \geq c(a,b) \oplus c(b,c)$, Splitting the path doesn't minimize the distance at all. Hence $d(u,v) = c(u,v)$ always. </spoiler> <spoiler summary="Hint 2"> Since $d(u,v) = c(u,v)$ always, we can maintain a running mask $M$ (XOR of all Type 1 updates so far). A path with $\ell$ edges has its XOR-distance changed only if $\ell$ is odd, flipping their XOR-distance by $M$, depending only on the running XOR of Type 1 queries so far. Can you precomput...
can simply write a quick brute-force script using `next_permutation` to find the lexicographically

Full text and comments »

Tutorial of Insomnia-26
  • Vote: I like it
  • +113
  • Vote: I do not like it

142.
By juancarlovieri, history, 6 years ago, In English
Dark theme for TOKI's TLX Hi, I recently made a dark theme for TOKI's coding platform, [TLX](https://tlx.toki.id). I did not simply use a color inverter for better results. You can find it at my [GitHub repo](https://github.com/juancarlovieri/tlx-dark-theme) (along with the installation instruction). The script is new so there might be some bugs. Feel free to report a bug or giving any suggestions by opening an issue at the repo :)) **Update 21/09/20**:<br>- Added copy button to copy the samples. **Update 07/10/20**:<br>- You can use `alt` + `arrow up` or `arrow down` on your keyboard to move between contest menus (overview, announcement, problems, clarification, scoreboard, etc.) **Update 08/10/20**:<br>- You can easily toggle between light and dark mode using the button at the top right corner of the screen. **Update 11/10/20**:<br>- You can now customize the color of the problem statement by clicking the preference button below the Dark/Light button (at the top-right corner of the scree...
**Update 19/06/21**: - There have been a few changes in tlx's website which made the script, **Update 20/07/21**: - There have been a few changes in tlx's API which made the script broken

Full text and comments »

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

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

Full text and comments »

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

144.
By UTPC_Admin, history, 3 years ago, In English
UTPC April Fools' Contest 2024 Editorial Hello everyone! Hope you enjoyed our contest, this was our first time making a contest in this fashion. Hopefully we will have many more years :) [A – Are you a Robot?](https://codeforces.me/gym/105071/problem/A) Author: [user:blueberryJam,2024-04-02] <spoiler summary="Solution"> The answer is `No`. We would also accept the full CAPTCHA, $$JR5JNYNJSABN03BIELLEQ9PA9REEUXO5DXSA4C5S$$ $$U6A9SXD2A2VR00B5SUWPX38ONBR9THZ8Y80Q18Z$$ $$JI4ESKAWMU7MX5K33EAFXPR7323LP4DMTI3YSZL2$$ $$4EIUYBZJBHD7OVF6GEIE28JUQVILEIWWDM8RHKZ8$$ for those who have the patience to type it out. </spoiler> <spoiler summary="Feedback"> - Good problem - Amazing problem - Best problem ever </spoiler> [B – Working Out](https://codeforces.me/gym/105071/problem/B) Author: [user:sg2themax,2024-04-02] <spoiler summary="Solution"> Simple dad joke: anything containing "codeforces gym" works as a valid output (including the URL, or just the ph...
One may use a simple script to parse the list of companies &mdash

Full text and comments »

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

145.
By JetBrains, 8 years ago, In English
Kotlin Heroes Announcement <img src="/predownloaded/d3/f6/d3f67b5afe94939d82d9358aeb7a0edcf6a8d33f.png" style="width:300px;float:right;margin:0 1em 1em 1em;"/> Hello, Codeforces! We are happy to announce that in partnership with Codeforces to promote [Kotlin programming language](https://kotlinlang.org/) we are launching a series of "Kotlin Heroes" programming contests. Kotlin programming language was introduced by JetBrains in 2011 and reached its first stable version 1.0 in 2016. The current language version is 1.3.31. The language is focused on solving the needs of application developers in various domains. Kotlin is a statically typed language that is designed for writing concise code, with less ceremony and more substance in it, and to scale from applications of just a few lines long to multi-million-lines projects. While not being specifically designed for competitive programming, it incidentally fits well in this domain, reducing the typical amount boilerplate that a programmer needs to write...

Full text and comments »

Announcement of Kotlin Heroes: Episode 1
  • Vote: I like it
  • +280
  • Vote: I do not like it

146.
By tau0, 12 years ago, translation, In English
Codeforces tags distribution. Hi codeforces, I've written a simple script to get tags distribution on codeforces. May be this data will be useful for somebody. Tag &mdash; Number of problems with this tag (thanks [user:st3v3n,2020-09-04] for an updated version of the script) - [implementation] (/problemset?tags=implementation) 1865 - [math] (/problemset?tags=math) 1536 - [greedy] (/problemset?tags=greedy) 1452 - [dp] (/problemset?tags=dp) 1256 - [data structures] (/problemset?tags=data+structures) 969 - [brute force] (/problemset?tags=brute+force) 930 - [constructive algorithms] (/problemset?tags=constructive+algorithms) 849 - [graphs] (/problemset?tags=graphs) 663 - [sortings] (/problemset?tags=sortings) 598 - [binary search] (/problemset?tags=binary+search) 577 - [dfs and similar] (/problemset?tags=dfs+and+similar) 564 - [trees] (/problemset?tags=trees) 482 - [strings] (/problemset?tags=strings) 458 - [number theory] (/problemset?tags=number+theory) 409 - [combinatorics] (/pr...
PS: [link](https://gist.github.com/tau0/3022c553bbc6f9eb395bb614cb73e994) to the updatedscript.

Full text and comments »

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

147.
By hx0, 12 years ago, translation, In English
Timus Charts 1.0: a new version for most of popular browsers <div style="text-align:center;"><img align="center" src="http://habrastorage.org/files/219/cd9/e48/219cd9e482914d6095e52749f4aa3d82.png" /></div> <strong>Timus Charts</strong> is an extension for a browser that adds a chart of count of solved problems to [Timus Online Judge's](http://acm.timus.ru/) profiles. With it, you can observe users' activity and, if they solve problems regularly, compare their experience at various times. In addition, the extension slightly changes colors in the problems map to improve it's usability. [cut] <br /><br /> The new version adds several new features, fixes some bugs, and supports most of popular browsers: * You can add more users to the chart. * Loading of the chart has sped up due to using API and caching data. If your visited the current profile before, only a few count of last submits will be queried. If count of solved problems isn't changed after previous visit, no queries will be executed at all. * You can hide the chart (it won'...

Full text and comments »

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

148.
By Davidshx, history, 4 years ago, In English
CodeRunner(for Windows only):A tool for many online judges. # CodeRunner(for Windows only) # [Github](https://github.com/Davidasx/CodeRunner) (Remember to give me a star!) A tool for many online judges.Processes testcases via [Competitive Companion](https://codeforces.me/blog/entry/60073) and uses [CF-Tool](https://codeforces.me/blog/entry/66552) to compile and test programs. [cut] ## Install First,install and configure [Competitive Companion](https://codeforces.me/blog/entry/60073) and [CF-Tool](https://codeforces.me/blog/entry/66552). **Note:You should configure the pre-script and post-script for the CF-Tool template to compile automatically.** Download crun.exe and coderun.exe and parse2cf.exe(Download the source files if you want to.They're optional.) Then put the files in a folder that's in the environmental variable PATH.(Search that if you don't know what it is.) ## Usage ```powershell coderun [FILENAME]:test code [FILENAME] in the terminal. crun [FILENAME]:test code [FILENAME] in a popup window. ``` *...
[CF-Tool](https://codeforces.me/blog/entry/66552). **Note:You should configure the pre-script and

Full text and comments »

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