Codeforces celebrates 8 years! We are pleased to announce the crowdfunding-campaign. Congratulate us by the link ×

By MikeMirzayanov, 42 hours ago, translation, In English,

April 19, 15:35 (UTC) the VK Cup 2018 - Wild-card Round 2 will start.

Participants are invited to achieve progress in solving an unusual problem. VK Cup teams which were advanced to the Round 2 (and didn't advance to the Round 3) will take part in VK Cup 2018 - Wild-card Round 2 officially. In addition, this round will be open to the public for unofficial participation for everybody. Registration will be open for the whole round duration.

The round will be one week long. After the end latest submission (with positive score) of each participant will be judged on system tests.

Good luck!

Read more »

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

By gKseni, 41 hour(s) ago, translation, In English,

ACM-ICPC World Finals 2018 will begin on April 19, 2018 at 2:00 (UTC). This event is the main event of the year in the world of sports programming!

In the past 20 years alone, ICPC participation has increased by more than 2000%. Last year, ICPC Regional participation included 49,935 of the finest students and faculty in computing disciplines from 3,098 universities in 111 countries on six continents. A record 53,446 students and 5,411 coaches competed in ICPC and ICPC-assisted competitions last year, setting new records in participation.

Codeforces wishes the teams to show a vivid and interesting contest. We wish to find beautiful solutions, write without bugs and enjoy many accepted problems!


ACM ICPC World Finals 2018 English Broadcast:
ACM ICPC World Finals 2018 Chinese Broadcast:
ACM ICPC World Finals 2018 Arabic Broadcast:
ACM ICPC World Finals 2018, Split screen:
Broadcast from legends: Petr, tourist, Endagorion:
Watch the live translation on
Broadcast from legends: OO0OOO00O0OOO0O00OOO0OO, rng_58, FizzyDavid:
Watch the live translation on
2018 ICPC World Finals, Closing ceremony:

Read more »

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

By ICPCNews1, history, 31 hour(s) ago, In English,

More than 300,000 students competed worldwide in local and regional events with one aim — to participate in World Finals, this year hosted by Peking University in China. And today we will see who will become the world champion!

A total of 140 teams of three students will face about 12 difficult problems (we don't know the number until the problem set is released!). They will have 5 hours to solve the problems.

Although the contest itself takes 5 hours only, the whole event takes 5 days. So, what is going on during these days?

Through the registration evening, each team was given different color shirt and their badges, as well as other goodies like a backpack and a cute stuffed panda bear. We took photos and videos of each team so we can share about them on various social media.

Monday began with JetBrains TechTrek Presentation and a really fun sponsor showcase with games and activities. Contestants could participate in many things — they could try writing Chinese characters, playing traditional Chinese games or instruments, try sports in VR and more... The day was ended with a stunning concert of both traditional and contemporary Chinese music from Peking University, including some original compositions.

On Tuesday we were amazed by The Giant Wall of China. That day we become true men because the Chinese saying is that one is not fully human until he climbs the Great Wall. It was surprisingly steep. Hundreds of people from 6 continents climbed it and had amazing views of the mountains.

The afternoon was all about the opening ceremony, which had speeches, awards for many wonderful people and a presentation of all the teams, interlaced with cultural performances.

Wednesday was an important dress rehearsal. The program is similar to the competition day. It lets everyone find issues so the finals on Thursday can run as smoothly as possible. There are always some technical issues, problems with logging in, printers, etc., but they all got worked out. In the afternoon, contestants had a rest, enjoy a sponsors' ChillZone with games and do the last preparations for the tomorrow's contest.

140 teams participate in world finals. But there are many other people standing behind scenes — coaches, organizers, judges, ICPC teams (News, Services,...) and many other volunteers, totalling in about 1000 people!

The ACM ICPC world finals aren't only about competing. It is also about meeting with great programmers from all around the world, encountering other cultures and sharing the joy of programming. For me, this event is truly awesome and fun to be part of!

Read more »

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

By voidmax, 4 days ago, translation, In English,

Tinkoff Internship Warmup Round 2018 and Codeforces Round #475 will start at 17 April 2018 17:05,

Thanks to Vladislav winger Isenbaev, Alex AlexFetisov Fetisov, Ildar 300iq Gainullin, Egor egor.lifar Lifar, Philip grphil Gribov and Gleb glebodin Lobanov for testing my problems.

Special thanks to Grigory gritukan Reznikov and Nikolay KAN Kalinin for coordinating throughout the round and Mike MikeMirzayanov Mirzayanov for remarkable systems Codeforces and polygon.

Round is rated for both divisions. There are 5 problems, and 2 hours to solve them. The points distribution will be updated later.

Good luck and Have fun!

UPD The points distribution for both divisions: 500 — 1000 — 1500 — 2000 — 2500

UPD Congratulations to the winners!

Div 1:

Div 2:

UPD >>> Editorial <<<

Read more »

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

By scott_wu, history, 5 days ago, In English,

Hey all!

For the past few months, vnovakov and I have been working on a product called Lunch Club that connects people algorithmically in cities and events around the world. We'll be running Lunch Club at ICPC WF this week as a way for contestants and alums to get to meet one another. Lunch Club will be making matches for 1:1 lunches Monday and Tuesday at the hotel. If you're at ICPC and are interested in meeting cool people, sign up here!

Read more »

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

By dj3500, 8 days ago, In English,

UPDATE: the editorial is here

Hello CodeForces! This year again, I'd like to invite you to the online mirror of an open championship of Switzerland called HC2 (the Helvetic Coding Contest). A mirror was also held last year and two years ago.

The Helvetic Coding Contest is a yearly contest held at the EPFL in Lausanne by the PolyProg association. The contest itself took place on March the 17th, but the online mirror is scheduled on Saturday, 14th of April, 10:05 Moscow time. The duration is 4:30.


  • you can participate in teams or individually (1-3 people),

  • standard ACM-ICPC rules (no hacking),

  • the contest is not rated,

  • if you have participated in the onsite contest, please do not participate in the mirror.

The contest this year is Star Wars-themed. It features 6 series of 2-3 related tasks with increasing difficulty (easy/medium/hard). Sometimes it may be the case that a solution for the hard version solves all of them, but usually not. We think that the problemset is diverse and interesting, and while the contest is ACM-style, you will find that some problems are not so standard. Most easy&medium problems are even solvable in Python, so you can also recommend this contest to your newbie friends :) We promise to post a nice editorial as soon as the contest ends.

Acknowledgments: the problems were set by maksay, boba5551, mukel, DamianS, esrever, and myself. Thanks also go out to people who helped with the statements and testing: bgamlath, Michalina Pacholska (who also draws the cows), and KAN for CodeForces coordination, as well as everyone involved in the actual onsite contest, who are too many to name here. We also thank the sponsors Open Systems and AdNovum. Lastly, thanks to MikeMirzayanov for CodeForces and Polygon (which was used to prepare the problems).

Finally, in a bit of autopromotion, note that you can use Hightail to automatically test your solutions :) Good luck!

