Please, try EDU on Codeforces! New educational section with videos, subtitles, texts, and problems. ×

By Nickolas, 2 weeks ago, In English,

Microsoft's Quantum team and Codeforces are excited to invite you to Microsoft Q# Coding Contest — Summer 2020! The contest will run from June 19 to June 22.

As a reminder, last weekend we held a warmup round with easier tasks on the topics that have not been covered in the previous contests. You can find the problems from the warmup round for practice here, and the described solutions here. There is also a list of great learning and practice resources here.

Several useful reminders:

  • The contest is unrated :-)
  • Solutions are accepted only in Q#.
  • The tasks are grouped by topic, and the tasks within one topic are ordered in approximate order of increasing difficulty. If you find a problem too hard, check the next problems in this topic and problems from different topics, they might turn out to be easier for you.
  • Custom Invocation allows you to run Q# code on Codeforces servers; make sure your code has namespace Solution and an operation with a signature operation RunQsharp () : Bool defined in it.
  • And the really important stuff: the top 50 ranked participants will receive a Microsoft Quantum T-shirt, and 25 random participants who solved at least one problem but didn't finish in the top 50 will also receive a Microsoft Quantum T-shirt! Here is a preview (we haven't printed the T-shirts yet, so the final look in print might differ slightly):

Read more »

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

By Ashishgup, 2 weeks ago, In English,

Hi everyone!

I would like to invite you to another one of our rounds, that I set with my friends FastestFinger, smartnj, the_hyp0cr1t3 and ridbit10.

The round Codeforces Round #651 (Div. 2) will take place on Jun/20/2020 17:35 (Moscow time). If your rating is less than 2100, this round will be rated for you; otherwise, you can participate out of competition.

I would really like to thank my co-setters and:

Based on past reviews, we have:

  • Tried to make A easier and make the difficulty gradient a bit better
  • Reduced the number of AdHoc problems and made the problemset more diverse

You will be given 6 problems and 2 hours 15 minutes to solve them.

Good luck! :D

The scoring distribution will be: $$$500 - 1000 - 1500 - 2000 - 2500 - (2000 + 1250)$$$

Upd: Quick editorial — Hope you guys found the problems interesting :D

Read more »

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

By Endagorion, history, 3 weeks ago, In English,


On Jun/18/2020 17:45 (Moscow time) we will host Codeforces Global Round 8.

It is the second round of a 2020 series of Codeforces Global Rounds. The rounds are open and rated for everybody.

The prizes for this round:

  • 30 best participants get a t-shirt.
  • 20 t-shirts are randomly distributed among those with ranks between 31 and 500, inclusive.

The prizes for the 6-round series in 2020:

  • In each round top-100 participants get points according to the table.
  • The final result for each participant is equal to the sum of points he gets in the four rounds he placed the highest.
  • The best 20 participants over all series get sweatshirts and place certificates.

Thanks to XTX, which in 2020 supported the global rounds initiative!

Problems for this round are set by me. Thanks a lot to the coordinator 300iq and testers thenymphsofdelphi, Lewin, Golovanov399, Osama_Alkhodairy, gamegame, dorijanlendvaj, HenriqueBrito, kocko, ruban, Origenes, Ilya-bar, rahulkhairwar. Their feedback was a huge help and affected the problemset greatly.

The round will have eight problems and will last 150 minutes.

Scoring distribution: 500 — 1000 — 1500 — 1750 — 2500 — 3000 — 3500 — 3000+1500

Good luck, and see you on the scoreboard!

UPD: the round has concluded, congratulations to the winners:

  1. ecnerwala
  2. tourist
  3. Marcin_smu
  4. Petr
  5. Radewoosh
  6. Um_nik
  7. maroonrk
  8. eatmore
  9. snuke
  10. KAN

Check current Codeforces Global series standings here (courtesy of aropan).

You can find the editorial here.

Stay tuned for prizes announcement!

Read more »

Announcement of Codeforces Global Round 8
  • Vote: I like it
  • +1315
  • Vote: I do not like it

