Автор awoo, история, 4 года назад, По-русски

Привет, Codeforces!

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

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

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

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

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

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

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

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

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

exited

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

Thanks A lot

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

Finally a contest on the weekend that I can participate. GL everyone.

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

Good luck everyone.

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

I've been constantly going up and down between blue and purple these days.Good luck to all the contestants.

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

I love to see the increased participation on the weekends. Good luck everyone.

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

So why is this round postponed to today? I remember that it was supposed to be held on April 6.

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

Vladimir vovuh Petrov makes the best questions...excited!!

gl to everyone

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

Прошлый раунд был отличным, надеюсь этот будет таким же!

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

Надеюсь, задачи настолько хороши, что ABC будут сданы у 2к+ челов в первые 15 минут.

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

I have a question,that it doesn't have to do with the contest but i think is not that important to write a blog about it. What i want to ask is how can somebody get negative contribution without commenting or posting a blog? My contribution decreased by 1 point compared to the one i had yesterday but without me doing anything. If anyone knows why this happened,please let me know. Thank you.

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

interesting round. B is brilliant problem

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

Greedyforces

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

I LOVEEEEEE SEGMENT TREES

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

I hate this round.

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

B — cringe C — cringe D — cringe

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

Is this approach roughly correct for E or am I way off and / or overkilling it?

Lets call components that contain both $$$(1, i)$$$ and $$$(3, i)$$$ but not $$$(2, i)$$$ for some i to be "partitionable".

These partitionable components must be connected by vertical lines spanning all $$$3$$$ rows in some columns, lets call them "partitioning lines".

Suppose a component has multiple "partitioning lines", lets call the rectangle formed by each adjacent pairs of "partitioning lines" of the same component a "partitioning rectangle".

After counting the partition lines and partitioning rectangles, lets go ahead and remove $$$(2, i)$$$ for each partitioning line. Now each partionable component has been partitioned.

Then the answer for a range is (the number of components that are partially or fully covered) — (the number of partitioning lines covered) + (the number of partitioning rectangles that are fully covered).

