Блог пользователя Alexdat2000

Автор Alexdat2000, 3 года назад, По-русски

Привет всем на Codeforces.com!

В этом раунде я (Alexdat2000) и двое моих друзей — FairyWinx и sevlll777 — подготовили для вас 6 задач (одна из которых разбита на две подзадачи), а у вас будет 2 часа на их решение. Приглашаем всех перейдите по ссылке: Codeforces Round 862 (Div. 2) в 02.04.2023 17:35 (Московское время). Этот раунд будет рейтинговым для всех участников с рейтингом строго меньше 2100.

А теперь несколько благодарностей:

Разбалловка: 500 — 750 — 1250 — 1750 — 2250 — (1750 + 1750).

UPD: Разбор

UPD-2: Поздравляем победителей раунда!

Топ 5 официальных участников:

Место Участник Задач решено =
1 China b6e3 6 6987
2 Taiwan Darren0724 6 6683
3 cpbeginner 6 6520
4 China suckthembi 6 6269
5 GOD_0F_DEATH 6 5915

Топ 5 всех участников:

Место Участник Задач решено =
1 China EvenImage 7 8214
2 China SSerxhs 7 7786
3 China Sugar_fan 7 7750
4 Japan maspy 6 7623
5 Japan noimi 6 7255

Участники, пославшие первое правильное решение по задачам:

Задача Участник Штраф
A A_G 0:00
B USA Geothermal 0:02
C USA BucketPotato 0:08
D Hungary peti1234 0:11
E China b6e3 0:11
F1 BeyondHeaven 0:26
F2 China SSerxhs 1:37

  • Проголосовать: нравится
  • +362
  • Проголосовать: не нравится

»
3 года назад, скрыть # |
 
Проголосовать: нравится +59 Проголосовать: не нравится

Very important poll!

1.8 PvP or 1.19 PvP?
»
3 года назад, скрыть # |
 
Проголосовать: нравится +47 Проголосовать: не нравится

As a setter, I want to thank 9kin for what you are

»
3 года назад, скрыть # |
 
Проголосовать: нравится +15 Проголосовать: не нравится

Testers from every colors

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

pls not maduka again :)

»
3 года назад, скрыть # |
Rev. 2  
Проголосовать: нравится +3 Проголосовать: не нравится

As a future participant,I am excited

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Hope to solve problem C this time.

»
3 года назад, скрыть # |
 
Проголосовать: нравится +82 Проголосовать: не нравится

Not a tester but I'm asking you in unmysterious language to give me contribution

»
3 года назад, скрыть # |
 
Проголосовать: нравится +49 Проголосовать: не нравится

As a taster, I recommend participants eat a steak before the round

»
3 года назад, скрыть # |
 
Проголосовать: нравится +12 Проголосовать: не нравится

As a tester, I very regret my current rating is 2400-3...

»
3 года назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

Contest and Ramadan , it is fantastic :)

»
3 года назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

Question, when a problem has an easy and hard version with scores of (1500 + 2000), does that mean the easy version of the problem is about as hard as a problem worth 1500 points and the hard version is about as hard as a problem worth 3500 points? Or is there no correlation?

»
3 года назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

as a tester, best of luck!!!

»
3 года назад, скрыть # |
 
Проголосовать: нравится +2 Проголосовать: не нравится

After Chinese cp round, hope this cf round can comfort me.

»
3 года назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

Hope to be a candidate master

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Hope to be a candidate master

»
3 года назад, скрыть # |
 
Проголосовать: нравится +22 Проголосовать: не нравится

As an author, I am not red

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Good luck?

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Seems to blue contest for cyans

»
3 года назад, скрыть # |
 
Проголосовать: нравится +8 Проголосовать: не нравится

As a tester I can say that I am a tester :-)

»
3 года назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

Good luck!)

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Wasted so much time on F1, could have easily done D during that time.

»
3 года назад, скрыть # |
 
Проголосовать: нравится +68 Проголосовать: не нравится

Fun fact: problem F2 was initially proposed as Div2D 💀

»
3 года назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

E can be easily solved with Mo on subtrees

»
3 года назад, скрыть # |
 
Проголосовать: нравится +10 Проголосовать: не нравится

Had to reread elementary school lesson to solve C lol

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Contest was good, but problem C took a lot of time due the fact that you had to deal with decimals which caused a lot of troubleshooting.

»
3 года назад, скрыть # |
 
Проголосовать: нравится +15 Проголосовать: не нравится

