By RussianCodeCup, 2 years ago, translation, ,

Hello everyone!

Top 200 from the First Qualification Round have already advanced to the Elimination Round, but the other paricipants still strive to get there. If you haven't qualified yet, we invite you to take part in the Second Qualification Round that will take place this Sunday, April 16, at 12-00 Moscow Time. Best 200 participants will advance to the Elimination Round, other participants can try again in the Third Qualification Round.

Good luck to everyone, see you at http://russiancodecup.ru!

•
• +41
•

 » 2 years ago, # | ← Rev. 2 →   0 If I qualified to the elimination round, how can I receive the certificate and I'm live in Egypt ?!
 » 2 years ago, # | ← Rev. 7 →   +18 Has anybody received their shirts from last year?EDIT: oops... that was an unfortunate typo!
•  » » 2 years ago, # ^ |   0 Don't be so critical!
•  » » » 2 years ago, # ^ |   +18 Oh my gosh — thanks :P That wasn't intended!
•  » » 2 years ago, # ^ |   +18 http://codeforces.com/blog/entry/51001#comment-349145by the way, the typo was really funny :D
•  » » » 2 years ago, # ^ |   0 Thanks for the link! Did you end up with a reply?
•  » » » » 2 years ago, # ^ |   +13 Yes. They said there was a problem with the post and they're going to send it again.
 » 2 years ago, # |   +21 I qualified in the previous round. Can I take part in this round unofficially?
 » 2 years ago, # |   +17 How to solve C?
•  » » 2 years ago, # ^ |   0 Minimize the number of cycles.
•  » » 2 years ago, # ^ |   0 The answer to the fully given array = N — number of cycles. So you collect all cycle segments (e.g. ? -> 1 -> 4 -> 5 -> ?) where ? is controlled by you. If you have one segment — you have no choice (just put one element you have). Otherwise you can connect all segments into a one cycle (e.g. end0 -> start1, end1 ->start2, ... endI->start0), thus maximizing the answer.
•  » » » 2 years ago, # ^ |   +9 The edge here signifies (ind,arr(ind)) ???
•  » » » » 2 years ago, # ^ |   0 Yes
 » 2 years ago, # |   0 I have a feeling that E can be solved using MO's Algorithm but I don't know how xD So Can Someone Help Me ?
•  » » 2 years ago, # ^ |   0 Yes, it does. I solved it by MO.
•  » » » 2 years ago, # ^ |   0 Very Nice, So chemthan, Please explain your solution .
•  » » 2 years ago, # ^ |   0 I tried to, but got TLE :(First, transform array into prefix sums + lift it up by 100000 to avoid negative values. So our goal is to find longest interval such that arr[l] = arr[r] inside the quered interval.We start MO's algorithm and check intervals. We maintain: for each value: a deque of indices of this value in our current interval (easy to add/remove index from any side); a multiset of maximal lengths for each value (that is multiset of all deque[val].front() - deque[val].back()). The multiset is also easy to update since we can compute the length for the value from the deque. The answer for current query is then the largest value in the multiset. At the end of block check, we can clear the multiset directly, and clean the deque's by collapsing the current interval.PS: I used map instead of multiset.
•  » » » 2 years ago, # ^ | ← Rev. 3 →   +8 My solution is similar to hellman_'s one, except a trick to avoid log factor in the complexity :). Maintain two array a[], b[]. When adding/removing a segment of leng d we add/substract one from a[d / sqrt(N)] and b[d]. To find the maximal len, we need only O(sqrt(N)).
•  » » » » 2 years ago, # ^ |   0 Nice trick!
 » 2 years ago, # |   +42 Will the problems get added to Gym like Qualification Round 1?
•  » » 2 years ago, # ^ |   0 Sure. You will be able to get it later in the trainings section
•  » » » 2 years ago, # ^ | ← Rev. 2 →   +10 when?It hasn't been posted yet.
•  » » » » 2 years ago, # ^ |   0