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

Автор arsijo, 7 лет назад, По-русски

Всем привет!

Рейтинговый Codeforces Round #571 (Div. 2) будет в 28.06.2019 11:20 (Московское время). Этот контест основан на Летнем Кубке Кременчуга по программированию 2019.

Контест подготовлен Dalgerok, Karasick, stanislav.bezkorovainyi, antontrygubO_o, danya.smelskiy и мной.

У вас будет 2 часа 15 минут на решение 6 задач.

Удачи!

We apologize for the issue that happened with the problem B. The round is unrated. If you want to read my emotional reply about it, please read this.

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

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

shortest blog for CodeForces round XD

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

there is one more thing you wanna say

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

I loved the Product oriented recurrence(E) question too much from your last contest.

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

I hope the statement as short as the blog :)

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

I got it all wrong, it was not you

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

It was wonderful to set the contest for 2 hours and 15 minutes instead of 2 hours.

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

You forgot to thank MikeMirzayanov for codeforces and polygon platform.

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

You forgot to thank MikeMirzayanov for codeforces and polygon platform.

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

What do they mean when it is said that the round is based on a certain competition? In this case the "Kremenchuk Summer Programming Cup 2019".

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

This day is my birthday, I hope I will become yellow

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

The time is unusual.And it is friendly to Chinese!

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

    so strange I feel. Although I think in here, the words Rabbit said seems emotional and rude. But, both sides’ words are really harmful to this fair community and very disrespectful. I don’t know how everybody who looked at these comments, also upvote or downvote to both them thinks. At least I regards these behaviors are unreasonable.

    Ok, I’m just using my right to express how my feel, and also, take my downvote. Mmaybe a downvote can’t represent or change anything, there may be a lot of people on the other side. So what, that’s my right¯_(ツ)_/¯

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

Do i need to register or can i directly participate..I don't see register button..

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

May I become an orange color after this round?

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

New to codeforces and been reading this a lot "based on......". What does thos actually mean?
Are the questions same, similar or based on something taught there??

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

Hi i'm very new to CP. I'm not sure if this is the right place to ask my question but sorry :-) I've joined CF recently. In my profile it is showing unrated. What should do to get rated.

Please help me I want to improve. Thanks to all in advance

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

Can someone give more information about the "Kremenchuk Summer Programming Cup 2019"?

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

It's a nice time for Chinese CFer

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

Kek, authors have 3 IMO medals. Why not 3 golds, antontrygubO_o? :trollface:

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

This day is my birthday, I hope I will become cyan.

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

good luck !

hope good color for all ♥

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

As a Chinese I think the time will be good for us.
However, I'm in Russia now and thus the time is not that friendly for me to participate lol.

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

I was introduce with programming just 1.5 year ago. I have created my codeforces acount then. But still i don't know about the rating system. Anyone please help me to know about the rating system.

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

It feels to be good on Codeforces!

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

Contest time is suitable for Chinese.Good luck for everybody.

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

Hi everyone I want to solve questions on graphs and trees but i don't know basics about tree and graph.Please anyone help me from where i can learn basics and after that i can solve questions on graph and tree. Thanks in advance.

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

Delayed!??

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

Why contest delayed by 15 minutes? It's definitely a bad culture of Codeforces!

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

    I think the purpose is to gain more participants, but since the start time is different from the usual contest, the fact that there are fewer participants is not strange. Anyway, it's time to read comments. :)

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

Разбалловка будет?

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

