Автор awoo, история, 6 лет назад, По-русски

Привет, Codeforces!

В 14.01.2020 17:35 (Московское время) состоится Educational Codeforces Round 80 (рейтинговый для Див. 2).

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

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

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

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

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

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

Hello Muscat

Привет Codeforces!

В качестве специального приза за Educational Round 80 мы разыграем три бесплатных участия в Hello Muscat ICPC Programming Bootcamp, который состоится 19-25 марта (Оман) — полное покрытие оргвзноса, проживания и питания по системе «полупансион» на весь период учебного лагеря (но без перелёта). Путевки будут предложены топ-3 участникам, кто заполнил форму и соответствует условиям.

Условия:

  • Участие не менее чем в 10 рейтинговых раундах на Codeforces.
  • Максимальный рейтинг меньше 2400.
  • Еще имеете право принимать участие в ICPC и/или IOI.
Заполнить форму→

Всем удачи!

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

Пожалуйста, заполните эту форму и мы отправим вам сопроводительное письмо в течение 3 дней!

Поздравляем победителей:

Место Участник Задач решено Штраф
1 isaf27 6 150
2 FSTForces 6 167
3 jiangly 6 178
4 ko_osaga 6 179
5 jhnan917 6 184

Поздравляем лучших взломщиков:

Место Участник Число взломов
1 surung9898 59:-2
2 stdmultiset 35:-1
3 B2ej5SjC 30
4 spectre_1502 21:-1
5 Dilemma27 20:-4
Было сделано 434 успешных и 746 неудачных взломов.

И, наконец, поздравляем людей, отправивших первое полное решение по задаче:

Задача Участник Штраф
A okwedook 0:01
B neal 0:04
C ko_osaga 0:06
D RUSH_D_CAT 0:07
E peach 0:17
F jiangly 1:13

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

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

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

Максимальный рейтинг меньше 2400.
По их мнению, я уже добился всего в жизни?

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

Your max rating should be less than 2400 I hope it's not a typo.

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

I wonder why Div1 people are not listed as unofficial participants (with a * ) for educational rounds. Is it intentional?

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

Waiting for good problems to learn new concepts.

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

hope the problems are balanced in difficulty

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

Good luck to all the participants!

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

hope contest gap will decrease

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

Seems it will be a high-quality contest

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

contests by awoo are always fun.

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

Hope there will not be any greedy question

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

Hope there will be no greedy question

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

Why always Educational's blog had a few upvotes :( These Rounds are really educational, interesting and helpful . They are underrated i thnik .

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

MikeMirzayanov it seems the https certificate of pubsub.codeforces.com is expired and my internet security is constantly blocking the connection to the same, saying it is insecure. Did the certificate expire recently?

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

Every second which i spent with codeforce gives me an infinite pleasure.

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

"The statement is not available" — m2.codeforces.com

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

How to solve C?

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

veeeeeery interesting!

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

How to solve D?

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

    Use bit masks to know for each line the minimum value of each mask of it, then combine the best mask and ((1<<m)-1 ^ mask) to find the answer

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

    You do a binary search on the answer. Then for checking if an answer $$$x$$$ is valid, you can make a $$$m$$$ bit mask for every array in which $$$i$$$th bit is $$$1$$$ if $$$a[i]$$$ is greater than $$$x$$$. The problem now is to find two arrays so that bitwise or of the mask of two arrays is equal to $$$2^m - 1$$$. For that you can just fix one array and brute force all possible masks which complement current mask (which are less than $$$2^m$$$) and find if the mask is among the mask of all arrays. If there is one then the answer $$$x$$$ is valid otherwise no.

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

    For each array and for each mask (out of $$$2^m$$$ of its indexes) calculate a minimum value. Then go through the input and for each array $$$i$$$ enumerate all masks $$$M$$$. Between all masks $$$M$$$ calculate maximum value of minimum(calculated minimum for mask $$$M$$$ of array $$$i$$$, maximum of calculated minimums for mask $$$2^m - 1 - M$$$ of all already processed arrays). The second value can be updated on the fly.

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

Veeeeery interesting!

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

Clearly, Numberphile made this contest

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

How to solve B?

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

Can anyone share a solution to F?

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

how to solve B

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

Can someone please explain the solution to D ?

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