After-contest UPDATE:

>>> Editorial <<<

Feel free to ask questions in this topic.

Thanks to everyone who participated! We hope you have enjoyed the problems despite the interruption in judging. The top 4 teams, who have solved all problems, are:

  1. SpicyFriedTomatoes: mjy0724, OO0OOO00O0OOO0O00OOO0OO

  2. (`・ω・´): King_George, OhWeOnFire, FizzyDavid

  3. ymd队长ioi捧杯超稳: yjq_naiive, fjzzq2002, yanQval

  4. ★SweeT DiscoverY★: dotorya, cki86201, zigui

See you again next year!

Read more »

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

By MikeMirzayanov, 10 days ago, translation, In English,

Hello Codeforces!

On April 10, 14:35 UTC Educational Codeforces Round 42 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 Div. 2. It will be held on extented ACM ICPC rules. After the end of the contest you will have one day to hack any solution you want. You will have access to copy any solution and test it locally.

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

The problems were prepared by me and Alex fcspartakm Frolov.

We'd like to thank Nikolay KAN Kalinin, Grigory gritukan Reznikov, Vladimir Vovuh Petrov for the testing and help in preparing the round.

Good luck to all participants!

UPD: Some information from Harbour.Space U

The third Hello Programming Bootcamp finished as teams from around the world learned, competed, and got to know each other in the cities of Kollam and Moscow.

“I'm positively surprised with the level and number of Indian teams. I believe when following a systematic and regular training schedule — they will certainly attend top world records in programming” says Mike MikeMirzayanov Mirzayanov.

The results of the India boot camp are as follows:

We would like to congratulate the top teams from the India side in both divisions A and B — and especially recognise division A’s winner: Team SDV — Vasily platypus179 Alferov, Vaibhav gvaibhav21 Gosain, Motasem Motarack AL-Kayed sponsored by Social Discovery Ventures, and winners of the Educational Codeforces Round 39.

The division A winners are: Team SDV (platypus179, gvaibhav21, Motarack), TheVindicators (IIIT Kharagpur) (evil666man, Chenghiz), DomiNUS (NU of Singapore) (vodanhna, darknsux, minh141198).

The division B winners are: BEU Programmers (Baku Engineering University) (mahmud2690, Mamedov, fuck_coderinuse), Penza State University (Fortin, WooDeND, Key_J) and Sab_lite_hai (IIT(BHU),Varanasi) (Enigma27, Dsingh_24, nitishk24).

All results from India side
All results from Russia side

From the ever present in ACM World Finals city of Moscow, to the new-comer on the world stage city of Kollam — Hello India x Russia Programming Bootcamp showcased heart, passion, and a universal drive towards a better competition.

“It's the first time I participate at Hello ACM-ICPC Bootcamp in Asia and I admire local hospitality and students motivation. Everyone seems to be eager to learn, participants stay very late upsolving the contest problems and revising the topics they were thought during the day” states Gleb GlebsHP Evstropov, The Coordinator of the Programming Committee.

The latest in world finals simulation training would not be possible without the bronze sponsorship of VTB, the institute with the most extensive international network of any Russian bank, boasting more than 30 banks and financial companies in more than 20 countries.

Fill out this form and we will keep you up to date on our next boot camp!

UPD: Tutorial

Read more »

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

By Zlobober, 13 days ago, translation, In English,

Hi everybody! Tomorrow at 12:00 UTC there will be the third round of Yandex.Algorithm 2018. You can enter contest from the Algorithm main page.

This round is written by me with a great help of GlebsHP and everybody who was testing the round. While solving the problems, you will be helping some of my colleagues here at Yandex to deal with some practical (or not) situations. Good luck to everybody!

Enter the contest

UPD: Round is over! Congratulations to Merkurev, j_______________________ and Um_nik who got first three places in the standings.

The elimination stage is over and we can now find out who are the contestants that are going to compete in the Algorithm Finals in Saint Petersburg: elimination scoreboard.

There is also a round editorial (ENG only) available.

Good luck and see you later!

Important information for Opencup participants

Read more »

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

By vntshh, 2 weeks ago, In English,

Hi Codeforces!

Programming Club, IIT Indore and Euristica 2018 are proud to present our flagship event, Divide By Zero! The contest will take place on Saturday, 7th April at 9:35PM IST.

Prizes : Codeforces T-shirts for top 15 participants overall and top 15 participants in India.

Thanks to the following people for making the round possible :

There are 8 problems, and 2.5 hours to solve them. The points distribution will be updated later.

Euristica, sponsored by Arcesium is the inaugral Programming festival of IIT Indore. It comprised of 10 events this year, spanning across various domains like Competitive Programming, Application Development, Cyber Security and Machine Learning. For more information, visit .

Hope you guys enjoy the contest! See you on the leaderboard!

UPD: The scoring distribution is 500-1000-1500-2000-2250-2500-3000-3500.

UPD 2: Do give your feedback here : Would love to hear your feedback, since that would help us get better!

We hope you guys enjoyed the contest and found the problems interesting.

UPD 3: You can find the editorial here.

Here are the list of winners who won Tshirts. We will contact you guys soon. Congrats!

Overall Top 15:


  2. Benq

  3. Syloviaely

  4. ainta

  5. ko_osaga

  6. dotorya

  7. Um_nik

  8. uwi

  9. izban

  10. SpyCheese

  11. dreamoon

  12. ilyakor

  13. chemthan


  15. eddy1021

Top 15 in India:

  1. gvaibhav21

  2. evil666man

  3. Baba

  4. yashChandnani

  5. teja349

  6. jtnydv25

  7. ajinkya1p3

  8. polingy

  9. hitman623

  10. GT_18

  11. Equinox

  12. sinus_070

  13. ShivRam

  14. abisheka

  15. nishant_coder

Read more »

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

By MakeRussiaGreatAgain, history, 13 days ago, In English,

Hi all!

Soon thousands of people will participate in Google Code Jam qualification round. There is a problem though: Code Jam website doesn't offer a good place to discuss the problems afterwards. There is an official Google group, but it is a poor place for discussion: not only is it premoderated, but they also reject/delete useful posts, like this one.

There is a solution: point people at Codeforces, the best place to discuss programming competitions! If we just start posting messages about Codeforces to the Google group, they will probably delete them. But there is something else that people (sometimes) read: your code. For many years, Code Jam allowed anyone to read any participant's code after the contest. While the current system doesn't support this yet, this is something that Code Jam team is willing to resolve. So, my idea is for as many people as possible to add a comment like this to every Code Jam submission:

// Discuss this problem on Codeforces:

Or better, use a link to a post about the specific round. This way, those who try to learn by looking at other's code will find out about Codeforces, which is good.

Do you have any similar ideas?

Read more »

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