Автор awoo, история, 9 месяцев назад, По-русски

Привет, Codeforces!

В 17.08.2023 17:35 (Московское время) состоится Educational Codeforces Round 153 (Rated for Div. 2).

Продолжается серия образовательных раундов в рамках инициативы Harbour.Space University! Подробности о сотрудничестве Harbour.Space University и Codeforces можно прочитать в посте.

Этот раунд будет рейтинговым для участников с рейтингом менее 2100. Соревнование будет проводиться по немного расширенным правилам ICPC. Штраф за каждую неверную посылку до посылки, являющейся полным решением, равен 10 минутам. После окончания раунда будет период времени длительностью в 12 часов, в течение которого вы можете попробовать взломать абсолютно любое решение (в том числе свое). Причем исходный код будет предоставлен не только для чтения, но и для копирования.

Вам будет предложено 6 или 7 задач на 2 часа. Мы надеемся, что вам они покажутся интересными.

Задачи вместе со мной придумывали и готовили Адилбек adedalic Далабаев, Иван BledDest Андросов и Максим Neon Мещеряков. Также большое спасибо Михаилу MikeMirzayanov Мирзаянову за системы Polygon и Codeforces.

Удачи в раунде! Успешных решений!

Также от наших друзей и партнёров из Harbour.Space есть сообщение для вас:

Harbour.Space
НОВАЯ ВОЗМОЖНОСТЬ ОБУЧЕНИЯ И РАБОТЫ В БАРСЕЛОНЕ @HARBOUR.SPACE UNIVERSITY

Harbour.Space University в партнерстве с Giga (Unicef) предлагают стипендию для получения степени магистра в сфере Computer Science and Front-end Development, а так же опыт работы.

Мы ищем различных кандидатов от junior до mid уровня:

Front-end разработчик:

Студенту на этой позиции придется тесно сотрудничать с разработчиком блокчейна и главным менеджером по продукту чтобы способствовать разработке и реализации пользовательских интерфейсов для прототипов компании на основе блокчейна. Они будут отвечать за перевод каркасных фреймов UI/UX в функциональные и визуально привлекательные веб-приложения, обеспечивая беспрепятственный пользовательский опыт. Студент будет сотрудничать с блокчейн и бэкенд разработчиками и дизайнерами для оптимизации производительности приложения. Они также будут участвовать в тестировании, отладке и поддержании базы исходных кодов. У стажера будет возможность получить практический опыт разработки интерфейса в контексте технологии блокчейна и внести свой вклад в миссию Giga по подключению школ к Интернету.

  • Уверенное понимание HTML, CSS и JavaScript
  • Знакомство с фронтэнд фреймворками и инструментами, такими как React или Vue.js.
  • Навык решения задач, внимание к деталям и страсть к созданию интуитивно понятных пользовательских интерфейсов имеют важное значение

Full Stack разработчик:

  • Интерес и опыт в разработке веб-приложений, информационных продуктов и OpenAPI
  • Умение работать с облачными службами развертывания (предпочтительно Azure), конвейером Git и CI/CD, а также процессами развертывания.
  • Приветствуется опыт работы с проектами с открытым исходным кодом
  • Уверенное знание ML
  • Опыт работы с инструментами визуализации данных, такими как matplotlib, ggplot, d3.js, Tableau
  • Отличные коммуникативные навыки — невероятно важно описывать результаты для технической и нетехнической аудитории
  • Большой опыт разработки программного обеспечения
  • Практический опыт работы с инструментами обработки данных
  • Способность решать задачи
  • Аналитический склад ума и отличное деловое чутье
  • Степень в области компьютерных наук, инженерии или смежной области приветствуется

Все успешные кандидаты будут иметь право на получение стипендии со стопроцентной оплатой обучения (29 900 евро в год), предоставляемой нашими партнерами.

ОБЯЗАТЕЛЬСТВА КАНДИДАТА

Обучение: 3 часа в день

За год обучения вы завершите 15 модулей (длительность каждого 3 недели). Ежедневная учебная нагрузка составляет 3 часа, плюс домашнее задание, которое нужно выполнить в свободное время.

Работа: 4 часа в день

Погрузитесь в профессиональный мир во время обучения. Вы будете учиться у лучших и с первого дня сможете применять свои новые знания на практике.

ТРЕБОВАНИЯ

  • Опыт работы в отрасли
  • Международная экспозиция
  • Стремление к обучению
  • Устойчивое развитие ключевой момент для вас
  • Желание работать на общественную организацию
Подать заявку →

UPD: Разбор опубликован

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

»
9 месяцев назад, # |
  Проголосовать: нравится -11 Проголосовать: не нравится

Hope the round will be interesting

»
9 месяцев назад, # |
Rev. 2   Проголосовать: нравится -68 Проголосовать: не нравится

..

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

It will be very good, if educational rounds also have scoring distribution of problems!

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

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

Wow, hope a good round!

»
9 месяцев назад, # |
  Проголосовать: нравится +12 Проголосовать: не нравится

