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

Автор atcoder_official, история, 2 года назад, По-английски

We will hold UNIQUE VISION Programming Contest 2024 Summer (AtCoder Beginner Contest 359).

We are looking forward to your participation!

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

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

atcoder is top 8 contributer now!

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

After many many exams in the school, many many students begin their AtCoder tours again :)

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

what the fck was C

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

Is there a simpler solution to G than Small to Large merging? Or did people just manage to implement that approach in like 5 mins @_@

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

can someone please explain the idea behind the 3rd question import math a,b=map(int,input().split()) c,d=map(int,input().split()) t=math.ceil(1.5*abs(b-d))

if t<=abs(a-c) and t!=0: print(int(abs(a-c) -1.5*abs(b-d))//2 + abs(b-d)+1) else: a=abs(b-d) print(a) please explain me why my code is incorrect please

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

My solution for problem-D is to store last K characters as state. AC

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

Great contest. D was a really good problem, wish I would've solved E a bit quicker though. Also, How to do C?

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

Anyone can give hints on how to solve D?.

My approach to count all the possibilities such there is atleast 1 subarray of K length that is a palindrome and then the subtract that from 2^q and get the answer, but I couldn't calculate it properly(due to overcounting).

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

D is good.

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

I used small to large in G. But I can't understand what's wrong in my solution. mp[v][c] contains two numbers: the number of vertices of color c in v's subtree and the total length of paths to them.

Code

UPD: submission

UPD2: I found issue, AC

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

If C has a million haters I'm one of them. If C has a hundred haters I'm one of them. If C has one hater it's me. If C has zero haters I have died. If the world is against C I am with the world, if the world is for C I am against the world.

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

So typical problem G. Maybe it will be better to swap some orders of the problem.

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

Could you guys just STOP making "greedy in grid" problems such as C plz? :(

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

how can we get atcoder contest testcase at which our solution got failed...

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

https://www.luogu.com.cn/problem/P7840

this is the original problem of F?

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

This problem is same as F!

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

C was exactly same as https://codeforces.me/contest/1421/problem/D. Just consider the right point of tiles (moving between left and right didn't encounter any cost), and those right points forms the hexagon.

It can be solved via linear algebra, no need to go into greedy

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

Problem F has appeared here previously : https://www.luogu.com.cn/problem/P7840

However, Luogu is a website that currently mainly used in China. So I think it is a coincidence. I only point out for notice.

Here is the translation by Copilot:

  • There are $$$n$$$ servers.
  • Each server has a busyness level denoted by $$$v_i$$$.
  • The servers are connected using $$$n−1$$$ network links.
  • Each server has a connection count $$$d_i$$$.

The total running time of the server network is given by the expression:

$$$ \sum_{i = 1}^n d_i^2 v_i $$$

The goal is to minimize this value.

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

Didn't Atcoder check for if there have been the same problem???

This problem from Luogu same as today's G.

And this problem is from the year 2021.

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

    It is a Chinese website and it only support Chinese... It is extremely difficult to check EVERY CP website and search whether there is a same problem. So It can be only coincidence. BTW it didn't cause any significant effect, because it is just an ABC contest.

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

      They do nothing wrong. Try not to be too aggressive.

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

        Is it hard to check weight? Inexplicably! Only a fool thinks so. The questions are exactly the same, and luogu is a great site for brushing up on questions, and the bottom line as a question writer is to not come up with exactly the same questions. Even though the questions are in Chinese, can't you learn Chinese? You can't read Chinese, can you? And ziyistudy is stating facts and you're defending a shit group of question writers. I think you are very wrong.

        Translated with www.DeepL.com/Translator (free version)

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

    I don't think the testers can find this problem. It's from China.

    However, the impact is not significant, as even Chinese people find it difficult to detect.

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

      find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect. find it easy to detect.

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

Why inclusive-exclusive algorithm doesn't work in problem D?

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

I wonder how to prove that greedy algorithm is correct for problem F. Would anyone like to share your ideas? Thanks a lot.

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

I see some solutions using Small to Large technique, so I'd like to share 5 problems (in increasing order of difficulty) for someone who is not familiar with this topic and want to learn it.

Plain Small to Large

  1. Distinct Colors
  2. Confuzzle
  3. It is a Tree : Subtask 2

Small to Large + Advanced DP

  1. Count Paths
  2. Leaf Color

For problems from BOJ, either use Google Translate or add the problem to Vjudge and use the inbuilt translator option.