What is the solution for D?

»
3 года назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

How to solve c as i got the equation as if (b-k)^2 — 4ac is less than 0 then there is no intersection when k = some value other wise there exist atleast one point where intersection exist. Is this correct approach?

»
3 года назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

What does pretests passed mean?

  • »
    »
    3 года назад, скрыть # ^ |
     
    Проголосовать: нравится +1 Проголосовать: не нравится

    In Div 2 and Div 1 contests any test is either a system test either a pretest. When you submit a solution during the contest, it is only tested on the pretests. But it doesnt mean that your solution is correct , though. Because after the contest every solution is also tested on the system tests, and there it is decided, whether it is AC or not.

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I think E can be solved using the small to large merging technique.

»
3 года назад, скрыть # |
 
Проголосовать: нравится +17 Проголосовать: не нравится

wasted so much time on problem C to learn about parabolas and their tangents

»
3 года назад, скрыть # |
Rev. 5  
Проголосовать: нравится +12 Проголосовать: не нравится

I know a lot of you wont agree with me but... please make this round unrated (or better fix my resubmission problem) :(

I got huge penalty because of resubmission after getting a lot of WA tc1 in problem C because of the strict checker thing. I know I am not the only one facing this problem so no hate but please reconsider

EDIT:it seems like my previous submission was marked as skipped now, thank you!!

Edit2: NOPE... it just shows "skipped" but still got +4 (lose 200 point). L

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Imagine praying that there will be no graph problems or at least it will be F or smth and then D and E are both graphs. At least D was meth and binary lifts. Also C was really fun.

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Good contest! Liked idea of D. C was also alright, but it caused a lot of troubleshooting in my code.

»
3 года назад, скрыть # |
Rev. 3  
Проголосовать: нравится +9 Проголосовать: не нравится

Solved A-D. Tried Mo's algorithm for E but got TLE.

A: Let A be the xor-sum of a[i], then the xor-sum of b[i] is A (n is even) or A^x (n is odd).

B: Find the minimum char in the string, find the last occurence of it, and move it to the head of string.

C: By the discriminant of quadratic equation we can find that k is valid is equivalent to delta=(b-k)^2-4*a*c<0, which is, abs(k-b)<2*sqrt(a*c). We can find the valid k by binary search.

D: Let eccentricity of node u: ecc[u] = the distance from u to v where v is the furthest node from u. Then we can guess by examples: for certain k, all nodes u with ecc[u]>=k can reach each other in G_k, and nodes with ecc[u]<k are isolated. We can calculate ecc[u] by dfs and maintaining distances from current node using segment tree. (I wasted much time for thinking how to solve D by dsu)

  • »
    »
    3 года назад, скрыть # ^ |
     
    Проголосовать: нравится +8 Проголосовать: не нравится

    got E accepted with Mo. If you calculated maximum of numbers with set, that's slow

  • »
    »
    3 года назад, скрыть # ^ |
    Rev. 2  
    Проголосовать: нравится +19 Проголосовать: не нравится

    You can solve E without Mo's.

    Bucket nodes based on their values. Iterate over those buckets in decreasing order of value. Then, only buckets of size 2 matter:

    • If the bucket has size 1, then it is impossible to be a "value"
    • If the bucket has size 3, then every edge cut would result in a subtree having $$$\geq$$$ 2 nodes with that value. In this case, we can assign every un-assigned edge that value and stop here.

    Consider the first time we encounter a bucket of size 2. Call the nodes $$$a$$$ and $$$b$$$, and their value $$$k$$$. If an edge is not on the path from $$$a$$$ to $$$b$$$, then it must have the value $$$k$$$. We can assign them by iterating over every node on the path from $$$a$$$ to $$$b$$$, and then doing a DFS from each of these nodes, avoiding moving on edges on the path from $$$a$$$ to $$$b$$$ (since we still don't know their value yet).

    After this, our graph has been reduced to a path, making things easier. The next bucket of size 2 (say $$$u$$$ and $$$v$$$), we can set all the edges that aren't on the intersection of $$$Path(a, b)$$$ and $$$Path(u,v)$$$. You can do this by only doing the above DFS from two nodes (think about how you would implement this). The remaining edges are once again a path, so we can keep repeating this step.

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Can E be solved by HLD?
If so, then I know I should have finished that part few days ago.

»
3 года назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

Very hard D

»
3 года назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

Can someone tell how to solve C, i used (b-k)^2-4ac, but got TLE on test 3

  • »
    »
    3 года назад, скрыть # ^ |
     
    Проголосовать: нравится +1 Проголосовать: не нравится

    you can search for the nearest k from b by sorting the k's and then use binary search

  • »
    »
    3 года назад, скрыть # ^ |
     
    Проголосовать: нравится +1 Проголосовать: не нравится

    yes, the parabola does not touch any line if (b-k)^2 < 4ac . so you need to find a value of k which satisfies that inequality from the given values of k, which can be done using binary search to avoid TLE

  • »
    »
    3 года назад, скрыть # ^ |
    Rev. 4  
    Проголосовать: нравится 0 Проголосовать: не нравится

    You checked whether a parabola can have a suitable line individually for each line which requires O(N * M) total Time, hence the TLE. In the quadratic formula, you know that D = (b — k) ^ 2 — 4 * a * c, here the only value that is not constant when the slopes vary is (b-k), now as you may know for a line to not touch(D == 0) / intersect(D > 0) the parabola, the equation D have to be has to be a negative value i.e D < 0. Since the only varying quantity in the equation is (b-k), you can try to reduce the absolute difference between b & k. A fast way to do this is by sorting all the given slopes and then binary searching on the nearest value to the selected b. This would reduce the Time Complexity to O(M * log(N)). To know about finding the closest value from a given set of integers to a certain value N in (O(log N)), you can refer to this article: https://www.geeksforgeeks.org/find-closest-number-array/

»
3 года назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

I will be NEWBIE (❁´◡`❁)

»
3 года назад, скрыть # |
Rev. 2  
Проголосовать: нравится +26 Проголосовать: не нравится

Due to CF lag in last several minutes I was unable to send E to AK the contest(((

UPD: solution got AC :/

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

can someone hack https://mirror.codeforces.com/contest/1805/submission/200452160 pls?I had been debug for 1 hour but still got wrong on pretest two.

»
3 года назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

Is E solvable by rerooting technique?

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Bruh my B FST'ed

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Can someone tell me why this code for D is wrong? 200453419

»
3 года назад, скрыть # |
Rev. 2  
Проголосовать: нравится +5 Проголосовать: не нравится

My math brain trick me to calculate the equation of 2 tangents instead of going for the obvious approach. Specialist here we go.

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

F1>>>>D,but both have same score.

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

guys, I can do binary search, greedy, dp just fine because there are many good easy-medium problem for those categories. But for graph, it seems like the good problem is rated >1900. How should I practice graph?

»
3 года назад, скрыть # |
 
Проголосовать: нравится +19 Проголосовать: не нравится

Beautiful contest. Absolutely loved the problems! Couldn't solve C (cheers to negative delta :P), but grateful for the learning.

»
3 года назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

Finally did my first ever TREE question in contest. Solutions:

A. If n is even with xor of all not equal to 0 then ans is NO, else answer is always xor of all elements of array.

B. Find the smallest char in string and put it at first, well sorry for poor english. I printed that char, then string till that char and string after that char.

C. In parabola, if 4ac is negative that means it'll definitely touch x axis and other than that, we had to find such k which makes (b-k)^2 < 4ac . after sorting vector of k, for every parabola we had to binary search the closest k to b and check whether it holds (b-k)^2 < 4ac or not.

D. We had to find the maximum distance that each node can go to ( 2 DFS ), and for every i in k we find all nodes with maximum distance less than i and print min(1+count,n).

It would be great if someone could explain me E.

  • »
    »
    3 года назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    Can you explain D in more detail?

    • »
      »
      »
      3 года назад, скрыть # ^ |
      Rev. 2  
      Проголосовать: нравится 0 Проголосовать: не нравится

      In simpler words, the task was to remove vertex/node from tree (edge still exists hypothetically) which have farthest distance less than current i in Gi and calculate number of disconnected graphs after that.

      For i as 1, all nodes has distance one at least so there's only 1 tree present. Same for i=2,....

      Now for i as 4, if we have a node that can have farthest node at distance 3 but as the problem says only those will be considered with distance at least i present, so that nodes form another single node tree and hence number of different trees increases by 1.

      my Intuition was to calculate the maximum distance any node can visit and then considering ans as 1 in beginning remove the nodes with values less than i and add the count to the ans.

      FARTHEST DISTANCE, this is where they tell how we use 2 dfs to calculate the farthest distance any node can go, one DFS to calculate heights of particular nodes and other to find the maximum distance of a Node from all its ancestors.

      I Hope you get what I did. :)

      • »
        »
        »
        »
        3 года назад, скрыть # ^ |
         
        Проголосовать: нравится 0 Проголосовать: не нравится

        I don’t understand how you could use the farthest distance of each node to get the answer. I think to do that, we have to assume that all connected components except the biggest component have a size of 1. But I don’t know how to prove it. Could you help me with this?

        • »
          »
          »
          »
          »
          3 года назад, скрыть # ^ |
           
          Проголосовать: нравится +14 Проголосовать: не нравится

          Consider the ends x,y of the diameter of the tree (if there are multiple diameters you can choose any one of them). You can prove that the farthest node from any vertex v will be either x or y. So, any v will either be in a connected component of size 1 or it will be in the same connected component as either x or y, but x and y are in the same component whenever k <= diameter. Therefore all vertices that are not in a component of size 1 will be in the same connected component.

  • »
    »
    3 года назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    I solved E with small to large, but by using the observation that if the same number appears at least three times it can be a minimum, you can have a way simpler solution

    • »
      »
      »
      3 года назад, скрыть # ^ |
       
      Проголосовать: нравится 0 Проголосовать: не нравится

      Can you explain that with an example, I get what you are saying, but still example would make it more clear.

      • »
        »
        »
        »
        3 года назад, скрыть # ^ |
         
        Проголосовать: нравится 0 Проголосовать: не нравится

        About small to large: this technique allows you to do queries based on subtrees (which is technically what you want here), and so for every subtree you can easily count which numbers appear at least twice, and with that you can also get the answer for the "other side" of the tree at the same time, which is exactly what the question wants.

        About the other thing I said: it's easy to see that if a number appears at least thrice, then when you remove an edge, it'll appear at least twice in either side of the tree. If a number appears only twice, then the answer for every edge can be that number except those on the path between. Then for that you can do HLD or some other technique.

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I think there should be some edge cases for C, where sqrt(a * c) is not accurate.

»
3 года назад, скрыть # |
 
Проголосовать: нравится +4 Проголосовать: не нравится

guys, I can do binary search, greedy, and dp just fine because there are a lot of good easy-medium problem for those categories. But for graph, it seems like the good problem is >1900 rated. Any advice for me to start practicing graph?

  • »
    »
    3 года назад, скрыть # ^ |
    Rev. 2  
    Проголосовать: нравится +1 Проголосовать: не нравится

    While I'm not really a proponent of following a topic-specific practice routine. Since you asked -

    You could refer to CSES' graph section. Alternatively, you could also filter problems on Codeforces by the tag — "graphs", solving them in descending order of solves.

    An issue that might come up on Codeforces is that you might encounter problems that can be solved even without applying graph algorithms tagged as "graphs", this happens when the problem also has some solution/intuition related to graphs. It's not really a bad thing either, maybe a welcome exposure to additional variations on graphs.

    As for improving, identify the challenges. Are you lacking in identifying the solution or are you unable to implement your ideas? If it's the former, take more time before jumping to implement, and maybe try out a few test cases yourself. If it's the latter, stop, and don't hurry. Implementation improves with practice, but you need to streamline the process. Read others' codes. How do the top competitors implement the solution? Learn from them. More often than not, you'll find that their solution is much more clear and concise as compared to yours, and after adopting those patterns/practices, with time, you should find your implementation skills improving as well.

    Edit: Fixed language

    • »
      »
      »
      3 года назад, скрыть # ^ |
       
      Проголосовать: нравится 0 Проголосовать: не нравится

      Yeah, I agree that studying specific category isn't the best idea. But I think my knowledge in graph is kind of far behind from the other categories.

      As you mention before, it seems like I am lacking in identifying the solution. So it is like when I see graph problem, it is either I can get the idea fast or I don't have any non-TLE idea at all.

      Thank you for your suggestion by the way. I've tried that but when it is to easy, it's like I don't have to solve it using graph at all. But when it comes to harder problem.... I got stuck ☺. I will give CSES a try btw.

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Guys I don't know why my submission to C wrong, I use binary search to check the largest k that make delta less than 0 but it got me wrong on tc4. I appreciate if someone would check me out: https://mirror.codeforces.com/contest/1805/submission/200427173

  • »
    »
    3 года назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    If you do a linear traverse on the array line and print the value of check(a, b, c, line[i]) you will see something like: (0 is false and 1 is true)

    0 0 ... 0 0 1 1 ... 1 1 0 0 ... 0 0

    So check() is not a monotonic function and cannot be used to search the best k.

    Instead, and observing the previous array and the check() function, we should search for the value that is the nearest to b. This is done by using std::lower_bound() on line and checking the previous, current and next value in the array, if exists.

»
3 года назад, скрыть # |
Rev. 2  
Проголосовать: нравится +3 Проголосовать: не нравится

Problem D was a variant of Tree Distance 1.

Did anyone solve E with square root decomposition? (I think for 2sec it would have passed).

PS: Finally solved E with (eular tour + ST + MO + CC) (couldn't make in contest >_< due to multiset)

»
3 года назад, скрыть # |
 
Проголосовать: нравится +13 Проголосовать: не нравится

Task C is so boring and stupid. Not because it is geometry, but because it combines trivial geometry with a well-known task.

Task D is very interesting, exited to read an editorial.

»
3 года назад, скрыть # |
 
Проголосовать: нравится -25 Проголосовать: не нравится

Solutions of Question C should be rejudged. Or it should be done unrated. There is no mistake in my solution 200416961.

»
3 года назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

i just want to know why it will be WA? i use the same code but got AC????200421371

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Good contest. Solved A-D and F1(but only after contest, cause i forgot to sort numbers in the beginning:))

»
3 года назад, скрыть # |
Rev. 3  
Проголосовать: нравится +4 Проголосовать: не нравится

Got RTE in the system test of problem C because of the following code: vector<ll> a(n), b(n), c(n); for (int i = 0; i < m; i++) { cin >> a[i] >> b[i] >> c[i]; } Want to punch the me who wrote this during the contest LOL.

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Can someone tell me why this code for C is TLE? 200448401

»
3 года назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

When will the ratings be updated?

»
3 года назад, скрыть # |
Rev. 2  
Проголосовать: нравится +9 Проголосовать: не нравится

Awesome problems, really really enjoyed! So lovely. And problem D was a really really a good modification of dp on the tree, wasn't it Elcanmustafayev?)))

»
3 года назад, скрыть # |
Rev. 5  
Проголосовать: нравится -11 Проголосовать: не нравится

My solution 200419006 for problem c passed all pretest cases but failed on test case 9. please help me to find the mistake.

Week pretest case

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I got FST in problem C. Here is the submission. Used my own b_search to calculate sqrt instead of builtin functions. Still FSTed lol.Any idea?

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Why was this submission TLE? 200462889

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

can someone find out where is my code for C failing 200465252

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

can someone find out at which case my code for C failed 200465252

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

A really nice contest . Great Job Problem Setters I loved the problems . Just a little thing if any one could help me out with this , 200438416 , how to avoid such errors in actual contest , i do get the logics to the lot of problems but fail at implementation , any way to avoid this . Thanks

»
3 года назад, скрыть # |
 
Проголосовать: нравится +23 Проголосовать: не нравится
»
3 года назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

Great contest! if you people feel stuck on Problem A, Problem B, Problem C, Problem D then you can refer to my video editorial here- video tutorial

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I might become a specialist today for the first time. I wonder why CF is taking so much time to update the ratings :/

»
3 года назад, скрыть # |
 
Проголосовать: нравится +6 Проголосовать: не нравится

The code in editorial of problem E seems to be wrong!

For the input:
7
1 2
2 3
3 4
4 6
4 7
1 5
100 1 1 100 10 10 10

It should output:
10
10
10
100
100
100

But it is outputting:
1
0
1
100
100
100

But the code of editorial seems to pass all the cases! Which implies that the test cases are weak. But also the hack is giving the unexpected verdict, see hack #899337.

»
3 года назад, скрыть # |
 
Проголосовать: нравится +9 Проголосовать: не нравится

When will I see my new color?

»
3 года назад, скрыть # |
 
Проголосовать: нравится +24 Проголосовать: не нравится

Thanks for the amazing round and the great problems!

I got rank 2 in this round and become International Master now.

»
3 года назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

Which problem you liked most?I liked problem D.Thanks for doing contest!

»
3 года назад, скрыть # |
Rev. 3  
Проголосовать: нравится 0 Проголосовать: не нравится

Update the problem ratings

»
4 месяца назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Question b is not handling the testcase well ig.

'aabcb' for this string the output should be 'aabbc' as it is the lexographically smaller array. but the editorial saying 'aabcb' as output. also the testcase doesn't handle this one.