This can then be calculated using Mo's with a per-operation time of O(1) using a few supplementary arrays to represent the corresponding ranges.

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

    I thought it was a segment tree problem, but my implementation was too buggy to finish it in contest time :(.

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

    It can be done with a segment tree. For a range you should store the number of components in it and the connectivity information among its six vertical border cells. These are enough to merge two adjacent ranges.

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

      Oh, that seems super obvious now that you mention it... Thanks for the help.

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

      I had much trouble fitting this solution in constraints

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

      How do you merge two ranges? I had the same approach but got TLE. My implementation now is to build a new graph with 12 vertices (6 from the left range and 6 from the right) and do BFS on it, which seems to be too slow. Is there a better way to combine ranges?

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

        I had the same problem as you. I've managed to overcome it: https://mirror.codeforces.com/contest/1661/submission/153229389 (look at the method "combine").

        Basically, the idea is that we can just map either the left-side components to their right-side counterparts or vice versa. If on one side we have only one component, then it is always good to map something to it, since it can potentially merge some components from the other side. If on both sides there are two components, then the mapping direction doesn't matter, because disjointed components on each side will stay disjointed.

        Alternatively (that's what I did in the code), you can map from the side with two components. The idea is the same, the direction only matters when there is 1 component on one side and 2 on the other.

        Sorry for a messy explanation, it's kinda hard to put it into words. :D If you have any questions, feel free to ask, I'll try to clarify.

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

        Example:

        1 - 7
        1 - x
        1 - 8
        

        Here, we want to map 7 -> 1, 8 -> 1, because it will merge them.

        1 - 7
        x - x
        2 - 8
        

        Here, we can either map 1 -> 7, 2 -> 8 or 7 -> 1, 8 -> 2, it doesn't matter.

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

C is indeed a good greedy problem and I got AC after six WAs, LMAO

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

    What's the solution? i tried using binary search initially to find minimum required days

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

      I used binary search on the number of days. Note that you first have to make all the elements of the array have the same parity.

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

      same

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

      My solution is to count how many 1s and 2s you need:

      ll need1=0,need2=0;
      for(int i=1;i<=n;i++){
          need1+=(maxv-heit[i])%2;
          need2+=(maxv-heit[i])/2;
      }
      

      When need2>=need1, it's obvious that you can take one 2 as two 1s and get the best solution:

      ll tmp=(need2-need1)/3;
      need2-=tmp;
      need1+=tmp*2;
      cout<<min(daysneed(need1,need2),daysneed(need1+2,need2-1))<<endl;
      

      When need2<need1, you need to consider the possibility that the maximal height may increase by 1:

      if(need1>need2){
          ll ans=daysneed(need1,need2),tmp1=n-need1,tmp2=need1+need2;
          need1=tmp1;
          need2=tmp2;//this is how need1 and need2 behave after increasing the maximal height by 1
          ll tmp=(need2-need1)/3;
          need2-=tmp;
          need1+=tmp*2;
          ans=min(ans,min(daysneed(need1,need2),daysneed(need1+2,need2-1)));
          cout<<ans<<endl;
      }
      

      This is not obvious and you can find this possibility by analysing this case:

      10 1 1 1 1 1 1 1 1 1 2

      Hope I could help you. Excuse me for my bad English. :)

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

        Thanks for the clear explanation.

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

        I also thought of this initially, that you can calculate how many days you will need because, roughly speaking, after handling parities, 1/3 of your growth requirement will be handled by odd days and 2/3 by even days so we can solve for the final day. But this is a bit annoying at the edge, it needs some precise handling, so I just binary searched instead of explicitly solving these computations.

        Many BS problems have direct formulae, but you will find that doing the BS saves a lot of implementation and headache at the cost of a log factor.

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

Для меня D почему — то было проще,чем C и A ,не знаю ,почему. Спасибо большое за раунд

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

Every time i'm promising myself to never ever participate into a edu round, but every time I return back hoping on nice problems

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

Any hints for D would be appreciated, no idea completely..

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

Any proof of A why taking smaller element in one array in an index and the bigger for the other array works?

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

B took away all the time

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

WA problem C because I use int instead of long long int. God I feel so titled right now

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

I was literally one second late for submitting E, otherwise I would become master today (I'm crying

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

Did anyone use ternary search for C?

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

What is logic behind B?

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

For Problem C, can someone help me understand how the below test case answer is 9 days ?

7
1 1 1 1 1 1 2

I am getting 11, as all the trees with height 1 can be watered on every odd day (Days: 1,3,5,7,9,11).

Not sure what I am missing :(

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

    Try to make the height of all trees be 3

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

    Water the tree with height 2 on day 1 so you can do something on the even days.

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

    On day 1 , water the tree of height 2 , so new array becomes => [ 1 , 1 , 1 , 1 , 1 , 1 , 3] ,On day 2 , water the tree of height 1 , so new array becomes => [ 3 , 1 , 1 , 1 , 1 , 1 , 3] ,On day 3 , water the tree of height 1 , so new array becomes => [ 3 , 2 , 1 , 1 , 1 , 1 , 3] ,On day 4 , water the tree of height 1 , so new array becomes => [ 3 , 2 , 3 , 1 , 1 , 1 , 3] ,On day 5 , water the tree of height 2 , so new array becomes => [ 3 , 3 , 3 , 1 , 1 , 1 , 3] ,On day 6 , water the tree of height 1 , so new array becomes => [ 3 , 3 , 3 , 3 , 1 , 1 , 3] ,On day 7 , water the tree of height 1 , so new array becomes => [ 3 , 3 , 3 , 3 , 2 , 1 , 3] ,On day 8 , water the tree of height 1 , so new array becomes => [ 3 , 3 , 3 , 3 , 2 , 3 , 3] ,On day 9 , water the tree of height 2 , so new array becomes => [ 3 , 3 , 3 , 3 , 3 , 3 , 3]

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

    Someone please say how to solve 3rd case in 1st test case in 16 days as well.

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

      dvaravind 3rd case in 1st test case:

      7
      2 5 4 8 3 7 4
      

      Same thing in sorted 2 3 4 4 5 7 8

      Days:

      • 2 3 4 4 5 7 8 — Day 0
      • 2 3 4 4 5 8 8 — Day 1
      • 2 3 4 4 7 8 8 — Day 2
      • 2 3 4 4 8 8 8 — Day 3
      • 2 3 4 6 8 8 8 — Day 4
      • 2 4 4 6 8 8 8 — Day 5
      • 2 6 4 6 8 8 8 — Day 6
      • 2 7 4 6 8 8 8 — Day 7
      • 4 7 4 6 8 8 8 — Day 8
      • 4 8 4 6 8 8 8 — Day 9
      • 6 8 4 6 8 8 8 — Day 10
      • 7 8 4 6 8 8 8 — Day 11
      • 7 8 6 6 8 8 8 — Day 12
      • 8 8 6 6 8 8 8 — Day 13
      • 8 8 8 6 8 8 8 — Day 14
      • 8 8 8 6 8 8 8 — Day 15 (Skip)
      • 8 8 8 8 8 8 8 — Day 16
  • »
    »
    4 года назад, скрыть # ^ |
     
    Проголосовать: нравится +1 Проголосовать: не нравится

    Thank you for your replies Bungmint, robostac, helios_

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

    They didn't say we always have to make everything equal to max element of array. Just extra check for max_element + 1 would have passed all testcase . I got this intution by this example which i created during contest Hope it help you.

    Testcase Example — 1 1 1 1 1 1 1 1 1 2 (Instead making everything 2 make everything 3) Making everything 2 will cost 17 days while making 3 will cost 13 days . I was so happy when i found it during contest and got Ac.

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

Problem F is an easier version of Doubletrouble from JBOI 2018.

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

I don’t know why I’m getting a TLE. I asked me friends and they have kind of a similar implementation and theirs has passed. Could someone please check my solution. Thank you. 153209572

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

E is quite similar to 811E...

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

If you are/were getting a WA/RE verdict on problems from this contest, you can get the smallest possible counter example for your submission on cfstress.com. To do that, click on the relevant problem's link below, add your submission ID, and edit the table (or edit compressed parameters) to increase/decrease the constraints.

I've also added 2 new features: Near real-time log streaming and Compressed Parameter editing without using tables.

If you are not able to find a counter example even after changing the parameters, reply to this thread (only till the next 7 days), with links to your submission and ticket(s).

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

WOW, WHAT A CONTEST, every problem almost destroyed my sanity in a different manner, but I managed to solve them all (ABCD), but to get Expert performance again....

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

I have a solution for E that works in $$$\mathcal{O}(n \cdot \alpha (n) + q)$$$.

Solution

Implementation: 153223011

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

Any hint for C , I was able to thought that we will make max or max+1 height. but what after.

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

    Just that will suffice. The rest is figuring out the best way to water the plants (how to properly distribute the 1's and 2's)

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

      Any hint regarding how to distribute them

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

        If you have too many 2's, then you can split them up into two 1's, however, the opposite isn't true, as when you first count how many 1's are needed, they indicate the parity of the numbers (i.e. how many odds there are, and you can't distribute the addition of 2 to two separate numbers).

        How to count the 1's and 2's: if the number is odd, then you can increment the amount of 1's by one, then you increment the amount of 2's by (number / 2). Then you need to find the best result using what was said in the previous paragraph.

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

I just realized my algorithm for B isn't correct, how did you all solve B?

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

    I upsolved it in the following way. There will be a max of 15 operations because applying the second operation 15 times will make the given number a multiple of 2 ^ 15. Also, all the manageable addition operations should be done initially. The second operation will shift the bitmask of the given number and doing the first operation on the shifted bitmask will take more cost than it is taking while doing those operations initially. Brute force over the initial addition operations up to 15 and then brute force over the second type of operations 15 times and then add whatever is needed to reach the end i.e 2 ^ 15.

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

Can someone try hacking my submission? It seems like a buggy implementation of what I was attempting, which was this. (Negative numbers show up when there aren't parity differences, but they somehow cancel out) Thanks!

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

Couldn't solve the A problem on this one. felt I was getting ever closer to the solution with every submission but reached a dead-end at last. maan!! being unable to solve A, really does a lot of damage to your confidence...

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

Is there any mathematical proof for C that only max(h), max(h)+1 are the possible candidates?

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

    max(h) + 2 isn't a possible candidate because if all the trees could reach that height, they would have been able to reach max(h) in less time. The mathematical proof is prolly a more general version of this idea.

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

153217575 Even the solution of D was leaked. This guy got a rank under 1k through cheating. Please improve plag check to detect these types of codes. top_06 is using this kind of template in all contests to avoid plag.

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

Could someone please explain to me why my solution to B is timing out? I've checked multiple times and it seems like it should run if at most 15*15*32768 = 7*10^6 operations.

https://mirror.codeforces.com/contest/1661/submission/153237229

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

how to solve problem c ? can any one explain its solution in details?

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

    It was translated from another language, I'm sorry if something is unclear. note that we do not necessarily want to make everyone equal to the current maximum, sometimes it is a maximum of + 1. For example, 2 1 1 1 1 1 1 1 1 is faster to lead to the form 3 3 3 3 3 3 3 3 3, than to 2 2 2 2 2 2 2 2 2 also note that > max + 1 is obviously bad (instead of increasing each by 2+ from the current maximum, we could just not do it) then we will separately solve the problem for max and for max + 1 and take a smaller value as we solve: alternately, we look at the current growth of the tree and if it needs to be grown to an odd height, we add 1 to CNT 1 — the minimum of operations + 1 that we will have to perform, otherwise it will not be possible to grow the tree to an odd height

    for now, we will assume that we will do all the rest of the height +2, we will write the number of such operations in cnt2

    that is, the height of the tree 3 that we want to grow to 10 will add 1 to CNT 1 and 3 to cnt2 (1 + 3*2 = 7)

    now if cnt1 = cnt2 — the answer is 2 * cnt1 (we do 1 2 1 2 1 2 1 2 1 2, no day is missed, so it can't be more effective)

    if cnt1 > cnt2, then the answer is 2 * cnt1 — 1 In short, it will not work, cnt1 tc (we do 1 2 1 2 1 2 1 _ 1 _ 1) — cnt1 is the minimum of operations that we have to do

    if cnt2 > cnt1, then the intuitive solution looks like this 1 2 1 2 _ 2 _ 2 _ 2. And we can improve this by replacing some 2 with 1 1

    let the sum = cnt1 + 2 * cnt2 — how much height we have to add to the trees.

    Then if the sum is divided by 3 — obviously the most effective scheme 1 2 1 2 1 2 1 2 1 2 answer = sum // 3 * 2

    If the remainder of the division = 1, then 1 2 1 2 1 is the sum // 3 * 2 + 1

    if the remainder of the division is 2, then 1 2 1 2 1 2 _ 2 In the latter case, it will definitely not be shorter, since without the last two we will not reach the sum of the answer sum // 3 * 2 + 2

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

I understand that in D we should increment values going from n — 1 to 0. But this simple solution gives O(n^2). Can it be implemented using a segment tree in O(n log n)?

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

    You don't need a segment tree. Your idea will be $$$O(n^2)$$$ if you apply your additions to all $$$k$$$ values at once. Don't do this, this can be done more efficient! Remember how often you applied the addition at positions $$$i+1$$$, $$$i+2$$$, ... $$$i+k-1$$$. Let this be $$$m$$$ additions and their total sum at the moment for position $$$i$$$ is $$$S$$$. When you go from $$$i$$$ to $$$i-1$$$, $$$S$$$ will decrease by $$$m$$$.

    I guess this can be quite confusing, compare 153239645 the values q, element and sum and only consider the case i >= k - 1 at first.

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

The test cases for problem D is weak. I hacked 18 submissions with the same hack case

300000 150000 
1e12 1e12 1e12 .....

Does the setter intentionally not providing this kind of corner case?

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

I was looking at submissions for problem C to see if my solution could be hacked, and I found these two solutions: https://mirror.codeforces.com/contest/1661/submission/153183418

https://mirror.codeforces.com/contest/1661/submission/153182822

They are identical, but from different accounts; both were submitted during the contest window (clearly cheating). I was wondering if there is a way to report these accounts/submissions; will they automatically be taken care of since the submissions are identical, or is there some other procedure that should be followed?

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

I think 153213622 is for a total complexity of at most $$$O(\sum a)$$$, so it should be hacked by

32768
32767 32767 32767 .....

however, it only takes 951ms to get the answer. why?

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

To not keep you waiting, the ratings are updated preliminarily. In a few days, I will remove cheaters and update the ratings again!

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

proof to greedy approach for problem B??

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

Can anyone tell me why I am getting RE on test 7 in problem D? 153304212

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

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