By Una_Shem, history, 5 weeks ago, translation, In English,

Hello everyone!


“My name is Una and I am from the Codeforces team” — this is usually how my messages to users of the site begin. One of the reasons why I write a message is very joyful — sending out gifts to the winners of the competitions and now also to participants of crowdfunding dedicated to the 10th anniversary of Codeforces.

That’s what I’d like to talk about a little bit.

Everyone knows where it all starts — there is a round with gifts, in the comments to which after the ending the coordinators or Mike post a list of winners.

Then, in a short time, all winners receive a system message asking them to update the data about the size of the T-shirt and address. In some special cases, such as crowdfunding, for example, all participants receive an email. For various reasons, not everyone has time to fill out the necessary data on time, and therefore later some winners may receive another similar message from me personally.

This is very important!

We don't produce T-shirts or hoodies (or print on them) ourselves: other companies do this for us, therefore, by the time we contact them, we should already have all the data about the sizes of T-shirts! We wait until the last moment for the data from each winner. We are waiting and asking to be extremely careful when filling out the address and size of the T-shirt. In case someone makes a mistake in the size, there’s just nothing we can do after t-shirts are manufactured. Please note the size charts differ from manufacturer to manufacturer thus extra discretion is advised. We recommend disregarding the letter designation (S, M, XXL, etc.) and pay attention to centimetres. So if their dimensional grid differs from ours, we choose the size so that it fits in the best way with the size in our size chart.

Sometimes we contact gift companies by ourselves, and sometimes our partners do it, with the support of which this or that round is held.

Our next step is to wait for gifts to be made and delivered.


And as soon as they come to us, we start packing and sending gifts to all the winners. Then everyone receives a system message with a tracking number of the packages.

Sometimes the whole process can take a long time, sometimes a VERY long time. Especially now! Due to the COVID-19 pandemic and mandatory self-isolation in our country, we face many additional difficulties: many contractors are either slow or not working at all. In some cases, we have to change things, for example, as was correctly noted in the comments under the announcement to "Kotlin Heroes: Episode 4": the badges have changed to stickers.

We are trying to speed up the process, but, to our great regret, delays in delivery are inevitable. Due to the epidemic, some countries stopped mail exchange with Russia (all parcels to these countries will be sent as soon as everything is settled), and some significantly increased the delivery time of parcels.

Most important: the gifts will surely reach all the winners! We put all our efforts into it!

Please accept our heartfelt thanks for your patience and understanding! We really appreciate your support!

P.S. And this is usually the last phrase in my messages: "If you have any questions, write me a message and we will figure it out together."

So feel free to dm me. :)

Read more »

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

By Stepavly, history, 3 weeks ago, translation, In English,

Hello, Codeforces!


Hello! Codeforces Round #650 (Div. 3) will start at Jun/16/2020 17:35 (Moscow time). You will be offered 6 problems (one of them will have subtasks) with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have a rating 1600 or higher, can register for the round unofficially. The round will be hosted by rules of educational rounds (extended ACM-ICPC). Thus, during the round, solutions will be judged on preliminary tests, and after the round it will be a 12-hour phase of open hacks. We tried to make strong tests — just like you will be upset if many solutions fail after the contest is over.

You will be given 6 problems and 2 hours to solve them.

Note that the penalty for the wrong submission in this round (and the following Div. 3 rounds) is 10 minutes.

Remember that only the trusted participants of the third division will be included in the official standings table. As it is written by link, this is a compulsory measure for combating unsporting behavior. To qualify as trusted participants of the third division, you must:

  • take part in at least two rated rounds (and solve at least one problem in each of them),
  • do not have a point of 1900 or higher in the rating.

Regardless of whether you are a trusted participant of the third division or not, if your rating is less than 1600, then the round will be rated for you.

The problems for this round were invented by MikeMirzayanov, me and Supermagzzz and prepared by me and Supermagzzz.

Thanks to MikeMirzayanov for platforms and coordination of our work. Thanks to harlequen, manta1130, lynmisakura, Gassa, Rox, antontrygubO_o, armoking, JustasLe, iankury, Sho10, bugdone, HAEtaRhoEta for help in round preparation and testing the round.