awoo uwu ><

»
9 месяцев назад, # |
  Проголосовать: нравится +5 Проголосовать: не нравится

Hope to reach pupil this round! Just 7 more points to go :O

»
9 месяцев назад, # |
  Проголосовать: нравится +6 Проголосовать: не нравится

Good luck, everyone! I hope there'll be good and pleasant problems at this contest

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

I LOVE EDU ROUNDS :3

PS: Earned +87 delta woooo!

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

It is easy to increase rating in Educational Round so all the best guys.

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

Hope to get 3 points to complete 1000 rating

»
9 месяцев назад, # |
  Проголосовать: нравится -12 Проголосовать: не нравится

I will drunk drive if I don't get positive rating in this round

»
9 месяцев назад, # |
  Проголосовать: нравится -25 Проголосовать: не нравится

The quality of EDU competitions has always been good.

Good luck,everyone!

»
9 месяцев назад, # |
  Проголосовать: нравится +48 Проголосовать: не нравится

Imagine the C problem is another permutation problem:)

»
9 месяцев назад, # |
  Проголосовать: нравится -9 Проголосовать: не нравится

I love educational round :3

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

Hope to reach Pupil.

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

holp to reach specailist

»
9 месяцев назад, # |
  Проголосовать: нравится -6 Проголосовать: не нравится

6 ke 6 karunga

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

Hope it will be an interesting round!

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

Problems were nice, thank you!

»
9 месяцев назад, # |
  Проголосовать: нравится -10 Проголосовать: не нравится

This round is so weird. Also A>>B and A>>C.

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

    It just not. Just switch from $$$()()$$$... and $$$(($$$...$$$))$$$ solutions. Has "NO" answer only with $$$()$$$ input.

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

I will try to give constructive criticism this time.

Please, find testers or at least proof readers for your problem statements.

  • B is very hard to understand. What does an infinite number of stones mean? What is a1/ak

  • C is very weird. Alice makes the first move, but the first move isn't part of the game? How does that make sense?

»
9 месяцев назад, # |
  Проголосовать: нравится +40 Проголосовать: не нравится

Cool C,D,E but terrible A,B imo.

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

The Pain is real T_T

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

how to solve C?

  • »
    »
    9 месяцев назад, # ^ |
    Rev. 4   Проголосовать: нравится +3 Проголосовать: не нравится

    It is easy to notice that the chip will be moving along the LIS ending at the i-th element. If the length of the LIS ending at the i-th element is 2, the i-th element is lucky, otherwise Bob can always make himself win. 219331114

    • »
      »
      »
      9 месяцев назад, # ^ |
        Проголосовать: нравится +5 Проголосовать: не нравится

      My solution is pretty much the same as dIsPoSEdOfFAcCC514's, but i managed to simplify the implementation a bit more IMO, turns out we just need to keep track of the minimums, that is the minimum of the whole array, and the minimum of the winning positions values. The next winning position's value will need to be between the minimum of the whole array and the minimum of the winning positions values. Also, CMIIW 219313622

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

      surely there has to be an easier way to solve it? i could notice that if all the numbers lesser than arr[i] preceding it in the arraay were in descending order, it means that the number is lucky. sadly could not code.

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

    Let’s define cnt(pi) as count of elements lesser than pi that comes before it when going from left to right.

    Alice can choose an index i if all pj<pi for j<i cnt (pj)=0.

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

    Let $$$d_i = -1$$$ for all $$$i$$$. Now denote $$$d_i = 1$$$, if $$$i-th$$$ element is good, otherwise $$$d_i = 0$$$.

    We go from $$$0$$$ to $$$n - 1$$$. It's obvious, that if we now have $$$d_i = -1$$$, then it's gonna be $$$1$$$ if we have no $$$a_j$$$, such that $$$j < i$$$ and $$$a_j < a_i$$$ and $$$d_j = 1$$$, otherwise $$$0$$$. So we just keep $$$2$$$ minimum elements. One with $$$d_i = 0$$$ and one with $$$d_i = 1$$$ and compare $$$a_i$$$ with each of them. After this update minimums.

    Answer is $$$sum(d)$$$.

  • »
    »
    9 месяцев назад, # ^ |
    Rev. 8   Проголосовать: нравится +3 Проголосовать: не нравится

    I solved that in O(n) Time complexity (One scan to be exact) and O(1) Space Complexity (No need to make an array).

    So we declare two int variables as minLucky (the minimum lucky element until the ith element) and Min (the minimum element till ith element) and initialize them both as INT_MAX. Also, initialize a variable lucky = 0 (this stores the number of lucky elements).

    We run n iterations and in each one, input a number (say x) of the permutation and do the following: (1) if x is greater than minLucky, ignore and continue; (2) if x is smaller than Min, update Min = x; continue; (3) if x is greater than Min and smaller than minLucky, then x surely is a lucky element, so increment lucky and minLucky = x (of course x was less than minLucky to reach condition (3))

    Finally output lucky and there we go. You can find my code here.

    Note: I came up with this solution on my own, although after the contest ended. Also have NOT been able to mathematically prove the working yet. I just took many different test cases and made observations to reach this approach.

    PS: This is my first comment/post on this site. English is not my first language

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

