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

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

Note the unusual time of the round.

Hello Codeforces!

lunchbox, Apple_Method, and I are pleased to invite you to participate in Codeforces Round 914 (Div. 2) on Dec/09/2023 19:05 (Moscow time). You will be given 2 hours to solve 6 problems (and one subtask).

The round will be rated for participants of Division 2 with a rating lower than 2100.

We promise the statements will be clear and concise, suitable for AdamantChicken2 to read wink wink.


Also, we would like to thank:


We hope you will enjoy the contest and receive positive delta!

Scoring distribution

$$$500 — 750 — 1000 — (1250 + 750) — 2750 — 3500$$$

UPD

The editorial has been posted!

Congratulations to our winners!

Congratulations for our first solvers!

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

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

bad time for chinese programmers

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

Happy to know that the statements will be clear and concise. Best of luck to all contestants!

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

As a tester, I enjoyed these problems quite a bit! Hope you will too!

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

orz

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

As a tester,the problemset is phenomenal!Hope you enjoy it :)

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

As a tester, I am not allowed to write anything about the problems which includes my opinion of the problems.

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

As a tester, I upvoted the blog twice.

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

lunchbox hard carry orz

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

As a tester, these were some really fun problems.

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

I'm a simple man, I see a lunchbox round, I register

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

Being a tester, I hope you enjoy the problems!

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

W time for PST

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

I really wanted to participate in this round but it's too late for my schedule :/

It would be great if the round could be held at the regular time.

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

The scoring seems to indicate a speedforces.

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

Brooo i feel so happy when you promise us for the statements... And a nice choosing the TIME

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

Upsolver's round

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

I'm 27th

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

Big score difference between D and E, speedforces vibes.

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

Midnight for chinese

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

5 minutes after finish of LeetCode Biweekly Contest.

Gotta skip or will try to give both

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

Can anyone tell me what are [VIP],[upsolver+] beside the handles? I searched but couldn't find anything about it.

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

Why the time is unusual?

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

As a tester, I enjoyed solving the problems; they're all excellent problems! Problem [REDACTED] is very nice in particular!

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

Will give the contest almost after one month.

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

what does (1250+750) mean?

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

the unusual time note was very helpful

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

Could anyone please explain what it mean by "(and one subtask)" , cause I don't get it

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

Bad time for south Asians. 4 am in the midnight awww

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

Can someone please confirm whether "Kotlin Heroes: Practice 9 (release 2)" has been rated or not?

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

If I have registered but not able to participate will my rating fall?

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

I hope that AdamantChicken2 participates.

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

I'm feeling sleepy now, maybe I should give up.

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

i'm a beginner can anyone give me advice

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

Bruh without Chinese it's only 3500 people

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

Is that really div.2!!

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

C>D

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

Cool problems, especially $$$C$$$(with idea that we must check only $$$K \leq 2$$$) and $$$D$$$.

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

Cool problems and cool starting time

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

A > C > B

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

Found the error in D1 one second after contest ended. Nice!

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

Can anyone tell me if this works for F? I ran out of time to implement in contest.

First we build a directed graph $$$G$$$ whose vertices represent paths in the tree as follows:

For each vertex $$$u$$$ and number $$$0 \leq i \leq 20$$$ we construct a vertex corresponding to the path between $$$u$$$ and its $$$2^i-1$$$th ancestor along the path (LCA stuff). We draw directed edges from the "vertex" $$$[u, p^{2^i}(u))$$$ to vertices $$$[u, p^{2^{i-1}}(u))$$$ and $$$[p^{2^{i-1}}(u), p^{2^{i}-1}(u))$$$.

This directed graph $$$G$$$ has $$$\leq 20n$$$ vertices, each of which has at exactly two edges going outward. So the graph has at most $$$40n$$$ edges. Create another copy of such a graph, but now with edge directions reversed, call it $$$G'$$$. Finally consider the $$$1$$$-vertex paths in both graphs $$$G, G'$$$ and merge them (they are one single vertex now).

This new graph $$$G+G'$$$ has $$$\leq 40n$$$ vertices and $$$\leq 80n$$$ edges. Now for each of the $$$m$$$ conditions we do the following. Suppose that the condition is of the first kind, the second kind is analogous. Split the paths from $$$[a, c)$$$ and $$$(c, b]$$$ into at most $$$40$$$ vertices of $$$G$$$. Draw a directed edge from vertex $$$c$$$ to each of these $$$40$$$ vertices of $$$G$$$ (in the opposite direction if $$$G'$$$ were considered).

Now just check if the $$$G+G'$$$ graph has a topological sort. If it does, then the order of $$$1, 2, \dots, n$$$ in that is the answer, otherwise there is no answer at all. Time complexity of above is $$$\mathcal O((n+m)\log n)$$$

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

What? D1 is actually EJOI 2020 Day 1 Task "Exam" Subtask 6.

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

datastructureforces

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

C was cool, D1, D2 were also good, crossing 1800 barrier for the 1st time after so long from being stuck and lot of demotivation.

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