"You should be eligible for ICPC and/or IOI 2020+" Without that requirement, I was second priority on bootcamp... So sad ;-;

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

Happy Hacking in 1288F - Red-Blue Graph 68818026 !!! System test passed!! awoo it should be ok?

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

How to solve B

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

By looking closely at conditions given in $$$C$$$, we see that $$$a_{1} \lt = a_{2} \lt = .... \lt = a_{m} \lt = b_{m} \lt = b_{m-1} \lt = .... \lt = b_{1}$$$.

So, why does choosing any $$$2*m$$$ elements not work, i.e. why is $$$n^{2*m}$$$ wrong. I don't understand, can someone please help me clear this up.

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

.

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

Am I the only one who did C with 2-D prefix sums?)

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

"You should be eligible for ICPC and/or IOI 2020+" I have second priority of bootcamp invite letter... But could not participate due to the above conditions.... So sad ;-;

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

I used binary search for D, is there any other method to do it in the given constraints?

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

My idea for problem A:

Getting $$$\min \left(x + \left \lceil \dfrac{d}{x + 1} \right \rceil \right )$$$ is the same as getting $$$\min \left(x + 1 + \left \lceil \dfrac{d}{x + 1} \right \rceil \right ) - 1$$$.

Then let $$$a = x + 1$$$, we should get $$$\min \left(a + \left \lceil \dfrac{d}{a} \right \rceil \right )$$$. Because we know $$$a + b \ge 2\sqrt{ab}$$$, I thought $$$\min \left(a + \left \lceil \dfrac{d}{a} \right \rceil \right )= \left \lceil 2 \sqrt{d}\right \rceil$$$. My code is here:

typedef long long LL;
cin >> n >> d;
LL tot = (LL)ceil(sqrt(d) * 2LL);
cout << (tot <= n + 1 ? "YES" : "NO") << endl; 

But now I think there's something wrong with it, that's becase of $$$\mathrm{ceil}$$$. Could you please HACK my solution, or tell me if it's right?Thanks.

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

How to solve E?

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

In problem A, shouldn't be the output of:

1

18 88

be "NO"? Shouldn't the minimum days required be 19 and not 18? My hack was unsuccessful for a solution giving output: "YES" for above case. Is the checker solution ignoring the ceil function mentioned in the question?

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

Please explain DP approach for C?

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

    You can count how many arrays start with $$$i$$$, are length $$$j$$$, and are non-decreasing by using

    $$$D(i, j) = \sum_{k = 1}^i D(k, j - 1),$$$

    and how many arrays start with $i$, are length $$$j$$$, and are non-increasing by using

    $$$E(i, j) = \sum_{k = i}^n E(k, j - 1).$$$

    The answer is then

    $$$\sum_{k = 1}^n \left( E(k, m) \cdot \sum_{l = 1}^k D(l, m) \right ).$$$
  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    dp state could be dp[i][j] , i the curent position in the array we are placing integers on, j curent difference between the numbers on i-1 position

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

I'm getting Illegal Contest ID when I try to hack any solution.

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

code problem C:
cout << C(n + 2 * m — 1, n — 1);

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

I spent more than an hour in C because 3rd sample test itself was failing. Later on realised that I had written mod = 100000007 instead of 1000000007. So didnt get time to solve problem D.

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

EDIT: now with a (actually) working min-cost flow :Dd 69056043

Solution to F
  • »
    »
    6 лет назад, скрыть # ^ |
    Rev. 5  
    Проголосовать: нравится +10 Проголосовать: не нравится

    Hey in the function minCostCirc() shouldn't the line: if (edges[ei].ru & h) res += incEdge(ei, h);

    be changed to: if (edges[ei].ru & h) res += (h*incEdge(ei, h));?

    (Since the new cost = previous cost + (flow added * cost of the negative cycle ).)

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

      Well spotted. Turns out that in every problem I tested my code on, either the cost didn't matter (only the flow along each edge in an optimal flow did) or the capacity of every edge with nonzero cost was 1 :Dd

      I submitted the fixed code to min-cost max-flow on kattis, so it should definitely now work.

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

Which is the math explanation for A

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