T_T

»
9 месяцев назад, # |
  Проголосовать: нравится +18 Проголосовать: не нравится

I think making problems hard to understand is becoming a trend or something like that

»
9 месяцев назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

After being specialist for so many contests, I solved 0 and dropped to pupil, go next contest I guess

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

2 hours' time may be too tight to view all of the problems.

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

A was really hard. I feel that among A,B,C, C was the easiest of the three.

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

Me trying to solve A, After 2 hours I felt like it is Div-1 Contest.

»
9 месяцев назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

For D, I wonder what the upperbound for the minimum number of swaps needed is. It seems to be very low. I thought it was 2 or 3, but it seems I am wrong.

  • »
    »
    9 месяцев назад, # ^ |
      Проголосовать: нравится +4 Проголосовать: не нравится

    Consider the case 111111111.....000000000.....

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

    Same here. I thought it would be 2 at most.

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

    Ah, I see now. Guess the constraints fooled me into thinking it was some kind of brute force.

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

    It does seem to be fairly low for this problem, but I think you can prove it's at least N/8 in the general case.

    Rationale: you can start with a string of (N/2) 0s followed by (N/2) 1s which creates an imbalance of (N/2)^2 and any swap can reduce the imbalance by at most 2N, and (N/2)^2/(2N) = N^2/8N = N/8.

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

    You can change any string s to any string t with at most n/2 swaps, so n/2

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

how to solve E

»
9 месяцев назад, # |
Rev. 7   Проголосовать: нравится 0 Проголосовать: не нравится

Problem C Can someone please explain how answer should be 1. n = 4 , a = 1 2 3 4

  • »
    »
    9 месяцев назад, # ^ |
      Проголосовать: нравится +5 Проголосовать: не нравится

    Suppose you decide to take 2, then the opponent will take 1 and you won't be able to make a move so, you win. Suppose you decide to take 3, then the opponent will take 2, then you will take 1, because of which your opponent wins. Suppose you decide to take 4, then the opponent will take 2, then you will take 1, because of which your opponent wins.

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

Just to make sure my A doesn't fail, can someone verify this logic:

If string is "()" it is impossible.

If string is alternating for example: ")()()()" then you can use "(((...)))"

Otherwise you can use "()()()()()..."