I absolutely totally did not stare at $$$C$$$ for $$$30$$$ minutes with no ideas until I realised you can make it $$$0$$$ in $$$3$$$ trials.

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

nice contest i enjoyed the problem thanks to authors. First time solved 4 problems

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

C is such a troll problem with $$$K$$$ up to $$$10^9$$$, you could have taken it a step further and not include a case with $$$K = 3$$$ in the samples. Not a bad problem though.

D was okay, just hoping I don't get FSTed.

Looks like I didn't get FSTed after all. Is there an easier way to do D2?

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

Was that for only me initially the diagram for problem A was incorrect?

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

couldn't solve c

even though found case work k >= 3, k == 1, k == 2

too unfortunate

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

A is miles harder than B and C for me lol (and maybe even D1 but i didnt have enough time)

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

Weak pretest on A

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

Congratulations to the authors for this great round :))

As usual, here is my advice about the problems (not correlated to my performance)

A
B
C
D
E
F

I think the only downside of this round is that the gap between D2 and E was quite high but I don't know if that's a really big deal as usually E don't get that many ACs anyway.

Looking forward to compete in another of your rounds :)

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

I couldn't do problem A, what a shame.

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

Not sure you feel the same. But for me, B > A and C > D. lol

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

how to solve c when k = 2?

i tried to take every element of a with the nearest abs(a[i] — a[j]) but it gave wa

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

AdamantChicken2 didn't participate :(

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

You changed the order of picture of problem A and didn't send a notification. Is it because it's not statement?

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

    Additionally, I feel that the description of the new way of movement of the knight in statement A is inappropriate.

    I think we should write statement even someone who doesn't know how the knight in the original chess moves can understand how the knight moves with that statement alone.

    I think the current statement is open to misunderstanding.

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

    I left the contest for this reason.. After some min i refreshed and saw the change (:

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

amazing problems! but E and F is too hard for div. 2 (

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

is there a hack phase ?

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

Solved D1+D2 just 5 seconds after final :'(((

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

E is a really standard problem

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

Anyone plz give the idea of A

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

Can someone hack this $$$O(n^2)$$$ solution for D2? https://mirror.codeforces.com/contest/1904/submission/236575342

I feel like it shouldn't work.

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

This failed on system testing Submission can anyone tell me what is the mistake? n^2logn solutions were not meant to pass for this problem or something else ?

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

System testing completed for this contest? Any idea anyone?

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

236573136 I believe that my D1 solution shouldn't work in D2 (tl) on max test like this:

1

10

10 9 8 7 6 5 4 3 2 1

10 10 10 10 10 10 10 10 10 10

But it gets accepted with 187/4000ms

can someone try to hack it with

1

200000

200000 199999...

200000 200000... pls? I have some kind of problem with hacking.

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

why problem A is so hard

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

Didnt particularly like the contest, too structure heavy for me. A-D were easy and E was annoying. C also had a stupid corner that wasnt in the samples and A had the wrong picture. F also looks annoying but ill check edi to see if its cool.

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

Can someone hack my D1? 236559856

Pretests were damn weak it seems.

Testcase —

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

5 solves for the first time in a div 2

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

Surprisingly good contest! Good job!

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

Not sure why everyone thought B was that easy, I solved it but it took longer than A and C.

if they didn't mess up the photos in A I would have solved it faster, I stared at the wrong picture for 10 minutes wondering if I became so stupid to not understand an A problem after not solving problems for more than 2 months

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

Great contest! Lost some ratings tho...

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

Why does my submission https://mirror.codeforces.com/contest/1904/submission/236601220 pass tests? It fails when the difference between two elements is exactly an element in the array. Example:

Input:

1
2 2
1 2

Output:

troll

Expected Output:

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

Its over boyos !!

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

[Rant] Instead of submitting the code for D2, by mistake, I resubmitted the code in D1, getting my first skipped verdict.

When people see "Skipped", resubmission is not the first thing that comes to their mind. So it would be better if there is a "Resubmitted" verdict.

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

I often observe that I am not able to solve problems like B which involve the use of an algorithm in which the answer of a next element is either dependent or is made equal to the answer of the previous element by some means...

is this literally a type of problems ? Like after doing problems of which rating range I'll be comfortable in doing such problems ?

I remember some more times when I was not able to solve div 2 B just because of this..

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

@MikeMirzayanov I have been recently alleged for copying the code as my code was found coinciding to ER_HORIZON_XACS/236530851 and mine was spacedate_xacs/236532464. I know copying code or such coincidence are violation of rules and I have also read the terms and conditions before registering for the round. I am really sorry for such coincidence but this has happened because the account ER_HORIZON_XACS is my cousin brother and we both used same code snippet(made before the contest) for our practice and while round we mistakenly used same snippet too for solving the round questions. I assure you we have made the code differently for the contest round we have only shared the snippet. We are sorry for not caring about the snippet. If possible please return our ratings. I assure we will never do this type of violation again. I also assure we will also use different snippet for solving problems. Please if possible return our ratings.

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

good problem C and D :D