My solution for A is a bit different. Its enough to check on just x = (n/2),(n/2 + 1), and (n/2 — 1). Its because I think in the optimal solution both terms on the LHS in x + d/(x+1) = n (in worst case) should be equal or close enough. This means x = n/2 or around that.

Can anybody hack this?

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

What's the intended solution for 1288F - Red-Blue Graph?

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

can anyone give me a tricky case for A?? I would like to see if my code is OK

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

What is the meaning of non-ascending? Isn't the array $$$[1, 2, 5, 4]$$$ non-ascending because, well, it is not ascending?

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

    It says "sorted in non-ascending order" not just "non-ascending".

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

      Well, when they say sorted in some order, the ordering is often clear. For example, if they say sorted in alphabetical, lexicographic, ascending or descending, it is known what they mean or even then in some cases, they explicitly define the ordering.
      What kind of ordering does non-descending or non-ascending establish?
      I understand from here that it is fairly obvious to everyone who got an AC and even to several others, but it wasn't obvious to me. I just feel it should have been defined for the benefit of participants.

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

      A quick Google search found the definitions of these terms but only in the context of the ambiguities that arise out of using them :)
      I hope that contest setters will define their terms in upcoming contests.

      Anyway, I feel that despite this I stumbled upon an interesting problem. How would you approach problem C if non-descending is to be interpreted as not descending and non-ascending as not ascending.
      For example, if $$$[1, 2, 3, 4]$$$ and $$$[3, 2, 1, 5]$$$ are non-descending (say).

      I spent the entirety of the contest and much later trying to solve this but couldn't. Any ideas?

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

        I understand the term "sorted ascending" as every element is bigger than the previous one, and "sorted non descending" as every element is not smaller that the previous one.

        But basically it is the same, it works to simply see both as one and the same.

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

        For solving the new question that you have raised,

        We need to find number of arrays $$$(a,b)$$$ such that $$$a$$$ is not descending ($$$ND$$$) and $$$b$$$ is not ascending ($$$NA$$$).

        Simple inclusion exclusion gives,

        number of ways $$$(a,ND,b,NA)$$$ = $$$all(a.b)$$$ — $$$(a,D)$$$ — $$$(b,A)$$$ + $$$(a,D,b,A)$$$

        $$$(a,D)$$$ denotes $$$a$$$ is descending. ( note $$$b$$$ can be anything here ).

        $$$(a,D,b,A)$$$ denotes $$$a$$$ is descending AND $$$b$$$ is ascending.

        Now, $$$all(a,b)$$$ is straightforward. So is $$$(a,D)$$$ and $$$(b,A)$$$. And, for $$$(a,D,b,A)$$$ we can use the method that was required to solve Original $$$C$$$ of the contest.

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

          How would you solve $$$(a, D)$$$? This is precisely where I was stuck.

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

            $$$(a,D)$$$ is number of ways of choosing array $$$a$$$ of length $$$m$$$ with values between $$$1$$$ and $$$n$$$, such that it's elements are in descending order, ( and $$$b$$$ can be anything, so we must multiply a factor of $$$n^{m}$$$ ).

            Now, number of descending depends a lot on your exact definition of "descending". Is it "strictly descending"? Is $$$[5,3,3,2,2]$$$ descending?

            If you want only strictly descending, then you just need $$$m$$$ distinct values ( because "strictly" forces no repitition of values ). So final $$$(a,D)$$$ will be $$$ choose(n,m) * n^{m} $$$. ( $$$choose(n,m)$$$ chooses $$$m$$$ distinct values from $$$n$$$ possible values, and there is only one "strictly descending" ordering of these $$$m$$$ chosen values. )

            If your definition of descending array allows equal values, then we have the following equation to solve:

            $$$x_n + x_{n-1} + x_{n-2} + .... + x_3 + x_2 + x_1 = m$$$

            $$$x_{i}$$$ denotes number of $$$i$$$s that we take in our array. We must find all non negative ( $$$x_i \gt = 0$$$ ) solutions of the equation, which is given by $$$choose(n+m-1,n-1)$$$. You can read more about Stars and Bars.

            So, answer in this case would be, $$$(a,D) = choose(n+m-1,n-1)*n^{m}$$$.

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

              $$$b$$$ cannot be anything. $$$a_i \lt = b_i$$$ for all $$$i$$$ has to still hold for the inclusion-exclusion calculation to hold. P.S. Thanks for the link.

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

                This can be done with dp, instead of formuales directly. ( Maybe it could be done with formulaes, but I can't think of it ).

                Let $$$dp[i][j]$$$ be number of ways to choose both $$$a[i]$$$ and $$$b[i]$$$ with $$$a[i] = j$$$

                So, we must use $$$dp[i-1][x]$$$ where $$$ x \gt = j $$$ to make this result, and when $$$a[i]=j$$$, $$$b[i]$$$ can take $$$n-j+1$$$ values ( $$$j, j+1, j+2, ... n$$$ ). ( Note, $$$b[i]$$$'s are independent of each other ).

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

In test case 22 of problem A Inputs are

63243 999950885

Judge says theres NO answer but if he works 31620 days on optimizing the program will run in 31623 days and in total it would work in 63243 which will fit in the limit.

Am I wrong?

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

In problem A test case 22 inputs are

63243 999950885

The judge says the answer is No but if he works 31620 days on optimizing, his program will work in 31623 days and will fit the limit.

Am i doing somrthing wrong? awoo

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

Can anybody suggest easier or similar problem , based on same concept like D?

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

My rating hasn't changed after this contest and also this contest is not appearing in myProfile-> contests list. Can anybody explain?

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

How to solve c if both arrays are non decreasing?

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

    The only thing I came up with is the following. Let $$$dp[i][j][k]$$$ be the number of such arrays of size $$$i$$$ with $$$j$$$ and $$$k$$$ being the last elements of $$$a$$$ and $$$b$$$ respectively. Then $$$dp[i][j][k] = \Sigma dp[i-1][x][y]$$$ for all $$$1 \leq x \leq j$$$ and $$$1 \leq y \leq k$$$. We can maintain these sums using prefix sums. The total runtime will be $$$O(mn^2)$$$.

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

Why the rating hasn't changed?There is always change in two hours,but now is after the open hacking about five hours?

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

Does anyone know when the system testing starts ?

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

Does anyone know when the system testing starts?

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

EDitorial Please of Educational Round 80

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

Soo... Is it ratted?

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

To be honest, I haven't met such situation. So who can tell me what's the matter with codeforces?

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

Waiting for 4 hours already !!

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

Is there a better way to do A other than binary search?

I tried binary search but it fails on test 50.

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

How on earth happens with codeforces rating calculating system?

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

When the new ratings will be available? Can anyone tell that?

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

Why is the rating changes not published even after 6 hours of completion of open hack phase?

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

During and after the contest there were no signs of any issues with the tests or whatsoever, so we should keep our faith strong.

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

Перемен требуют наши сердца.

Перемен требуют наши глаза.

В нашем смехе и в наших слезах,

И в пульсации вен:

"Перемен! Мы ждем перемен!"

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

1288A - Deadline can be solved using the first derivative of f (x) = x + d / (x + 1) because when this is 0 it is because this point is a minimum, here we see the third case of the example:  the derivative gives us: 1 — d / (x + 1) ^ 2 and if we equal it to zero it gives us x = sqrt (d) — 1, if we substitute this in the original function it results in (2 * d — sqrt ( d)) / sqrt (d), if this value is less than n then we print "YES" or else "NO". My submission is 68818558

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

what is wrong in codeforces system?

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

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

It has been more than 6 hours until open hacking finished. System testing didn't even start yet! I feel like codeforces is having a problem with something!

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

Why didn't the rates changed till now?

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

meanwhile we could check our ratings here https://cf-predictor-frontend.herokuapp.com/

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

when will be the rating updated

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

Isn't it already too late for results?

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

when will rating changes come out ?

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

At least, someone please tell the reasons behind the delay.

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

When it will be rated ?

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

Finally, ratings got updated!

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

can some one explain how to solve problem E . I have knowledge of segment trees and BIT . But i have not solved much problem on them .

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

old submission wrong on test case 50 which was Input

2

63242 999919263

63242 999919264

Participant's output

YES

YES

Jury's answer

NO

NO

new submission

this i used long double which solved the error

can anyone tell me why.

the ranges were 1<a,b<10^9 for which i think float would have worked fine

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

Editorials?

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

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

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

Will we get to know who won the prize?

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

Please attach the announcement and editorial to the questions.