By Alex_KPR, 3 days ago, translation, In English,

Hi everybody!

The VK Cup is in full action down here!

Zlobober has already given a quick look at the main activity of the guys who got to warm summer St.Petersburg yesterday and checked in the luxurous Courtyard Marriott hotel. Yes, the program is eventful and madly entertaining: yesterday they walked on the rooftops in the heart of the cultural capital of Russia. Today they had lunch on a little ship during a tour along rivers and canals. Besides, the weather has been really good to us!

This time, all the serious events take place opposite the Kazan Cathedral in coworking with VK, in the freedom space. And the morning started with a crazy test round with two spectacular problems, where the first problem was a quiz problem with ten test questions. SobolevTeam achieved a landslide victory. They used a cool idea: according to the Codeforces contest rules, hacks show the contestant's response. The most important thing here is the expected valid result. That's why the team quickly sent and blocked their solution and in the end, didn't submit the problem :P. But their hacks helped them to quickly find the correct responses and then they hacked everybody whose response does not match the correct one. And what do we have in the end? 19 successful hacks!

During the tour the guys had fun reaching for metallic structures of bridges and feasted on tasty food. The most responsible ones studied the rules of the forthcoming CodeGame, thinking through non-trivial strategies. Oh yes, right now the CodeGame Coding phase is in progress!

The guys need to think through the strategy of controlling a battle mage: collect heal and mana potions, cast all sorts of stuff correctly. I love such game-based events as it is a great opportunity to get used to the work place and get our hands working. =)

In the evening, after a small tour around the VK office, the participants will have a TechTalk with the developers and a CodeGame Show that will determine the team with the most effective mage-controlling strategy.

Let's follow the updates on the event together!

Read more »

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

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

Hi everybody!

Yesterday, on July 24th, we started VK Cup 2015 Finals! During the day all participants of the competition successfully went to the St. Petersburg, those who got here earlier enjoyed a great trip over the roofs of this beautiful city. And now we are waiting for a practice round that will happen in a few hours, giving participants an option to test their contest environment and do their best while solving several usual (and not only usual) problems. After the lunch, contestants will compete in the first round of the Finals that is called CodeGame Coding, where they have to write the strategy for a battle wizard.

During today and tomorrow not all of the Codeforces features will be available. On this weekend you may take a rest from writing contests and enjoy the results of the one of the biggest competitions of 2015.

The results of the practice round will be available for spectators by this link. Stay tuned!

Read more »

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

By Sammarize, 8 days ago, translation, In English,

Good day for all!

I invite you to participiate in the Codeforces round 313, which is prepeared by me and tunyash. Each of us is prepared four rounds then it is our fifth of ninth round to your notice. I figured out almost all problems (except D div.1), wrote the statements and analysis of all the problems, and tunyash has developed all problems.

Gerald is not coordinator yet and you probobly missed him. In this round you will meet him again and help him in his ordinary life problems.

I want to thank Zlobober, our translator Maria Belova (Delinur) and MikeMirzayanov and all Codeforces team for this platform.

This round will be held in unusual time — 17:00 Moscow Time.

Contest finished! Welcome to editoral:
Short editoral.
Extended editoral.

Div.1 scoring distribution:

500 — 1000 — 1500 — 2250 — 2250

Div.2 scoring distribution:

500 — 1000 — 1500 — 2000 — 2500

I wish you to enjoy solving problems!

Congratulations to winners!

Div. 1:
1. TooSimple
2. qwerty787788
3. Baz93
4. ainu7
5. Endagorion

Div. 2:
1. goons_will_rule
2. lbn187
3. crawling
4. loveannie
5. Jagabee

Read more »

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

By marek.cygan, 11 days ago, In English,

I would like to recommend Marathon 24, an annual team programming competition — I have participated in the first two editions and I had lots of fun. Problem writers are also welcome, details are given below.

Hello everyone!

Marathon24 is getting the contest ready for its third edition this fall (online qualifying round on October 17, 2015; and the Grand Final in Warsaw on November 28-29, 2015)!

Meanwhile, we are looking for support in preparing the tasks. We have two types of tasks — in the qualifying round we have optimization and algorithmic problems, each with 10 tests. In the finals there are game-like problems divided into rounds, which require building a strategy, observing the opponents’ moves and being alert for the whole 24 hours of the contest.

Here you can find the problem statements from previous editions of Marathon24:

We are also looking for tasks for the qualifyng round and task concepts for the finals. If you have an interesting idea for the task and want to prepare it for Marathon24 — contact us!

Any questions, doubts, suggestions? We’ll be more than happy to answer!

Send us an email to and become a contributor to Marathon24! We are waiting for your ideas till Thursday, July 23, 2015.

For more information about the Marathon24 contest, please visit:

Read more »

Tutorial of ACM-ICPC
  • Vote: I like it  
  • +159
  • Vote: I do not like it  

By kuviman, history, 13 days ago, translation, In English,

Hello everyone!

Not so long ago summer trainings finished in Saratov State University, and to make it easier to monitor the success of our programmers we introduced a feature to add custom ratings. Now you also have this opportunity!

Currently rating is calculated as follows: overall rating is equal to the arithmetic mean of the ratings for each contest in which the user has participated. Contest rating depends on the ratio of problems solved by user and a number of problems solved by winner, as well as user's place in the contest. Also points for upsolving are added to the contest rating. There is a rumor that such method of calculating rating first was used in ITMO. More formally:


  • R — contest rating,
  • n — maximum of 50 and number of contest participants,
  • place — 1-indexed used's place in the contest,
  • solved — number of solved problems by the user,
  • maxSolved — number of solved problems by the winner,
  • upsolved — number of upsolved problems by the user,
  • problemCount — total number of problems in the contest.

If a user participated in a team, his place equals to the place of the team in this contest.

To create a custom rating in the group you have to be its manager. There can be multiple ratings in one group with different sets of contests. There is a special button to create a rating in the group sidebar:

If you press the button rating creation form will appear:

Users are added to the rating only if they have participated at least in the given percent of all contests of this rating. By default one have to participate in 50% of all the contests.

If you wish you can set rating freeze date: upsolving after that date will not affect the rating.

Also now you can view status in groups: it shows only submissions for the group contests.

Good luck with training in Codeforces groups!

Read more »

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

By AmrMahmoud, 2 weeks ago, In English,

Hello Codeforces!

I'd like to invite you to Codeforces Round #312 (Div. 2). It'll be held on Tuesday, July 14th at 18:00 MSK.(notice the unusual starting time) and as usual Div. 1 participants can take part out of competition.

This is my second round after Codeforces Round #287 (Div. 2). :)

Great thanks to Maxim Akhmedov (Zlobober) for his great help in preparing the contest, Maria Belova (Delinur) for translating the statements into Russian, Mike Mirzayanov (MikeMirzayanov) for the great Polygon platform and Polygon's developers team for their hard work in enhancing Polygon system.

The scoring distribution will be announced later.

Good luck everyone and I hope you'll find the problems interesting. ;)

UPD1 Scoring distribution will be 500-1000-1500-2250-2500.

UPD2 Contest is delayed 10 mins. Sorry for inconvenience.

UPD3 Contest is finished. Thank you everyone!

UPD4 System testing finished. Congratulations to the winners.

You can find the editorial here.

Read more »

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