Good luck!



Read more »

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

By misis, history, 3 weeks ago, translation, In English,

We are glad to inform you that Volga Summer Camp 2020 – open competitive programming camp – will take place on July 7-18. It is organised by NUST MISIS together with P.G. Demidov Yaroslavl State University with the support of SIT (Schaffhausen Institute of Technology).

At the moment a lot of events are held in the remote mode and our camp is not an exception. This year it will be conducted online.

Teams of up to 3 members are invited to join.

There are two levels of difficulty (two divisions):

  • DivC welcomes teams, getting ready for the semi-final of ICPC. Half of the time they are going to deal with quarter-final ICPC contests, and the rest of it will be dedicated to private thematic contests. The focus of our lessons will be on coordinate compression, number theory, probability problems, network flow in graph theory.
  • DivB is for teams aiming directly at ICPC final. All the contests here are team ones. The contests are going to be of the two difficulty levels: those of semi-finals and quarter-finals of ICPC.

During the camping period there will be 10 training days and 2 days off. Training days will have the usual schedule: contest→ tutorial→upsolving. For divC there will be lectures before private contests. The lectures in the camp will be given by coaches from NUST MISiS, YarSU and ITMO on one of the platforms for video conferencing. It is the first time foreign teams are invited to DivB. DivB classes will be held in two languages: both in Russian and in English.

Arrangement fee for participants from EAEU is 5000 rubles per person.

Arrangement fee for participants from other countries is 100 euros per person.

To participate fill in the application form before the 25th of June.

Volga Camp in VK:

Official Volga Camp page:

The information about previous camps can be found on our official website:

The camp is supported by SIT(Schaffhausen Institute of Technology) and ICPC NERC HQ (ICPC: Northern Eurasia Contests Headquarters).

Read more »

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

By mohammedehab2002, 3 weeks ago, In English,

Hi everyone!

Codeforces round #649 will take place on Jun/13/2020 18:05 (Moscow time). It's rated for the second division, but, as usual, first division participants can take part out of competition.

The problems were created by me. I'd like to thank my forever orzable coordinator antontrygubO_o; my incredible army of testers dorijanlendvaj, 300iq, Osama_Alkhodairy, AmShZ, Taran_1407, TigranMec, _Aaryan_, Mohammad_Yasser, zoooma13, lavish315, Utkarsh.25dec, NOOBxCODER, and Laggy; and, of course, you-know-who for the amazing codeforces and polygon platforms.

This time, in an effort to kill type-races and because I'm lazy, you'll be given 5 problems and 2 hours to solve them.

UPD: the scoring distribution will be 750-1000-1500-2000-2500.

UPD: the editorial is out.

UPD: congratulations to the winners!


  1. Um_nik
  2. kefaa2
  3. hank55663
  4. noimi
  5. neal


  1. SanyaSaske
  2. Chloristendika
  3. el_risitas
  4. Sr.Phoulady
  5. tzxydby

Good luck & Have fun :D

Read more »

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

By Nickolas, 7 weeks ago, In English,

Microsoft's Quantum team is excited to announce the Q# Coding Contest – Summer 2020, the third in the series of Q# contests! In this contest you can put your quantum programming skills to the test, solving quantum computing tasks in Q#. The winners (as well as some lucky participants) will receive a Microsoft Quantum T-shirt!

Quantum computing is a radically different computing paradigm compared to classical computing. Indeed, it is so different that some tasks that are believed to be classically intractable (such as factoring integers or simulating physical systems) can be performed efficiently on a quantum computer. In December 2017 Microsoft introduced the Quantum Development Kit which includes the Q# programming language.

In summer of 2018 we hosted the first quantum programming contest, which included problems on introductory topics in quantum computing: superposition, measurement, quantum oracles and simple algorithms. In winter of 2019 we hosted the second quantum programming contest, which offered harder problems on those topics plus some tasks on implementing unitary transformations. This contest will introduce new types of tasks, as well as some twists on the previous ones.