я теперь на зачёт по чмам не успею((

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

Delayed by 15 minutes

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

Sorry about the delay. We have some internet issues onsite.

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

Will there be a 12 hour period of hacks for this round after the contest?

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

 that internet issue again

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

Seems that, codeforces is trying to maintain it's dignity(as well as uniqueness) by delaying contests nowadays.

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

![ ]( ) we are still waiting

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

looks like that code forces is testing it's users's patience !!

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

yes 15m delay ...…. Thx from Bangladesh !!! its Friday …. ( salat time if the contest start before time)

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

So real!!!

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

Score distribution?

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

I had registered for the contest . but during contest it showed i didn't register for the contest and thus couldn't submit solution . Please , Codeforces solve these type of problems soon.

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

I think the sole purpose of this contest is drop my rating, getting easiest A and level goes high up from B.

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

the contest is unrated now :(

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

Iron Han Han

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

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

The problem setter of B should stop creating problems.

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

anyway, will there be a tutorial for the B ?

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

When you solve D problem the first time and contest becomes unrated :/

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

The contest became unrated. :(

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

Поясните зачем вообще давать такую задачу как В? Нормальный же контест был, неужели так хотелось дать задачу на "99% участников не будут ничего доказывать, просто напишут разной степени тупости формулы". Это просто смешно.

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

The luckiest and unluckiest day of my life

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

What's the answer of this input for problem B?

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

It's 4:50 a.m. in my timezone.

And the round is unrated.

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

Вот что бывает, когда забываешь поблагодарить MikeMirzayanov за платформы codeforces и polygon.

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

How to solve B?

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

arsijo please stop creating problems (с) (2).

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

Let's solve problems for fun!

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

Scored well for the first time. Round unrated. Can't laugh anymore at my fate. LOL crying inside

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

Round became unrated => Let's start down-voting the blog post :D

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

"основан на Летнем Кубке Кременчуга по программированию 2019"

И как теперь вы поступите с кубком? Он будет кому-нибудь отдан или нет? - А вообще очень жаль, что раунд нерейтинговый. Я так радовался, когда прошла задача D...

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

calm down...

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

I wrote down last Div2 contest that from now on I will skip B's and work on C and D, and I managed to solve D while I didn't have even the slightest idea how to solve B (or C). Seriously guys, fix your B's and C's, C's are usually better and easier than B's because you put some stupid string/geometry tasks in B that are unnecessarily hard.

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

When the contest time is so convenient for you, but the round became unrated. SAD LIFE

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

Unrated at last :( . This round was my debut round for becoming specialist.

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

Is this round unrated now?

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

I thought that author of problem B was just unlucky. Even many (it could be over 80%, maybe?) oranges or reds are solving with incorrect solutions. So it is not to surprise that all writers and testers solved in incorrect but same way.

So, I can't gaze at the current situation which problem setter said to stop creating problems.

And I don't think that it should be heavily downvoted, as same reason as Codeforces Round #373.

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

In problem B, the result for "6 6" should be "7" and for "8 8" it should be "13". I guess it's the problem for the solution and the point for my "Wrong answer on pretest 3" * 4 and "unsuccessful hacking attempt" * 2.

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

    For 6x6, the answer would be 8

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

      Well, my fault...So can this problem be solved in O(1) time?

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

        It might be

        ( n + 1 ) * ( m + 1 ) / 6

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

            Looks right, but I could not prove the very first claim myself and then gave up. How to prove that if there is a correct placement of the 1x2 and 2x1 pieces, then the extended 2x3 and 3x2 pieces do not overlap?

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

              Consider most high right point these usual pieces touch. If it belongs to both pieces, they overlap. Now it belongs to one "hightest" piece. They overlap iff extended highest overlaps other one's highest rightmost point. It cannot overlap other one's extended side (the one we added, imaginary)

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

                Thanks! Still can't say I completely understood it but I got the idea.

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

                  if extended higher upper piece touches other usual piece, then both extended pieces collide.

                  If it does not touch other usual piece, it does not touch its extension: (Same as if extended touch, usual pieces touch) If extension covers usual piece, then both usual pieces touch trivial. If both extended areas touch, then: a) Going higher on piece 2 collision (that is lower or right-er) from that point, we get to usual piece from piece 2, that piece also collides with extended 1, trivial case above. It cant go higher because piece 2 is lower. Also, all higher pieces collide and if there are no usual pieces 2 on that path, we can still use that fact. Let's take highest such point b) We get some other extended collision piece. By same argument, we can go left and find usual piece from 2 that collides with extended 1. This time, we know that going left once will get us to usual piece 2 (there is only 1 point with the property for both types of extended pieces). This time, this piece may not even touch extended 1, but be in lower left corner of it. So it touches usual 1 by our rules anyways (this one is extra case, others are trivial).

                  Extended = piece with border. Extension = border (down and right) usual piece = original one, without extension

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

            Thank you for the detailed explanation

            This is the 7x7 case: (in case anyone was wondering)

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

        This has to be solved in O(1) time.

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

    me the same. my solution is (m+1)(n+1)/6 but "Wrong answer on pretest 3". I dont know why :((

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

Delayed 15 min and turned out to be unrated. What a good round!!!

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

At last unrated. I was going to become specialist in this round.

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

A problem in EGMO contest 2019 is just a special case of Problem B today (they just ask to find the maximum with table of size 2n x 2n):

https://artofproblemsolving.com/community/c6t520112f6h1818715_yet_another_domino_problem

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

What a shitty contest.Problem A kindergarten problem.Problem B is shit. Problem D is easier than B. Don't know who is testing these rounds.

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

What the f**k?

I had a great score in this round and I can be a candidate master then it is unrated?

I thank the authers very mucn and I know preparing a round is difficult. But I still think this is a little sad.

Hope everyone can have a great score next time ans hope myself can be a candidate master. :(

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

A perfect contest becomes bad because of problem. I feel upset.

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

I am very very disappointed in codeforces. I woke up at 3:30 AM just to do this contest. I was actually pretty happy when I saw the problems because I knew how to solve them and I was predicted to get quite a bit of positive delta. But all of a sudden announcing that the round is unrated because the problem writers for some reason can't make good problems is quite discouraging. Imagine how many times I would have wanted round to be unrated in order to not lose rating. Maybe this should be a wake up call for all those creating contest: From weak pretests, to weak solutions, to weak language. All this can be avoided by testing thoroughly and thoughtfully.

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

antontrygubO_o ну и кто из всех этих золотых медалистов IOI проглядел идиотскую задачу? :)

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

Weird difficulty distribution.
For me it is just like A < C < D < F < both B and E
What thE HeLL???

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

finally passed pretest of F have almost +200 on predictor, excited to become candidate master. And the next second it became unrated.....so upset.

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

real shit contest ! hard B(even writer and many unofficial participant don't have solution). fucking implementation D and E with Case handling !

please when you are writing problems be in participants shoes and don't write shitty problems !!!

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

How does it feel when 6 authors + testers + coordinators can't properly solve 7th grade math?

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

By the way, it was because of the problem B that I moved to D and could solve it. So, thanks anyway.

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

Мы против анрейт раундов

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

The problem setter of B should stop making questions.

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

UNRATED

That's the result when you forgot to thank MikeMirzayanov for codeforces and polygon platform. :)

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

The problem setter of B should stop making questions. At last it became unrated. This was my debut round for becoming specialist XD. Someone wants to see me in green.

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

OK,I can solve these problems for fun.But in fact it waste my time.But I won't decrease my rating.

It's a lucky and unlucky day.

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

Вы рофлите ??? Почему нельзя просто сказать , что этой задачи нет ????? Те люди которые не могут ее решить должны были решать другие задачи , а те кто ее решил, сделали это очень быстро... Из за оплошности авторов я просидел 1 час пиная мертвый раунд.... Вы думаете я задачи просто так решаю ???? Самое главное в раундах это получение РЕЙТИНГА пусть и не всегда положительного (ИМХО). Поэтому, я ставлю минус данному раунду .

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

Can someone give me counterexample to (a+1)*(b+1)/6 in B?

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

The problem statement of B was very unclear. Did C and D and later found that the round was unrated. Many contestants like me are very excited whenever we see a new contest on the contest page and are equally disappointed when the round becomes unrated due to such reasons.

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

waste time for this contest, 1 min to solve A and 1 hour can't solve shit problem B. And when it remove, i spend 5 min to solve D -_-

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

Why "this round be the UNRATED"? Other problems are perfect. :(

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

Blacklist all problem setters.. :'/

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

Серьезно, профукать час с лишним времени на решение раунда, чтобы апнуть кандидата, а он оказался не рейтинговым из-за какой-то там B. Бесит. А так раунд более менее норм

UPD: А еще раунд в 11 часов. Просто а

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

My mood right now after knows the contest is unrated

mood

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

Who is here after the round being unrated and before the end of the contest?

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

The problem maker is cxk

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

I like contests. We should not forbid the problem setters from setting problems. Without their effort, there will be no contests. Just prepare problems with caution and be aware that thousands of people will suffer because of careless.

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

I was so happy for a while...

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

How beautiful the Problem B is!

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

Even though the round is unrated, I liked C and D. nice problems!

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

Since the round is unrated, can anyone give some hints on F?

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

How to solve D?

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

It proves that the task may need more people to check, and tell the reasons. :(

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

Who will win : Div2B or 2 gold IOI medalists and 3 IMO medalists

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

Sorry, I can't find problem B(

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

am I the only one who didn't even understand B ?.. I don't get it how they do touch and don't

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

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

What was wrong with F?

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

    Plz. say that F is also wrong...!!!
    That will make the setters learn something unique today... lol

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

      No, there is a correct approach, but I'm afraid about the strength of the testcases. Most solutions should fail if they are strong enough, for example, the solution of the current winner (pekempey) fails on this test:

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

    I dont know, but I had to use SCAN to read input and printf to output. Otherwise I would recieve TLE in test case 10. Probably my solution is wrong.

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

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

Спасибо что отсортировали задачи по уровню сложности!1!!1

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

This is now a curse to those who don't thanks to MikeMirzayanov and to Polygon. If you don't, your contest will be unrated!

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

How to solve problem c?

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

I wonder how my brute force solution for F passes the pretests?

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

In what case is the answer in B not $$$\left\lfloor(w+1) (h+1) / 6\right\rfloor$$$?

This is at least an upper bound, since the problem is equivalent to tiling a $$$(w+1) \times (h+1)$$$ array with $$$2 \times 3$$$ pieces. To do this, place a $$$2 \times 1$$$ domino to the upper-left corner of every $$$3 \times 2$$$ domino, and a $$$1 \times 2$$$ domino to the upper left corner of every $$$2 \times 3$$$ domino.

Edit: I managed to prove that this can always be achieved

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

can any one explain C ?

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

    First observe that if two binary strings are same at an index, then the sum of the bits is even and if different, sum is odd. So, the total of such sums of bits will be $$$Sum= (No. \, of \, vertices \, at \, which \, bits \, are \, equal)*(Even)+(No. \, of \, vertices \, with \, different \, bits)*(1)$$$ So the criteria for even number of different bits reduces to the sum being even.This can be done in $$$ O(n) $$$ by storing the sum of |b| bits of a and iterating through the remaining bits of a.

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

Is F really easy or does the greedy not work?

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

What is system testing after the contest?

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

Credits to Rudy1112 for outstanding memes

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

Here, I don't know why people are angry because this round goes unrated. I am very thankful to the problem setter that I am able to read all the question this time. Otherwise, I got stuck in the 2nd problem.

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

in F: greedy will always work or we should use DFS + eulerian tour ?

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

[ [ DELETED ] ]

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

    Chill, if you're red it doesn't mean you have to win every time, so stop complaining to grab contribution. We know B is bad, but if a green complained about it he would've gotten -40 or smth.

    Also, you could've focused on harder tasks, since they're obvious close to your level.

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

    Since there is only a month before IOI, you should weight more in practice with more difficult problems. Not like some shitty Div2 rounds. Or are you actually a blue coder??

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

    Why are you and square1001 always like this?

    No one judges how Div1 people do in Div2 rounds. This is nothing like IOI, and no one doubts you're good

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

      [ [ DELETED ] ]

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

        Okay, I can see why you personally care about Div2 rounds, but maybe read back the post before you send it.

        What to you reads as an honest message about 'failure' reads just like matthew99 or geniucos' whining posts after their 'failure's in the IOI — really annoying to most people on CF (in particular, all the Div2 people in this round) who would be lucky to have as good a contest in a year of programming.

        Note: I say 'failure' because I do not judge either of the cases mentioned as failure

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

      I'm not an IOI participant this year so I can't say anything, but caring much about "not failing in contest" is a very good concept, because we can't miss gold or some medal. Gold medal probability 80% is better than that of 70%.

      So, if we fail even in Div.2 contest, we tend to search why did it fail and we believe that excavation of them may yield mountain of treasures for improvement. Suppose that I solved Div.2 F in 30 minutes but some reds are solving in 25 minutes — we think about what was different between the fastest players, and what was wrong in my thinking, implementation, debugging, or something else, and then think about improvement to decrease the probability to fail in the same way in future.

      However, for this time, he claims that the writer was the cause to fail. I wonder what improvement we can find.

      UPD: He mentioned in his comment that we should not forget that Div.2 has also many interesting problems, and it is also same as my thought.

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

        Isn't it why you failed to get in the Japanese national team that you always care about "why can't I solve this (Div 2) problem in 30 minutes" rather than "why can't I solve this (OI problem some golds can solve) problem in 2.5 hours"?

        You two gotta understand the priority. Why are you always practicing short-term contests and failing (or at least struggling) at training camps for years? As a tutor, I am really disappointed with your stance towards OI.

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

        I would be very surprised if someone has never gone far lower than their expectations. Ideally, when you fail you need to look for reasons behind the failure, so you could focus on improving said points. On the other hand, taking part in a contest means you need to accept the possibility of failure. I'm not saying you shouldn't care about failing, but rather if you accept it, you can forget about that fear, possibly even perform better, and not take it hard when it happens.

        To me it seems that E869120 is devastated about the wrong things. "I spent 91 out of 135 minutes for problem B, and because of this issue, my round result became historic and rare failure. [begin complaint paragraph]" — Okay, you can point out the bad time management, but how about you focus on "next time I can prepare myself for such events and manage time better", instead of ranting about this specific performence? You're worrying too much about things that, frankly, are not under your control;

        • A certain problem will take you longer than for others.
        • You cannot find the bug quickly.
        • Today was just a "bad day" for you, while maybe a "good day" for others.

        Maybe having a good day to you is affected by how well you slept the night before, but it's useless to consider it during or after a contest, so what good is it to focus on such things? You need to be aware that it can always happen and move on.

        In my opinion you should resolve this mentality before the IOI. If you're driven insane by accidents on CF div2 rounds, I can't imagine how you could feel if you don't meet your exact expectations on IOI.

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

Could you please loose the time limit of Problem D to 2 seconds? I am python user. Usually the system suggests us to submit through PyPy for faster judgement. But this time PyPy is slower than Python 3.

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

Mike Meanwhile mike

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

SyTest please :)

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

Now ,why don't admin ban account of this blog's author as they did mine(for 48hours) just ,for asking my doubt. People usually dislike new members due to there low rating. So my negative contribution doesn't mean i am posting bad stuff ... I received a message from SYSTEM named id 3-4 days ago and my id was banned****..

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

    If you posted public blog during contest, then it's rules violation and it's correct if you has been banned after that.

    If you have some doubts about correct testing then you should ask your question to jury.

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

    the blog goes negative because of the toxic community the author of this blog did nothing wrong

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

      I see the one who posts the blog as the someone who is responsible for any issues related to the problems. If you are not welling to be responsible in case anything went wrong with one of the problems, simply don't be the one who posts the blog.

      Ofc, he shouldn't get downvotes because of problems like server-issues, power outage, or any problems that happens in the round but not related to the setters.

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

Can somebody share the results of an on-site competition?

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

What kinds of wrong solutions did people submit to $$$B$$$?

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

    Something like initially fill row with all horizontal tiles then with vertical tiles doing this alternately.Do this for both cases n*m and m*n and output the maximum

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

If this was the scenario for CF round what happened at the Kremenchuk Summer Programming Cup 2019.

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

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

Almost missed submission of my second problem by 5 second ,i was feeling very depressed and angry on myself.. But thank got round become unrated ...

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

By the way when the system testing starts?

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

can anyone tell me how to solve D.i tried to sum the decimal part of numbers with sign and distribute it among the numbers depending whether the sum is positive or negative?wt is wrong with it?please help.here's the link-https://ide.geeksforgeeks.org/vUNw9LErK6

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

Will there be any system testing for this round??

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

This is very annoying, I don't mind that round is not rated,but I hate "artificial" problems,that don't have proof.I was trying to solve B for 90 minutes,before clarification, I couldn't focus on D or C,because I hadn't solved B... I really got annoyed and wanted to stop studying CP...

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

First time ever I was able to solve 5/6 problems in Div 2 and my rating was going to increase about+174 and they declared it unrated so unfair.

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

Why is the contest still "Pending System Testing"? I want to be submit — If the contest is unrated what's the point of not allowing submissions during system tests?

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

In my opinion, tasks in this round was really good, although they didn't swap C and D and difficulty of B is 9999+. Also they could swap F and E but I don't see any problem here. But contest is not only about tasks solving, so the contest.

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

Why is the system test still pending? Are you guys intentionally trying to make it the worst contest ever now?

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

When will the system test start?

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

Before the contest started this blog had over 200 upvotes and now it has 300 downvotes. That means more than 500 people downvoted. People are more interested in downvoting when a contest is declared unrated than upvoting when they see a new contest

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

Since my randomized (in time) F finally passed with a good running time (888 ms), I wonder if F tests are just weak or if anyone can prove the correctness of randomized solution with a high probability?

Link to solution — https://mirror.codeforces.com/contest/1186/submission/56215781

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

I solved F using a randomized algorithm. 56216823

While I didn't find an answer, I shuffle the edge array and try to greedily remove edges if possible using the random order. It manage to get an AC. I am still confused why would that work. Does anyone got some idea for a proof?

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

I am waiting for the editorial for problem C.

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

wtf testers, check your mum, why I get AC in F with shuffling edges?

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

Great job with preparation...

Testset in F sucks, many solutions (including mine, but due to a bug, not to being a heuristic) should fail... And most of these which failed, failed on my test from hack... Unfortunately, I didn't have enough people in my room to make tests stronger...

Heuristic in B? Seriously? Prove solutions or stresstest them next time. I'm not telling that everything should be always prepared by 15 people with rating 3500+, but remember, that you show your own quality by preparing a round, so you should do your best, no matter what this "best" means... Here, authors definitely didn't :/

UPD: I totally forgot about it. After making an attempt to hack for the first time, I've received "Unexpected verdict" verdict. Can you explain, please? Was the main solution wrong in some way? If yes, what was the reason? Bug, or similar situation to B?

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

Can anyone explain wat was the problem with Problem B. My code was able to pass all pretest and I didn't also find any problem in problem statement. Can someone please elaborate!

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

I forecast that this contest will be unrated

so what can I say?

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

Hey, I have one strange question for problem D. Is it not ok that my solution doesn't submit because it prints -0 instead of 0, or i should remember this feature of C++ for the next time? Here is the code: https://mirror.codeforces.com/contest/1186/submission/56215735 (Please rejudge it if it was unexpected mistake)

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

Is there any way to solve problem B with (1<=n,m<=10^9)?

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

What is the intended solution for F? I gave the contest from my smurf and applied greedy from the start and from the end on the edges given. The solution passed, however I don't think it should have. Please rejudge if the solution is incorrect. Submission: https://mirror.codeforces.com/contest/1186/submission/56222396

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

    can you please explain why did you go through all edges two times, first from 1 to m then in reverse order. Is'nt going through only one time enough?

    Actually, I wrote code using same greedy approach but with only one loop and it failed on test case 31

    my code

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

      I initially submitted the solution by iterating only from forward and the solution passed the pretests. However, I realised that it is was such a naive approach yet a lot of submissions failed the pretests. That's when I realised that the solution undoubtedly depends on the order of the edges. So, I did this in an attempt to make a randomised approach so that odds of the solution passing would be higher. I did not expect it to work though.

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

How to solve problem B with (1<=n,m<=10^9)?

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

Why is Problem C tagged fft? Does anyone have an fft solution for C?

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

Apart from some questions being too easy and some being too weird, I am interested in question E.

The thing which I found during the contest was, ith block (0 indexed and in the same line ) will be same as first block if number of bits in its index is even. else it will be inverted. Then I will calculate all the complete blocks. (Also the Special case when they are odd). Now comes the question of handling incomplete corner row and column. How to do that ?

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

Ради таких задач как E и стоит жить.

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

How to solve F?

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

Is problem F really easier than E?

I tried to solve F after 45 minutes(before the surprising announcement). However, I didn't find a solution that I can prove in an hour! Then I gave up on it and turn to E, although only one-third people solved it compared with F... Do you know what happened then? I found a $$$q \cdot logn \cdot log{10^9}$$$ algorithm in just 5 minutes, but there wasn't enough time for me to implement it...

What's worse, after finishing the code five minutes after the end, system testing didn't start. As you know, I waited for a long time.

Then comes the questions:
- How to solve problem F? (All of my friends' solutions get FST qwq)
- Is there a faster algorithm for E?

(In fact, preferring 'first' rather than 'easiest' also happened on me in Codeforces Global Round 3)

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

Such an easy F problem, but i can't prove that greedy algorithm is working. Can anybody help? All i do is run through all edges and delete an edge if possible while the number of edges exceeds (n + m + 1) // 2. Very similar to Ford-Bellman algorithm.

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

Nowadays in every div2 contest- I see the B problem is greedy. What is the reason?

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

Sorry for the issues with the round 300 more times.

Intended solution for F was:

Create an imaginary node and connect it to all nodes which had an odd degree in the original graph with imaginary edges. Now, all degrees are even. Now find the Eulerian path. Added (imaginary) edges cut it into not more than $$$\frac{n}{2}$$$ chains. Now from each chain of length $$$k$$$ we will choose $$$\frac{k+1}{2}$$$ edges skipping each second if $$$k$$$ is odd and $$$\frac{k+2}{2}$$$ — first edge and then skip every second — if $$$k$$$ is even. It's easy to see that this way we will take not more than $$$\frac{m+n}{2}$$$ edges in total. Also, it's easy to see that the degree of each node will decrease not more than in $$$2$$$ times as in each chain we take at least $$$1$$$ edge from each node in that chain.

The more detailed solution will be posted in editorial soon (I hope).

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

Guys, why are you so angry at the authors of this round? I understand that you and I expected them to have a well-prepared set of problems so that we can enjoy solving them. They definitely failed in one problem and admitted it. However, why must the authors meet our expectations? We have not hired and paid them. Actually, the authors and CF team owns us nothing. I think we should always take this fact into account while complaining about anything here.

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

    I'm sorry 。I accidentally ordered the bad review.

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

    To be fair, authors are indeed paid for preparing rounds.

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

    Thousands of participants also paid time to take part in the round, we spend more time on it than the problem setters (the sum of all participants). So, we should thank the problem setters if we enjoyed the round and got help from the problems. If we wasted our time (I admit that some of the problems are good, however, I think there are people struggled with problem B, doubt him/herself, and got accepted with the wrong solution, and thought it was right), if the round didn't "satisfy the need of CF users", we have no reason to thank them.

    What's more, this is a CF round. In my eyes, Codeforcces rounds are a symbol of high-quality contests. If it is a round on CF, the problem setters should not only make efforts but also have to work carefully, take responsibility for the participants.

    However, as arsijo said, "in a week before the round, KAN told me that there is a need of a CF round at the end of this month", the faults are not only on the problem setters. I also want to ask, why a CF round is needed at the end of this month when there are rounds 2 days before and 2 days after if the round is not well-prepared?

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

1186F - Vus the Cossack and a Graph accepted with a randomized solution (56231972). Any counter test or proof?

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

I have slept the round.

Please somebody send problem B preposition because i am curious and it is removed. Tnx

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

    You are given a $$$n \times m$$$ size of rectangle and infinity number of $$$1 \times 2$$$ tiles. You have to fill the rectangle with as many tiles as possible, so that

    • each vertex of each rectangle is lattice point (i.e. both coordinates $$$x$$$ and $$$y$$$ are integer) if you defined an $$$xOy$$$ coordinate whose origin is one of the vertices of the original rectangle, and both axis are along the edges.
    • no pair of two tiles shares any points in common (i.e. they don't overlap each other and don't share edges or corners).

    You can rotate tiles. What is the maximum number of tiles you can place?

    Constrains: $$$1 \leq n,m \leq 10^9$$$ (I guess; maybe smaller? I have a bad memory)

    Example 1: $$$(n, m) = (3, 3)$$$, answer is $$$2$$$, in which case you can place the tiles as follows (different numbers indicates different tiles:)

    1 1 .
    . . .
    2 2 .
    

    I forgot the other example. Hope that helps

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

Can anyone explain the solution for problem C. Please!!

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

    same in two strings: even "1"s

    different in two strings: odd "1"s

    So you just need to maintain the xor value (number of "1"s modolo 2) of each character of $$$b$$$ and $$$a[i..i+|b|-1]$$$, and calculate the number of "1"s in the two strings modulo 2.

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

Can anyone tells me what is wrong with this solution ? 56211719

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

Can the authors correct their decision on problem B and add it to the archive? I would like to solve it in good condition.

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

In problem D I first converted all the elements to their floor values. I initialised a variable "dif" that will store the sum of (a[i] — floor(a[i])) for every i. Now dif needs to be added to the elements. So I iterated again and if the element was earlier a float value and dif is greater than 0 I added 1 to this element and decreased dif by one. I am using a boolean array "can" to check if the element was earlier a float value or not. Why is this approach wrong 56231283

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

    I believe that it is floating point roundoff error.

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

      How do I handle that? I got WA in python too

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

        Your method is correct except for the floating point error. To fix that, instead of dif > 0, you should use dif > (some epsilon value that works). You could try dif > 0.5 since dif should be equal to an integer when there is no roundoff error after the first for loop.

        Double is stored in binary format, hence adding exact decimals may not be 100% reliable. For example, in double, 0.2+0.1 != 0.3 (which is counterintuitive). In this case, your final result after addition could have been 1.001, in which a[i]++ would have been done for 2 different i when the intended number of times is 1.

        Alternatively, in Python, you can simply use the Decimal module. The result is exact since everything is worked out in decimal.

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

Is there someone explain to me how to solve E?

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

Anyone help me why my code fails on 7 pretest for problem D.

Thankyou.

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

arsijo In problem C, if it's required to print $$$f(b,c)$$$ [the number of mismatches] for each substring $$$c$$$ of $$$a$$$, is there an efficient way ?

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

Why vote down? This can happen to anyone. Better vote up for the effort made by each setter

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

Не понимаю людей, что минусуют. В любом случае, ребята старались, спасибо им, и задачи оригинальные.

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

How to do C? What is the intuition?

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

can any one explain what fft means . problem c has ftt tag .

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

How to solve E?

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

Problem B Page: It is deleted already.  Oh, the picture is rather blurred...

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

I thinl it is easy to provide that the ans of problemB is ⌊(H+1)*(W+1)/6⌋,but my english is pool. So i can only provide it in chinese.I'm sorry for my pool english. 问题等价于在(H+1)*(W+1)的格子中放2*3的砖的最大个数,砖块间不能重叠但是可以接触。 (1)当1<X,Y<=7时,在X*Y的格子中放2*3的砖的最大个数为⌊X*Y/6⌋。这个可以用暴力或其他方式求证。 (2)当Y>1时,在6*Y的格子可以放满砖块,因为6*2和6*3的格子都可以放满砖块,而Y>1时Y一定可以由2和3组合而成。 (3)由(2)可以得到推论:当X是6的倍数且Y>1时,X*Y的格子可以放满砖块。 (4)考虑1<X<6且Y>6的情况:如果Y%6>1那么我们将Y表示为6*a+d,根据(3)可知X*(6*a)的格子可以放满砖块,而X*d的部分的答案根据(1)可知为⌊X*d/6⌋,所以整体的答案满足⌊X*Y/6⌋;如果Y%6=1那么我们将Y表示为6*a+7,根据(3)可知X*(6*a)的格子可以放满砖块,而X*7的部分的答案根据(1)可知为⌊X*7/6⌋,所以整体的答案满足⌊X*Y/6⌋。 (5)考虑X>6且Y>6的情况:如果X%6>1且Y%6>1那么我们将X表示为6*a+c,将Y表示为6*b+d,把X*Y分解为四个部分:(6*a)*(6*b)、(6*a)*d、c*(6*b)和c*d,前三个部分由(3)可知可以填满砖块,c*d的部分满足1<c,d<6所以根据(1)可知答案为⌊c*d/6⌋,所以整体的答案满足⌊X*Y/6⌋;如果X%6==1或Y%6==1,不失一般性地设x%6==1,那么我们将X表示为6*a+7,将Y表示为6*b+6+d,把X*Y分解为四个部分:(6*a)*(6*b)、(6*a)*(6+d)、7*(6*b)和7*(6+d),前三个部分由(3)可知可以填满砖块,7*(6+d)的部分分两种情况:如果d=1那么问题变为7*7能放多少砖块,可以通过(1)解决;否则将7*(6+d)分为7*6和7*d两个部分,前者可以用(2)解决,后者由于d>1可以用(1)解决,所以整体的答案满足⌊X*Y/6⌋。 Hope somebody can help me translate.Thanks!

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

    Translation

    The problem is equivalent to the maximum number of 2*3 bricks placed in the (H+1)*(W+1) grid. The bricks cannot overlap but can be touched.

    (1) When 1 < X, Y <= 7, the maximum number of bricks placed 2*3 in the X*Y grid is ⌊X*Y/6⌋. This can be verified by violence or other means.

    (2) When Y>1, the 6*Y grid can be filled with bricks, because 6*2 and 6*3 grids can be filled with bricks, and Y>1 must be 2 and 3 Combined.

    (3) It can be inferred from (2): When X is a multiple of 6 and Y>1, the X*Y grid can be filled with bricks.

    (4) Consider the case of 1<X<6 and Y>6: If Y%6>1 then we denote Y as 6*a+d. According to (3), the X*(6*a) grid can be placed. Full of bricks, and the answer of the X*d part is ⌊X*d/6⌋ according to (1), so the overall answer satisfies ⌊X*Y/6⌋; if Y%6=1 then we represent Y For 6*a+7, according to (3), the X*(6*a) grid can be filled with bricks, and the answer of the X*7 part is ⌊X*7/6⌋ according to (1), so The overall answer satisfies ⌊X*Y/6⌋.

    (5) Consider X>6 and Y>6: If X%6>1 and Y%6>1 then we denote X as 6*a+c and Y as 6*b+d, put X Y is decomposed into four parts: (6*a)(6*b), (6*a)*d, c*(6*b) and c*d, the first three parts can be known by (3) Filling the bricks, the part of c*d satisfies 1<c, d<6, so according to (1), the answer is ⌊c*d/6⌋, so the overall answer satisfies ⌊X*Y/6⌋; if X% 6==1 or Y%6==1, without setting the general x%6==1, then we will represent X as 6*a+7 and Y as 6*b+6+d, X*Y is decomposed into four parts: (6*a)*(6*b), (6*a)*(6+d), 7*(6*b), and 7*(6+d), before The three parts can be filled with bricks by (3), and the parts of 7*(6+d) are divided into two cases: if d=1 then the problem becomes 7*7, how many bricks can be put, can pass (1) Solve; otherwise, 7*(6+d) is divided into two parts: 7*6 and 7*d. The former can be solved by (2), and the latter can be solved by (1) because d>1, so the overall answer is satisfied. ⌊X*Y/6⌋.

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

how to solve problem B,if the domino can touch each other?anyone who can give me a practice link ?thanks~

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

Ok, we apologised your mistakes about problem B, But 3 days had gone but there are no editorial about other problems. This is so sad....

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

UNRATED

That's the result when you forgot to thank MikeMirzayanov for codeforces and polygon platform.

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