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

Автор Psychotic_D, 3 года назад, По-английски

"You are braver than you believe, stronger than you seem, and smarter than you think." — A.A. Milne

Hello Codeforces!

I have the pleasure of inviting you to participate in Codeforces Round 930 (Div. 1) and Codeforces Round 930 (Div. 2), which will start on Feb/29/2024 17:35 (Moscow time).

You will be given 6 problems and 2 hours to solve them in both divisions.

One of the problems may be interactive. So, please refer to the guide on interactive problems if you are unfamiliar with them.

The problems were prepared and authored by wuhudsm, chromate00, Psychotic_D and MagicalFlower.

We would like to thank :

Good luck, and may the code be with you!

UPD: Score distribution:

Div.1: $$$500 - 1000 - 1500 - 2000 - 2500 - 2750$$$

Div.2: $$$500 - 1000 - 1500 - 2000 - 2500 - 3250$$$

UPD2: Let's continue the streak of announcements with photos of the authors and coordinator.

Codeforces_round_930_authors

UPD3: Editorial is out.

UPD4: Top Performers

Div.1


Rank Name
1 Radewoosh
2 zhoukangyang
3 ugly2333
4 tourist
5 998batrr

Div.2


Rank Name
1 JiaY19
2 kizaru
3 Midnights
4 SATSKYnerfed
5 VTloBong
  • Проголосовать: нравится
  • +487
  • Проголосовать: не нравится

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

Yet another TheForces official round!

Be sure to take part in this round, the authors have put a lot of efforts to prepare the round as balance as possible ;)

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

As a problemsetter, I hope everyone will enjoy the contest. May the $$$\Delta$$$ be with you!

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

As a brave tester I can assure that problems are very good

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

First time testing an official round! Hope the problems will be interesting for all of you!

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

As a tester, I assure that your Leap Day is going to be fun!

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

Finally, $$$6$$$ months have passed since the last official round of TheForces community, another official round! I hope you enjoy this round :)

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

As a tester, problems are really nice. Please do participate and get high ∆

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

As a tester, may positive delta be with you.

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

as a tester i can assure that problems are very nice

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

OMG! Another Psychotic_D round!

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

so many testers !

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

Adding tibinyte2006 as newbie tester should be illegal 🤥

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

All this testers!. i think the contest is going to be great.

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

Yay finally a div1 that takes place when I'm actually available.

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

OMG! k1r1t0 is tester!

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

I want to become CM for the first time. I am so excited!!!

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

As a tester, this is definitely one of the rounds of all time

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

As a tester, problems are nice, recommend everyone to participate!

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

amenotiomoi orz tester <3

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

vikram108 sir orzzzzz

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

As a tester, problems are interesting, hope your delta be >0, and have fun when solving the problems, especially the interactive one(if there's one in your division)!

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

So many testers that only the "As a tester" comments would make the normal comments count. XD

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

As a green tester, the text inside the problems are not green. It's black.

But still, very clear statements all around and hope y'all enjoy the rounds!

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

Once in FOUR years

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

.

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

Illegal newbie lying face testing xD... Real Psychotic :p

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

The interactive problem is for div1 or for both division?

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

How so pro Psychotic_D ser?

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

It'd be good if you continue the streak of announcements with photos of the authors :)

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

Damn, I thought chromate was bot.

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

One problem will be based on Leap day or Leap year I guess

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

Thanks for continuing streak of putting authors pictures on the contest blog

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

grecozo will win the round, pin this.

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

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

It's too early for that.

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

As a parcipicant, this round will happen again in 4 years

And also Good luck for everyone!

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

Abhishek_Srivastava , the tester , orz

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

Is there a photo of MagicalFlower?

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

Orz chromate00 for being a problemsetter.

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

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

deleted

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

I loved the way you thanked the participants.

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

Goodbye, cyan ;(

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

Hope I will reach to 1400+

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

Is MagicalFlower the up right one on the photo?

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

No offence to anyone.

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

HAPPY LEAP DAY 2024 ROUND.

vecteezy-happy-leap-day-on-29-february-with-cute-frog-in-flat-style-15449916-1

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

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

chromate00 be like :)

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

Downforces incoming

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

Psychotic_D We would have been more happy if today's contest named was Happy Leap DAY 2024

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

Absolutely love the quotes that they have started putting at the start of these announcements.

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

Back after long time hope to solve 2-3 problems.

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

looking forward to photo of MagicalFlower. very handsome

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

B is bad

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

whats wrong with this round??

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

try something other than creating contests

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

Shout-out to all my div1 homies who submit a problem when they know for sure that they will lose rating if they become a participant after making a submission

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

Binaryforces.

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

Maybe I have forgotten how to make correct submissions to problems

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

For div1, it is so painful to get -50 for each dirt, since the total score is not very high. rk30 ~ rk60 only has a score difference around 100, but the ranking doubled.

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

Nice problem C

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

    how to solve B, i only got the lexicographically smallest string but could not figure out how to get no.of ways

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

      The key observation is: If you go down at some point, then you have to go to the right for the rest of the operations.

      So the way I handle is to build an array b, which indicates that for a position i, if I go down, can I get the lexicographically smallest string? Then, for each position i, you have two choices: go to the right or go down. If you go down, check if b[i] = 1, then you can increase your result. If you go to the right, you have to make sure the current string you got is matching with the lexicographically smallest one.

      Submission

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

Too Hard.

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

observation force

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

why so hard b

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

The first three problems were one of the best in a while, especially problem C, but the last three were too hard.

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

Div1B — ImplementationForces

Div1C — StandardForces, if you put it at Div1B it would easily have 500-600 solves.

I spent like 10 mins combined to think of the solutions and around an hour to implement them :).