The contest will run from June 19 to June 22. As usual, we will hold a warmup round the weekend before the contest, from June 12 to June 15, to give you an opportunity to get familiar with the contest environment and submission system before the main contest. Participation in the warmup round is optional.

Good luck! We hope you enjoy the contest!

The rules of the contest are:

Read more »

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

By pikmike, history, 4 weeks ago, translation, In English,

Hello Codeforces!

On Jun/11/2020 17:35 (Moscow time) Educational Codeforces Round 89 (Rated for Div. 2) will start.

Series of Educational Rounds continue being held as Harbour.Space University initiative! You can read the details about the cooperation between Harbour.Space University and Codeforces in the blog post.

This round will be rated for the participants with rating lower than 2100. It will be held on extended ICPC rules. The penalty for each incorrect submission until the submission with a full solution is 10 minutes. After the end of the contest you will have 12 hours to hack any solution you want. You will have access to copy any solution and test it locally.

You will be given 6 or 7 problems and 2 hours to solve them.

The problems were invented and prepared by Roman Roms Glazov, Adilbek adedalic Dalabaev, Vladimir vovuh Petrov, Ivan BledDest Androsov, Maksim Ne0n25 Mescheryakov and me. Also huge thanks to Mike MikeMirzayanov Mirzayanov for great systems Polygon and Codeforces.

Good luck to all the participants!

Our friends at Harbour.Space also have a message for you:

Codeforces and Harbour.Space

Hey Codeforces!

A couple of weeks ago, we had the pleasure of hosting a webinar featuring Sergey Gordeichik, CIO of the Inception Institute of Artificial Intelligence and Director of the University’s Cybersecurity Programme.

In his talk, Sergey shared his expertise and insights on how AI is being used both positively and negatively during the COVID-19 global pandemic. He touched on topics such as the ethics of using this technology, and how it was implemented during each phase of the pandemic.

We know not everyone had the chance to tune in during the webinar, so we thought you’d be interested in having a look at the slide deck of his presentation.

You can check it out here.

If this was interesting for you, let us know in the comments, and we’ll do our best to try and provide more content like this. Keep an eye out for the final two talks in our webinar series — they might be of interest to you :)

Finally, don’t forget that this July, Sergey is teaching a course on the Cybersecurity of Cloud, Big Data, and AI. The course will be 100% online, so be sure to check it out on our website if you’re interested. Here’s the link.

That’s all from us!

Good luck in the round, and we’ll see you soon!

Congratulations to the winners:

Rank Competitor Problems Solved Penalty
1 ksun48 7 188
2 saketh 7 264
3 hank55663 7 320
4 kefaa2 6 109
5 Radewoosh 6 126

Congratulations to the best hackers:

Rank Competitor Hack Count
1 Hakiobo 70
2 napgod_pk 67:-12
3 Zaher 71:-21
4 VladProg 60
5 BohdanPastuschak 62:-26

1115 successful hacks and 2003 unsuccessful hacks were made in total!

And finally people who were the first to solve each problem:

Problem Competitor Penalty
A neal 0:00
B neal 0:02
C ksun48 0:05
D BohdanPastuschak 0:05
E ksun48 0:15
F kort0n 0:51
G rainboy 0:25

UPD: Editorial is out

Read more »

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

By Ashishgup, 4 weeks ago, In English,

Hi everyone!

I would like to invite you to my fifth Codeforces Round, that I set with my friends FastestFinger, Vivek1998299 and ridbit10.

We are excited to bring another contest within a week :D

With that said, I bring to your attention our new Codeforces Round #648 (Div. 2) that will take place on Jun/07/2020 17:35 (Moscow time). If your rating is less than 2100, this round will be rated for you; otherwise, you can participate out of competition.

I would really like to thank:

You will be given 7 problems and 2 hours 15 minutes to solve them.

Good luck! :D

The scoring distribution will be: $$$500 - 750 - 1250 - 1500 - 2000 - 2500- 3000$$$

Upd: Quick Editorial — Hope you guys enjoyed the contest :D

Read more »

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