Here is the code.

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

    you can just take the smallest case where length = 2 and you find all the combinations to form, that's {"()", "((", "))", ")("} if it's the first one then it's impossible then if it's the second and third one if it's in any substring in the string you can just print ()()...() if the last one in any substring print (((......)))

  • »
    »
    9 месяцев назад, # ^ |
      Проголосовать: нравится +7 Проголосовать: не нравится

    Yep, basically if $$$s$$$ doesn't occur in $$$(((...)))$$$ then it's an answer, otherwise if $$$s$$$ doesn't occur in $$$()()...()()$$$ then it's an answer, otherwise there is no answer.

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

      I was thinking along the same line but could not prove to myself why it works. Can you tell why this works in some mathematical proof ?

      • »
        »
        »
        »
        9 месяцев назад, # ^ |
        Rev. 2   Проголосовать: нравится +23 Проголосовать: не нравится

        Basically, we can prove by induction:

        Let see if $$$|s| = 3$$$:

        1. $$$((($$$ — $$$()()()$$$ is suffice.

        2. $$$(()$$$ — $$$()()()$$$ is suffice.

        3. $$$()($$$ — $$$((()))$$$ is suffice.

        4. $$$())$$$ — $$$()()()$$$ is suffice.

        5. $$$)(($$$ — $$$()()()$$$ is suffice.

        6. $$$)()$$$ — $$$((()))$$$ is suffice.

        7. $$$))($$$ — $$$()()()$$$ is suffice.

        8. $$$)))$$$ — $$$()()()$$$ is suffice.

        If $$$|s| > 3$$$ then it will have $$$1$$$ of those cases as substring, so it will be solvable with the same answer. Can't think of better way...

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

        if n=1 ---->impossible if n=2, ()--->impossible, )(---->(()) n >= 3: if in the string str, we found "((" or "))", then just construct ()()().., such string "((" is not substring of ()()()... otherwise, the string must be alternative, ()(.....or )()...., in this case, we construct ((((...))))

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

        You just have to cover all the cases. There are three partially-overlapping cases:

        1. S = () exactly.
        2. S contains )(.
        3. S contains (( or )) or both.

        We can easily prove that this covers all cases: if |S| = 2 then (), )(, (( and )) are exactly the four possible strings. If |S| ≥ 3 either S contains )( (case 2) or it is a sequence of ( followed by ) and since |S| ≥ 3 there must be at least two of one character in a row (case 3).

        In case 1 there is no solution, because any balanced bracket string must contain (). For case 2 (((...))) is a solution because it doesn't contain )(. For case 3 ()()()..() is a solution because it contains neither (( nor )).

  • »
    »
    9 месяцев назад, # ^ |
      Проголосовать: нравится -6 Проголосовать: не нравится

    i think you ignore the case when n=1 and string="("

    • »
      »
      »
      9 месяцев назад, # ^ |
        Проголосовать: нравится +6 Проголосовать: не нравится

      it's not a valid case

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

      minimum n is 2, so such case isn't possible. And even if this case was valid, the problem is impossible to solve because RBS has to contain both '(' and ')'

  • »
    »
    9 месяцев назад, # ^ |
    Rev. 2   Проголосовать: нравится +5 Проголосовать: не нравится

    In my solution I just make 2 strings "((...))", "()()..." and checked if input string is a substring of first, then the second is the solution. Also the "NO" answer comes only with "()".

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

Is it just me took a WHILE to clearly understand C...

»
9 месяцев назад, # |
  Проголосовать: нравится +19 Проголосовать: не нравится

B felt like as one of the most unfun kind of math problems

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

    It felt really forced, like they had to place a problem B somewhere and came up with a contrived problem

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

      During the contest I've got the general idea pretty quickly, something like:

      • Use as many of the non-fancy $$$k$$$ coins as possible
      • Fill the rest with as many of the fancy $$$k$$$ coins as possible, then use $$$1$$$-coins
      • In some cases we want to use 1 less fancy $$$k$$$ coin, then fill the sum with $$$1$$$-coins

      But translating that into actual expressions felt terrible, at least for me

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

Why all the problems is about to find all possible combinations of the answer and build the solution upon that, it felt like disguised combinatorics round.

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

How to solve D? I have only one observation: Lets call number of 01 — number of 10 "Balance" When I swap i, j such that a[i] = 1 and a[j] = 0 I add i — j to balance and j — i otherwise Please explain full solution to me

  • »
    »
    9 месяцев назад, # ^ |
    Rev. 6   Проголосовать: нравится -21 Проголосовать: не нравится

    UPD: My greedy solution was wrong

    • »
      »
      »
      9 месяцев назад, # ^ |
        Проголосовать: нравится +6 Проголосовать: не нравится

      WTF

      I did this and got Wa on test 5

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

      Can you prove that this greedy approach works? I mean, apart from the fact that it passes tests. I had similar idea but I couldn't think of a nice proof

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

        every swap you can decrease the diff between 01 and 10 by 2, and you can always increase that by adding an additional character to the left or right that changes the diff.

        So just pick pair i,j that max out that diff every time.

      • »
        »
        »
        »
        9 месяцев назад, # ^ |
          Проголосовать: нравится +9 Проголосовать: не нравится

        In fact it doesn't work and it's hacked

  • »
    »
    9 месяцев назад, # ^ |
      Проголосовать: нравится +18 Проголосовать: не нравится

    I solved it using 3D-DP. Sketch: Assume w.l.o.g there are more 10 than 01. Then there is a diff > 0 you need to fix. Swapping a 1 with a 0 on the right fixes 2*(difference of indices). Now you can do similar to subset sum dp (you need a third dimension to store the position of the first 0 you used). The value of an entry denotes how many swaps you need to achieve this sum. Total runtime O(n^4).

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

      How much memory do you use?

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

        A little bit less than limit (237MB), but I could get it down by factor 8 quite easily (dp entry only needs 1 Byte + the diff can be upper bounded by (n/2)*(n/2)). You can also get rid of the first dimension completely just like in subset sum.

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

          And how do you deal with situation in which you need to swap some 1 with some 0 and then you swap it again with some other 0?

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

            I think this can't happen because then you could have just swapped it with the other 0 in the first place.

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

      Can you elaborate more on your DP-States?

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

        One invariant could be: $$$dp[i][j][k]$$$ is how many swaps you need for sum $$$j$$$ using only '$$$1$$$'s with indices between $$$i$$$ and $$$n$$$, assuming the smallest position of a '$$$0$$$' you have used for a swap is $$$k$$$.

        Go through from $$$i=n$$$ to $$$i=1$$$ and compute transitions.

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

          Thankyou

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

          Why would you want to store the smallest position of 0?

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

            You somehow need to ensure you don't swap two 1's to the same 0 position and this is a way to achieve it.

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

for D we can see that whenever a swap happens, the sum of 01 and 10 doesn't change. Also looking at 10000, we can see that we can just move the 01 and 10 2 unit closer to each other by swapping an additional 1 more character to the right.

tldr is the diff between 01 and 10 count must be even. Swaps 1 and 0 always move the diff between them by an even number. So just swapping the best 1 and 0 pairs until they are equal

Is this a greedy problem? Wondering why s <= 100.

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

this was WA2forces for me but the problems were good

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

why dp solution doesn't work in c, this is my sub [submission:https://codeforces.com/contest/1860/submission/219347506] thanks.

»
9 месяцев назад, # |
Rev. 3   Проголосовать: нравится -10 Проголосовать: не нравится

thanks

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

Problem E is almost the same as this one. Check out 211055789 and 219307318.

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

A appeared to be tough & was a strange problem. The statement of B was so confusing with notations like a1 & ak. The problem statements were hard to comprehend. More of a read-carefully-be-patient test than a problem solving test.

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

Nice contest! Gain a lot.

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

Can we do E like this:

E
»
9 месяцев назад, # |
  Проголосовать: нравится -12 Проголосовать: не нравится

suka...

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

In Problem D what can be the maximum size of 0 or 1 individually as the string can always be made balanced

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

    Maximum size of 0 or 1 doesn't matter for solution.... But maximum value of balance matters which can be at most n/3*n/3

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

How to solve B?

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

c was pretty nice

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

Problem statements required hell lot of patience reading.

»
9 месяцев назад, # |
Rev. 2   Проголосовать: нравится -8 Проголосовать: не нравится

why dp solution dosent work for c , 219347506 thanks.

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

Couldn't solve C because I swapped a1 and ak while taking the input OR

cin >> m >> k >> ak >> a1;

Help me cry

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

so many case handling :((

˙◠˙˙◠˙˙◠˙

»
9 месяцев назад, # |
  Проголосовать: нравится +31 Проголосовать: не нравится
»
9 месяцев назад, # |
  Проголосовать: нравится -20 Проголосовать: не нравится

Problem B is one of the worst problem description

»
9 месяцев назад, # |
  Проголосовать: нравится -7 Проголосовать: не нравится

The worst tasks I've ever seen

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

does anyone has proof for greedy approach on D ? also I would appreaciate it if you could explain the dp approach , I couldnt find it in contest time :/

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

How to solve D?

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

    I can't prove my solution. But actually greedy approach works. Let's denote $$$cnt1$$$ equal to number $$$01$$$ occurs in $$$s$$$ as subsequence and $$$cnt2$$$ equal to number $$$10$$$ occurs in $$$s$$$. Now let's find such $$$i$$$ and $$$j$$$, that after swapping $$$s_i$$$ and $$$s_j$$$ we will make $$$|cnt1 - cnt2|$$$ smallest. Swap $$$s_i$$$ and $$$s_j$$$ and continue doing this until you get $$$|cnt1 - cnt2| = 0$$$.

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

Does, Problem B is based on Binary Search?

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

Took so much time on A. I think A is much harder than B and C.

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

    Trivial cases were the key idea to solve A.

    I think people who came up with the idea with trivial cases felt it is so easy, but those who are not, they(that includes me) must have struggled.

»
9 месяцев назад, # |
Rev. 2   Проголосовать: нравится -33 Проголосовать: не нравится

IMHO, in problem D, It would've been better if

" In one operation, you can: choose two characters in s and swap them. Your task is to calculate the minimum number of operations to make the string s balanced. "

than

" You can perform the following operation any number of times : choose two characters in s and swap them. Your task is to calculate the minimum number of operations to make the string s balanced."

It sounded like this problem is about feasibility. (printing out YES or NO).

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

Actually a simple way of solving problem A is to check whether there exists a pair of adjacent brackets that are both left or right (like “((“ or “))”). If true, the answer should appear like “()()…()” If false, the answer should appear like “(((…()…)))” The only exception is string “()”, u just need to especially judge if the given string is exactly that thing. I personally consider C harder than A, because it took quite a long time for me to figure out how to solve LIS in O(nlogn) time…

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

    i don't think lis is needed though:

    My submission that passes tests 219294134.

    When i find a new m2, that element is winning because it can't reach any former m2 (all of those are bigger) and there's an m1 that the m2 can reach (meaning that a move exists and it leads to a losing state). It's easy to see that all the other moves are losing : if an element doesn't enter any of the ifs, it's trivially a losing one as that can reach another losing element (basically it can reach any m2, as it's bigger).

    This proof feels harder than the code, i 100% didn't think it this way when i wrote it but it feels right.

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

      Wow that's a good solution!

      I simply tried to calculate the LIS ending at each point, and if its length is exactly 2, it is a possible position that Alice places the chip.

      However my calculation didn't stop even if the LIS' length had already exceeded 2. So your solution is a better one!

      This is my code, for reference: 219329123

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

From the rules of some earlier rounds:

" 12-hour phase of open hacks after the end of the round (hacks do not give additional points)

after the end of the open hacking phase, all solutions will be tested on the updated set of tests, and the ratings recalculated "

Will this thing (rejudge on successful hacks) be used here?

»
9 месяцев назад, # |
Rev. 4   Проголосовать: нравится -38 Проголосовать: не нравится

n^4 passing for D:

»
9 месяцев назад, # |
  Проголосовать: нравится +21 Проголосовать: не нравится

Hope codeforces catch all of them https://youtube.com/@codingSchool2.O

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

Hi, i am a beginner , tried the first question didn't got it then went to the second one , thought that i might be able to do it but then time passed and i wasn't able to do it. can someone give solution or tell where i can find proper solutions suitable for beginners.

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

    Hope that my solution is right and easy to understand 219268377

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

    I would recommend you to firstly participate virtually in some Div3 or even Div4 rounds. Difficulty of problems there should suit you way better than Div2. But to be fair, usually problems A and B are a bit easier than in this contest. Good luck!

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

    DW, this contest was way harder and weirder than other div2 contests. Try again in another contest.

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

    A is the kind of stupid problem that you take a bold guess by intuition. I looked at it for 5 mins and guess I only have to test ()()() and ((())) kind of bracket sequence and luckily it passed. I did a little proof after this. And B is just simple strategy based on modulo. You can find editorial shortly after the contest where you read solutions.

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

      where can i see the editorial , on youtube or it is available on codeforces only?

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

        First check cf editorial, and then if you don't understand (cf editorials are not necessarily well-written), there is a comment section below the editorial. Still don't understand, go find other non-official explanation on the Internet (I use Chinese). Or you may find competitive programming communities somewhere to ask.

»
9 месяцев назад, # |
  Проголосовать: нравится +29 Проголосовать: не нравится

Nice massive hacks on D

»
9 месяцев назад, # |
  Проголосовать: нравится -8 Проголосовать: не нравится

I HAVE OBSERVED THIS TREND IN RECENT CONTEST THAT LANG OF QUESTIONS ARE TOUGH TO UNDERSTAND. ITS MY HUMBLE REQUEST TO MAKE SINPLER STATEMENTS IF POSSSIBLE

  • »
    »
    9 месяцев назад, # ^ |
      Проголосовать: нравится +26 Проголосовать: не нравится

    I do agree that it's frustrating to read long statements. Moreover, I also agree that long statements does not fit for contests where time is short. Especially, for platform like CF. However, your all caps comment made it hard to read. Hence, my conclusion is your comment is not much different from unnecessary long statements! LOL :v

»
9 месяцев назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

Can someone write a blog about this because more than 800 watched the videos https://youtube.com/@codingSchool2.O

  • »
    »
    9 месяцев назад, # ^ |
      Проголосовать: нравится -13 Проголосовать: не нравится

    MikeMirzayanov plz ,, do something

    • »
      »
      »
      9 месяцев назад, # ^ |
      Rev. 2   Проголосовать: нравится +15 Проголосовать: не нравится

      I don't think it's feasible for Mike or any other admin to track all the cheaters. Especially, folks who share codes outside the platform anonymously. At the end of the day, it's just an online contest. If you focus on learning and growing your problem solving skills it does not matter how many cheaters out there. Certainly, they will have some impact on the rating. But rating is just a number. If you can solve 2 problems in div 2 on average now, your concern should be how can you solve 3/4 regularly in the future. Cheaters will most likely stay at the same level because their main focus is not learning and growing skills IMO. That means at some point you will surpass them if you continue working on improving. And from that day onwards, they will not have much impact on your rating.

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

How to solve E? I already knew how to get the shortest path from a pair of character to another. But my solution seems to run in m*26^4 so it didnt pass :(

  • »
    »
    9 месяцев назад, # ^ |
      Проголосовать: нравится +48 Проголосовать: не нравится

    Let MX denote 26*26. We can create (n-1+MX) nodes weighted directed graph. n-1 represents cursor position while 26*26 extra nodes represents all possible two length strings. For the ith position of cursor we have to add edges of weight 1 between each pair consecutive positions ,an outgoing edge from current position to string cursor is representing as weight 0 and incoming as weight 1. Now we can calculate distances to all other nodes from those MX nodes in O((n+MX)*MX) using 0-1 bfs. Now we can reach from p to q without going to any of those extra nodes in abs(p-q) steps or if we visit any extra node the answer from such a node can be computed as d[p]+d[q]-1.So each query is computed in O(MX). So final complexity stands O(MX*(n+q)) for my approach.

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

      Ah okay that makes sense, my solution was a bit different than yours. Thanks for the reply!

»
9 месяцев назад, # |
  Проголосовать: нравится +14 Проголосовать: не нравится

Around 1/3 of Problem D AC's hacked

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

    Were the hacked solns greedy?

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

      my greedy got hacked

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

      I have no idea but looking at the constraints I'd be surprised if a greedy solution was intended. Didn't even think about it because of this, so dunno.

    • »
      »
      »
      9 месяцев назад, # ^ |
        Проголосовать: нравится +5 Проголосовать: не нравится

      most likely yea, intended solution I think uses O(n^3) dp. I ended up doing some omega scuffed greedy that somehow passed pretests, but from looking at hacked solutions I already knew that something was off

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

Can someone explain the C problem solution, or just name the type of problem? Got the A and B, C was out of time for me.

UPD: Damn it was easy....

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

problem statement of B was difficult for me to understand

»
9 месяцев назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

A simple solution for C

Key solution: A number is unlucky iff 0 or 2 jumps to left are possible from it.

https://codeforces.com/contest/1860/submission/219359755

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

Editorial for problems A&B:

https://youtu.be/p-nKn3Hg9JE

Thought would be useful!

»
9 месяцев назад, # |
  Проголосовать: нравится -8 Проголосовать: не нравится

do we get anything for hacks? Like less penalty?

»
9 месяцев назад, # |
  Проголосовать: нравится +14 Проголосовать: не нравится

Why so much down votes ?.At least they puts efforts to make contest for us.We don't pay anything.

»
9 месяцев назад, # |
  Проголосовать: нравится +5 Проголосовать: не нравится

Great contest, although I didn't address D. This idea of D transferring the contributions generated by the two 01s to the characters themselves is great!

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

How i can solve B with binary search?

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

Hello everybody, I made a submission for C a few minutes ago (after the contest). Even though it says Accepted, i have the feeling that it will FST. It's just over 15 lines (apart from the template).

Try hacking it.

Code

Submission: 219367730

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

    It is correct, because it's a convoluted version of the solution vinren explained above. Compare with his solution: 219313622.

    To see that it's the same, consider that whenever you do set.upper_bound(-x) == 0 you are effectively asking: is the minimum element in the set less than x? But to answer that question you do not need to maintain the complete set of values; it's sufficient to track just the minimum.

»
9 месяцев назад, # |
  Проголосовать: нравится -6 Проголосовать: не нравится

Codeforces ---> Queueforces

»
9 месяцев назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

Shall I get bonus points for a successful hacking on the 12 hour hacking phase?

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

    No, but you can hack those in front of you and get higher rating

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

    If CF give bonus point, people can create alt like mine and submit some thing like if(test==69) cout << "FREE POINT";

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

Did somebody use this approach to solve problem B? I just come up with it now. The code is commented so you can understand whats going on

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

Thank you guys for the contest . it was a very good contest, i hope next contest will be the same

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

Thank you guys for the contest . it was a very good contest, i hope next contest will be the same

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

I find myself stuck in A B C general math problems. Due to this I am not able to give time to harder problems during the contest.

This thing happened with me in last contest's B as well as this contest's B. I find it difficult to understand some general math based solutions.

Can anybody give me suggestions for how to quickly come up with mathematical solutions. This really slows me during the contest. Even while practicing problems I have noticed this weakness.

I am quite ok with number theory problems. Difficulty arises when some general math and greedy are there.

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

    Try to come up with some obvious greedy ideas, then try to split this greedy in a small number of cases, and work with each one individually. Eventually you will become good at understanding formulas that you're writing

»
9 месяцев назад, # |
  Проголосовать: нравится -7 Проголосовать: не нравится

it's a really intersting round

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

You can't drink and drive even if you get a negative rating, it's extremely dangerous.

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

No editorial page this time? If any one find pls share

»
9 месяцев назад, # |
  Проголосовать: нравится +33 Проголосовать: не нравится

I didn't participate in the contest. But why so many downvotes eh? I think problems were good. I love A,C,D, and E. Although I find B is a bit too "mathy" but I don't think this contest deserves that much downvote tho

  • »
    »
    9 месяцев назад, # ^ |
      Проголосовать: нравится +6 Проголосовать: не нравится

    Maybe due to the weak tests for D. I like the problems themselves too.

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

      I guess pretests for D were weak so that "hacking phase" served its intended use.

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

        There are no so-called "pretests" in CF mode. I can understand weak pretests in CF mode (actually most users don't). However if the tests in exICPC mode are weak, the wrong solutions will pass as long as there are no users are hacking.(for example, when some significant events take place and high-leveled users are not online)

        Anyway, optimistically, this gives a lesson to user who do not prove and check their solutions. This will influence a lot of people in future CF mode contest!

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

It hurts so much to get hacked for the first time, maybe many wrote to the greedy in D and will be able to understand me.

»
9 месяцев назад, # |
  Проголосовать: нравится +2 Проголосовать: не нравится

It hurts so much to get hacked for the first time, maybe many wrote to the greedy in D and will be able to understand me.

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

i am so much disappointed.long time later i could not solve a single problem.

»
9 месяцев назад, # |
  Проголосовать: нравится +11 Проголосовать: не нравится

Why not system test (i’m new here pls no downvote)

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

    Educational contests are different from the normal contests.

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

    In Educational rounds and Div-3,4 contests, system testing takes place few hours after the hacking phase finishes. Also, system testing will include the successful test cases generated by hackers.

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

Problem C is so interesting that I spent almost one hour on it.

»
9 месяцев назад, # |
  Проголосовать: нравится +5 Проголосовать: не нравится

Почему никто не делает видеоразборы на русском языке? Было бы прекрасно, если нашлись бы такие люди.

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

Can anyone tell where can we find the editorial to this contest?

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

Hi, awoo, do you play genshin or starrail, which leads you to provide these weak pretests?

  • »
    »
    9 месяцев назад, # ^ |
      Проголосовать: нравится +22 Проголосовать: не нравится

    Tests is good, you got fst because you got skill issue.

    P/s: We don't have pretest here. You get WA on hacks (because of your skill issue.)

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

Problem E is actually similar to this.

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

Good round, but problem B...

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

Hackforces round.

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

I am currently a newbie and the details above says that the contest is rated for those with rating below 2100 so why is the contest listed as unrated on my profile? Someone mind explaining?

»
9 месяцев назад, # |
  Проголосовать: нравится +44 Проголосовать: не нравится

the problems were good. thanks for the contest adedalic BledDest awoo ! ignore the downvotes

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

    agree I liked it.

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

    Learn to be honest.

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

      learn that you dislike problems because you are unable to solve them (due to skill issue)

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

        Learn that you only liked the round because you solved the 3 easiest problems and got +ve.

        • »
          »
          »
          »
          »
          9 месяцев назад, # ^ |
          Rev. 2   Проголосовать: нравится -7 Проголосовать: не нравится

          "learn that you dislike problems because you are unable to solve them (due to skill issue)"

          Didnt comment on this? does that mean it is true LOL

          Besides, the complains in this contest were mostly regarding B and C, and if you say that they are "easiest", then you shouldn't be crying about the contest being bad, you should focus on quality of D-which you cant cuz skill issue again

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

why this round is showing unrated even if i am in Div 2 ??

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

    Wait for some time, the rating will update in 2-3 hours. It always shows up as unrated shortly after the system tests.

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

Is the contest rated or not?

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

When is Tutorial going to get release next year?

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

Can anyone please explain this elegant solution (219271388) of D by jiangly?

  • »
    »
    9 месяцев назад, # ^ |
    Rev. 3   Проголосовать: нравится +18 Проголосовать: не нравится

    wow, that's a fantastic solution.

    I guess the idea is: let c00 be the count of 00 pair, so does c01, c10, c11. Given c01 = c10, we have

    1. c00 + c01 + c10 + c11 = n(n-1)/2 (all pairs)
    2. c01 + c11 = c10 + c11, which is also the number of pairs end with 1 and begin with 1.

    let c0 be the number of 0s, c1 be the number of 1s. we know the sum of the total number of pairs begin with 1 and end with 1 is c01 + c10 + c11 + c11, so for each it is ( c01 + c10 + c11 + c11) / 2,which is param "need"

    then uses a dp[i][j][k] to find the min ops to achieve need, where i means consider first i items, j means the total 1 been used, the k means the (c01+c11) till now. And the value is how many position we put 1 but it is 0 original.

    The answer is dp[n][c1][need], because each swap we can put a 1 in its final position

»
9 месяцев назад, # |
  Проголосовать: нравится +18 Проголосовать: не нравится

I want to report @erfge56gyt4w5h356 for obfuscating his solution of E.

https://codeforces.com/contest/1860/submission/219309571

I though this wasn't allowed by the contest rules.

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

I didn't solve a single task — I was unsuccessfully struggling with task B the whole round, — but still got +125 points ¯\_(ツ)_/¯. Is there any article on how rating on Codeforces is calculated?

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

    Maybe this will help link

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

    I'll try to explain it without going into the math behind it. In the first 6 rounds combined you get a bonus rating of 1400, split as 500-350-250-150-100-50 and your assumed rating for your first round starts at 1400.

    Your rating change according to your performance will be calculated as bonus + (whatever you get because of your assumed rank vs gotten rank)

    So basically you had a 250 bonus already as it was your third round and whatever you got was a score that stacked onto that

»
9 месяцев назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

where is the editorial?

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

    Authors of Edu. rounds like to post editorial in a few days after the contest, they do this so that the participants can discuss their solutions without authors ideas.

    At least that's what I remember from some comment from awoo or bleddest

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

Auto comment: topic has been updated by awoo (previous revision, new revision, compare).

»
9 месяцев назад, # |
Rev. 2   Проголосовать: нравится -11 Проголосовать: не нравится

.

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

I had misread problem C, B was like too many if else statements.

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

I misread problem C, it was interesting though. Also, B was like too many if else statements!

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

Amazing contest! Thanks adedalic BledDest Neon awoo

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

Good Contest

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

Hello, I'm a boy from an Indian village. I wish to become proficient in the Java Programming language. Could anyone please suggest the best freely available resources to master it? Unfortunately, I don't have the money to purchase a paid course. I hope that God will provide you with the strength to help me.

»
9 месяцев назад, # |
  Проголосовать: нравится +12 Проголосовать: не нравится

It was the best codeforces round (in my opinion), thanks to BledDest, Neon, adedalic and awoo!

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

About my solution to Problem C 219315276 was judged to be duplicate, I used the source code that had been published in 2017, its content is linked at: https://blog.csdn.net/George__Yu/article/details/75896330 Your text to link here... I don't think that constitutes cheating

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

Где сложности???

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

How this guy who had secured a rank of 268 but 28 rank is shown on his profile and rating changes are also based on that rank?

User : https://codeforces.com/profile/erfge56gyt4w5h356