Div1A legitimately required more thinking than Div1B and Div1C combined (and was actually a pretty cool problem).

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

    What to do in problem C? I have no idea.

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

      Sort values of each attribute in non-decreasing order and add edges between adjacent attribute values "nodes" to make a line graph of their values. Going "up" in value costs 0, going "down" costs the change in value. This corresponds to the "increase power" operation. This uses $$$2 \cdot (n - 1)$$$ edges per attribute, or $$$2 \cdot (n - 1) \cdot m$$$ edges in total.

      Then add edges between attribute value nodes and pokemon nodes. The edge to the pokemon corresponds to summoning them and has a cost of $$$c_{\text{pokemon_idx}}$$$ while the edge the other way has no cost. This uses $$$2 \cdot m$$$ edges per pokemon, or $$$2 \cdot n \cdot m$$$ in total.

      Then you can just dijkstra from pokemon $$$1$$$ and find the min cost to reach pokemon $$$n$$$ in $$$O(n \cdot m \log(n \cdot m))$$$ time.

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

    how to implement B

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

      My solution at least is painfully long, so just going to roughly describe each step:

      1. Calculate the number of '>' to the left and '<' to the right of each pos. These represent positions where we might turn around during this operation.

      2. Based on these counts and $$$s_i$$$, we can figure out how many values we'll bounce off to the left and right. It will be either min of the count of the above two values, possibly 1 lower. We can also figure out which direction we'll leave the grid in, I just add that time to my answer here since its convinent.

      3. Now, we can keep track of prefix / suffix sums of these (one at a time) as we iterate. Then if we known we will make $$$x$$$ bounces to the left, we want the sum of distances to the last $$$x$$$ bounces. This can be represented as $$$(i \cdot x) - (\text{position_prefix_sum}_{end} - \text{position_prefix_sum}_{end - x})$$$. Don't forget to multiply this two since we bounce and come back to the center.

      Code — 248943453

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

    How to modify the Dijkstra for Div1C? I couldn't figure out how to quickly calculate if a pokemon would beat the other one where one is modified for in its attribute.

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

    Actually there exist easier way to solve B, my submission only takes < 30 lines

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

submit C in last 10 second phew~

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

Can someone explain why this wouldn't work for problem C ?? 248966532

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

ez minus delta

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

Why is there a 20-minute penalty for every wrong submission, when it's only two hours of competition.QAQ

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

