Hi Codeforces!↵
↵
It's our pleasure to announce the 10th edition of Bubble Cup. Bubble Cup is a programing competition organized by [Microsoft Development Center Serbia (MDCS)](https://www.microsoft.com/sr-latn-rs/mdcs), and will be held this weekend. Contest will take place on [Saturday, 2nd of September at 09:30 UTC](https://www.timeanddate.com/worldclock/fixedtime.html?day=2&month=9&year=2017&hour=9&min=30&sec=0), in Belgrade, Serbia. Live results will be available on [the official Bubble Cup website](http://bubblecup.org/CompetitorsCorner/Results/Live) (results will be frozen during the last hour of the competition). Winners will be announced at the closing ceremony.↵
↵
Just like the two previous editions, this final will be followed by an online mirror competition on Codeforces. Mirror will take place on [Sunday, 3rd of September at 10:00 UTC](https://www.timeanddate.com/worldclock/fixedtime.html?day=3&month=9&year=2017&hour=10&min=0&sec=0). Contest will last for 5 hours and ACM ICPC rules will be applied. It will be a competition for teams of 1-3 members. There will be at least eight problems.↵
↵
We kindly ask participants of the onsite final to hold off discussing problems publicly until the mirror is over.↵
↵
Contest was mainly prepared by employees of MDCS. We give our thanks to Nikolay Kalinin ([user:KAN,2017-08-30]) for the round coordination, Mike Mirzayanov ([user:MikeMirzayanov,2017-08-30]) and the team behind Codeforces and Polygon platforms. Special thanks goes to [user:knightL,2017-09-02] for helping out with problem testing.↵
↵
![ ](/predownloaded/7b/32/7b32fb4c012b2362ac5a960a571cdbd63c19a42b.png)↵
↵
The contest will be unrated. The reason for this is because rules of this contest are not common for Codeforces. Also, it is only a mirror of an onsite competition.↵
↵
Editorial will be available in [the booklets section on the Bubble Cup website](http://www.bubblecup.org/Home/Booklets) a few hours after the online mirror ends.↵
↵
EDIT: ↵
Here you can find mirror contests from the previous two finals: ↵
[Bubble Cup 8 — Finals [Online Mirror]](http://codeforces.net/contest/575) ↵
[Bubble Cup 9 — Finals [Online Mirror]](http://codeforces.net/contest/717)↵
↵
EDIT #2: ↵
The contest has started. You can see the live results on [the Bubble Cup website](http://bubblecup.org/CompetitorsCorner/Results/Live).↵
↵
EDIT #3: ↵
Here are [the results of the onsite finals](http://bubblecup.org/CompetitorsCorner/Results/BBC10Final). ↵
↵
The top three winning teams of the online mirror contest: ↵
1. [user:ainta,2017-09-03] ↵
2. [user:tourist,2017-09-03], [user:VArtem,2017-09-03] ↵
3. [user:zigui,2017-09-03], [user:cki86201,2017-09-03], [user:dotorya,2017-09-03] ↵
Complete rankings are listed on [this link](http://codeforces.net/contest/852/standings).↵
↵
Congrats to all winners and kudos to [user:ainta,2017-09-03] for solving all problems!↵
↵
You can find contest editorial [here](http://bubblecup.org/Content/Media/Booklet2017.pdf).↵
↵
EDIT #4: ↵
Thank you for your comments. While our official and [user:ainta,2017-09-04]'s solution matched on the test cases provided we found out from the comments here that there are some edge cases we didn't handle correctly and don't know how to handle properly given the constraints. Because of that we decided to remove the problem from the set and reset all penalties people received from the incorrect submissions. Sincere apologies to everyone affected by this.↵
↵
↵
It's our pleasure to announce the 10th edition of Bubble Cup. Bubble Cup is a programing competition organized by [Microsoft Development Center Serbia (MDCS)](https://www.microsoft.com/sr-latn-rs/mdcs), and will be held this weekend. Contest will take place on [Saturday, 2nd of September at 09:30 UTC](https://www.timeanddate.com/worldclock/fixedtime.html?day=2&month=9&year=2017&hour=9&min=30&sec=0), in Belgrade, Serbia. Live results will be available on [the official Bubble Cup website](http://bubblecup.org/CompetitorsCorner/Results/Live) (results will be frozen during the last hour of the competition). Winners will be announced at the closing ceremony.↵
↵
Just like the two previous editions, this final will be followed by an online mirror competition on Codeforces. Mirror will take place on [Sunday, 3rd of September at 10:00 UTC](https://www.timeanddate.com/worldclock/fixedtime.html?day=3&month=9&year=2017&hour=10&min=0&sec=0). Contest will last for 5 hours and ACM ICPC rules will be applied. It will be a competition for teams of 1-3 members. There will be at least eight problems.↵
↵
We kindly ask participants of the onsite final to hold off discussing problems publicly until the mirror is over.↵
↵
Contest was mainly prepared by employees of MDCS. We give our thanks to Nikolay Kalinin ([user:KAN,2017-08-30]) for the round coordination, Mike Mirzayanov ([user:MikeMirzayanov,2017-08-30]) and the team behind Codeforces and Polygon platforms. Special thanks goes to [user:knightL,2017-09-02] for helping out with problem testing.↵
↵
![ ](/predownloaded/7b/32/7b32fb4c012b2362ac5a960a571cdbd63c19a42b.png)↵
↵
The contest will be unrated. The reason for this is because rules of this contest are not common for Codeforces. Also, it is only a mirror of an onsite competition.↵
↵
Editorial will be available in [the booklets section on the Bubble Cup website](http://www.bubblecup.org/Home/Booklets) a few hours after the online mirror ends.↵
↵
EDIT: ↵
Here you can find mirror contests from the previous two finals: ↵
[Bubble Cup 8 — Finals [Online Mirror]](http://codeforces.net/contest/575) ↵
[Bubble Cup 9 — Finals [Online Mirror]](http://codeforces.net/contest/717)↵
↵
EDIT #2: ↵
The contest has started. You can see the live results on [the Bubble Cup website](http://bubblecup.org/CompetitorsCorner/Results/Live).↵
↵
EDIT #3: ↵
Here are [the results of the onsite finals](http://bubblecup.org/CompetitorsCorner/Results/BBC10Final). ↵
↵
The top three winning teams of the online mirror contest: ↵
1. [user:ainta,2017-09-03] ↵
2. [user:tourist,2017-09-03], [user:VArtem,2017-09-03] ↵
3. [user:zigui,2017-09-03], [user:cki86201,2017-09-03], [user:dotorya,2017-09-03] ↵
Complete rankings are listed on [this link](http://codeforces.net/contest/852/standings).↵
↵
Congrats to all winners and kudos to [user:ainta,2017-09-03] for solving all problems!↵
↵
You can find contest editorial [here](http://bubblecup.org/Content/Media/Booklet2017.pdf).↵
↵
EDIT #4: ↵
Thank you for your comments. While our official and [user:ainta,2017-09-04]'s solution matched on the test cases provided we found out from the comments here that there are some edge cases we didn't handle correctly and don't know how to handle properly given the constraints. Because of that we decided to remove the problem from the set and reset all penalties people received from the incorrect submissions. Sincere apologies to everyone affected by this.↵
↵