wtf bruh :(, never seen this hard Div2.B, all aside but I enjoyed the contest. Thanks

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

The problems are really good, but they felt a bit harder for their position.

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

Can someone please explain the flaw in my logic for C?

  1. In the first n-1 queries, find the index with the maximum number from 0...n-1. (done by querying "? a a b b")
  2. Once you have found the maximum, simply OR it with the rest of the indices and output the one which gives the best results. (done by querying ? maximum best maximum current, where current is the current index being handled and best the one which has been the maximum thus far.)
»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Can someone pls explain an approach to Div 2 C?

  • »
    »
    3 года назад, скрыть # ^ |
    ← Rev. 2  
    Проголосовать: нравится 0 Проголосовать: не нравится
    • Find x such that a[x] is maximum
    • Find all y such that a[x] | a[y] is maximum, store all those y in a vector
    • Among all y you found, find the smallest a[y]

    The answer is x and y.

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

      That is pretty clever, I didn't even consider oring the same element lol. Thanks

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

      can you share the intuition behind this

      1.We can use n-1 to find max value

      2.how do you handle for multiple ORs when they are equal a[x]|a[y]

      3.why do we need x&y where a[y] is smallest

      W can have max ans as $$${2^{(msb+1)}-1}$$$

      • »
        »
        »
        »
        3 года назад, скрыть # ^ |
        ← Rev. 2  
        Проголосовать: нравится 0 Проголосовать: не нравится
        1. Just handle the case when the jury response us with '='
        2. Among all y where a[x] | a[y], we need minimum a[y] because, let's think about those elements in binary representation.

        For example a[x] = 1001. Then there are only two a[y]: 0110, 0111. As you can see, those a[y] | a[x] produce the same result (which is 1111) but we choose the smallest ay as the answer because it has the SMALLEST NUMBER OF SET BIT. This is important because we could prevent 1 XOR 1 in some positions.

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

    I guess since we know all values (permutation 0..n-1) we can find the max xor, and then find values which give that target xor.

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

    The thing is, if you look at binary presentation of (n-1), and !(n-1) easy (not during the contest) to see, that !(n-1)<n-1 (we dont look at the bits greater than greatest bit of n-1), so if !(n-1) !(n-1) exist in permutation. Also easy to see that (n-1)^(!(n-1)) is the maximal xor we can get, and all what we must do it find n-1 and such index that (n-1)^p[index] maximal, we proved that p[index] = !(n-1). I think so

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

Nice problem Div2C/Div1A. Got the solution with 2 minutes remaining :(

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

Solved Div1B in last 10 seconds. How can I improve my implementation?

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

Ok simple question for PROBLEM-B

if I had 2 paths previously and 3 NEW paths were found, what is the total no of possibilities?

A) 2+3=5
B) 2*3=6
C) 2^idk
D) Think outside the box

Testcase -
7
1111111
1101110

Ans is 11101110 probably, please HELP

My code Thanks!!

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

1B=https://codeforces.me/problemset/problem/733/E

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

It's NOT Div2, it's Div 1.5

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

So I guess Blogewoosh #5 (+ golden search to squeeze it) isn't intended for F?

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

Terrible contest.I don't think this kind of competition is very interesting, even if the question setter feels that they have come up with something interesting.

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

The problems are good, but I'm totally confused about what happend with cin in code 248946386, which I got TLE. When I replace cin with handwrite fast io in code 248950473 my program just run 249ms.

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

Is it possible to solve Div2B with dp?

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

can someone please check my code, gives error on pretest 2 248969661

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

D1A/D2C: First query for the largest element, let it's index be i0, then query for indexes j such that (a[i0]|a[j]) is the maximum, finally in these j we find j0 such that a[j0] is the minimum, then (i0, j0) is the answer.

D1B/D2D: WLOG assume s[i]='<', then we do something like this: go left find the first '>' --> go right find the first '<' --> and so on... So if cnt1= the number of '>' to the left of i, cnt2= the number of '<' to the right of i, then if cnt1<=cnt2, we will turn back at all positions of '>' to the left and first cnt1 positions of '<' to the right, if cnt1>cnt2, we will turn back at all positions of '<' to the right, and first cnt2+1 positions of '>' to the left. Then we can calculate the answer by the sum of positions of points we turn back. (The contribution factor of points we turn back at left is -2, points we turn back at right is +2, and the start point is +1, the end point is +1 (if end at right border) or -1 (if end at left border))

D1C/D2E: Build a graph of n*(m+1) nodes with index (i, j) (1<=i<=n, 0<=j<=m). Then for all 1<=i<=n, 1<=j<=m, we add edges (i, 0) --> (i, j) with cost 0, (i, j) --> (i, 0) with cost c[i]. For each 1<=j<=m, we sort [1, n] by the value of a[i][j], and for adjacent (i1, i2) in the sorted array, we add edges (i1, j) --> (i2, j) with cost 0, (i2, j) --> (i1, j) with cost a[i2][j]-a[i1][j]. (So distance from (u, j) to (v, j) is the cost to let pokemon v to win pokemon u by attribute j) Therefore, go along the path (u, 0) -> (u, j) -> (v, j) -> (v, 0) means we let pokemon v beat pokemon u, then the answer is the distance from (1, 0) to (n, 0).

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

    D1D/D2F: This uses segment tree idea described here. The idea is that there are only $$$O(\log A)$$$ number of distinct prefix ORs/suffix ORs. so we will all of the possible suffix and prefix ors, along with the maximum of the other array in those positions (which corresponds to maximum of the shortest prefix/suffix with equal or). We can merge nodes suffix and prefix while keeping them distinct, and update the answer for node with brute force in $$$O(\log^2 A)$$$ resulting in $$$O(q \log n \log^2 A)$$$ but if we use two pointers to update the answer, the overall complexity will be $$$O(q \log n \log A)$$$ and this is fast enough to pass. Beware that creating too many vector<pair<int,int>>s could be too slow, that's why it's better to use basic_string (I described this here).

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

Does this contest allow hacking?

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

(The problem) is very well done, don't do it next time.

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

I'm sorry but is Div.1 B similar to contest 733 problem E?(✺ω✺)

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

would have been great to have subtask for Div1B which allows n^2 solution. then participants can decide whether they spend time implementing full solution on not. being forced to implement this is not great experience... (yeah yeah i know im bad in implementation, but IMO this change would have improved contest experience for a lot of participants)

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

tourist might come back to top 10 rated today :) :)

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

Div2 is so difficult. I dont like it.

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

what is the best way to test my interactive problem's code.

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

Can div2B be solved with DP to find the path's string?

My trial: Submission Div2B

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

Any idea why this fails for Div2 C? 248972248

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

wait...so div1B/div2D and CF733E are completely equal?

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

Wanted to thank all the authors for coming up with a very nice problem set. Especially problem C, which helped me realize that similar to MinMaxFlow, Dijkstra too is quite powerful when combined with carefully constructed graphs. Thank you for taking time to produce these problems. :)

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

Can the System Testing be resumed?

I am really curious how bad my F code would fail.

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

Why did the system test STOP

Are Mike playing Genshin Impact ???

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

I want to upsolve

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

For F you can binary search and check nonemptiness of disks intersection. How to do this in the simplest possible way? You recall the simplest possible algorithm to nonemptiness of halfplanes intersection https://blog.mitrichev.ch/2016/07/a-half-plane-week.html?m=1 and generalize it to circles. That is, take random order of circles and maintain the rightmost point of their intersection. If a new circle contains it, then we are good. If not, then this point is on this circle and we intersect it with all previous ones in O(i) time (where we are considering i-th circle right now). Amounts to O(n) time, so with binary search on top O(n log n) for the full problem

And of course such problem had to be on a round in which I wanted to participate, but forgot >.<

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

No one told me that it will be Div 1.25 ;/

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

Why does this give tle for problem B is it O(n^2) because of the iterators? 248960076

Can somebody provide insights? Thanks

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

Funny how i misread C's statement and solved it for increasing jumps and still got AC

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

Nice contest and Nice problem C.

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

screwed up too badly on b, spend an hour and half on hashing string & bitset & dp shit. endup +6 wrong submission until finally realize [spoiler] and receive 300/1000pt. 🙃

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

was a similar problem to div2d on IMO?

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

It's a nice Div.499122177

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

Wonderful round!I became master!

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

Solved ABC. Thanks a lot for the round wuhudsm chromate00 Psychotic_D MagicalFlower and all testers!

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

$$$O(n)$$$ two pointer simple solution for D1B/D2D. https://codeforces.me/contest/1937/submission/249021364

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

Nice Round..

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

LOL