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

Автор oursaco, 5 месяцев назад, По-английски

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
  • Проголосовать: не нравится

»
5 месяцев назад, # |
  Проголосовать: нравится +75 Проголосовать: не нравится

bad time for chinese programmers

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

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

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

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

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

orz

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

»
5 месяцев назад, # |
  Проголосовать: нравится +73 Проголосовать: не нравится

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

»
5 месяцев назад, # |
  Проголосовать: нравится +16 Проголосовать: не нравится

As a tester, I upvoted the blog twice.

»
5 месяцев назад, # |
  Проголосовать: нравится +34 Проголосовать: не нравится

lunchbox hard carry orz

»
5 месяцев назад, # |
  Проголосовать: нравится +9 Проголосовать: не нравится

As a tester, these were some really fun problems.

»
5 месяцев назад, # |
  Проголосовать: нравится +44 Проголосовать: не нравится

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

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

Being a tester, I hope you enjoy the problems!

»
5 месяцев назад, # |
  Проголосовать: нравится +17 Проголосовать: не нравится

W time for PST

»
5 месяцев назад, # |
  Проголосовать: нравится 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.

»
5 месяцев назад, # |
  Проголосовать: нравится +40 Проголосовать: не нравится

The scoring seems to indicate a speedforces.

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Upsolver's round

»
5 месяцев назад, # |
  Проголосовать: нравится -8 Проголосовать: не нравится

I'm 27th

»
5 месяцев назад, # |
  Проголосовать: нравится +27 Проголосовать: не нравится

Big score difference between D and E, speedforces vibes.

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

Midnight for chinese

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Someone should notify AdamantChicken2 or any other google AI CP killers that there's gonna be a live codeforces round tommorow and some of us want to see AlphaCode2 compete LIVE, no BS.

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

5 minutes after finish of LeetCode Biweekly Contest.

Gotta skip or will try to give both

  • »
    »
    5 месяцев назад, # ^ |
    Rev. 2   Проголосовать: нравится +55 Проголосовать: не нравится

    Step 1 : Give Atcoder regular round . Use 30 min break for dinner.

    Step 2 : Speedrun Leetcode biweekly .

    Step 3 : Put on Umnik's playlist and start codeforces round 914.

    Update — Afterwards,watch livestream here to see who wins Hacker cup.

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

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

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

    They're just a thing the authos added to the announcement, probably referencing some games.

    These probably refer to how the testers tested the contest but they don't have any deeper meaning.

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Why the time is unusual?

  • »
    »
    5 месяцев назад, # ^ |
      Проголосовать: нравится -10 Проголосовать: не нравится

    it's not that unusual, it's just that some snowflake kids complain even if the round is 30 minutes off these days.

    there was a time when there were rounds as late as 6pm UTC and maybe that was an unusual time.

    anything between 2pm UTC and 4pm UTC is part of the historical time range of the rounds.

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

    Problem writers are in PST

»
5 месяцев назад, # |
  Проголосовать: нравится +9 Проголосовать: не нравится

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

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Will give the contest almost after one month.

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

why?

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

glhf everyone :)

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

what does (1250+750) mean?

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

the unusual time note was very helpful

»
5 месяцев назад, # |
  Проголосовать: нравится -83 Проголосовать: не нравится

feels like that's going to be a shit round

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

»
5 месяцев назад, # |
  Проголосовать: нравится +6 Проголосовать: не нравится

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

»
5 месяцев назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

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

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Good luck for everyone!

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

»
5 месяцев назад, # |
  Проголосовать: нравится +14 Проголосовать: не нравится

I hope that AdamantChicken2 participates.

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

i'm a beginner can anyone give me advice

»
5 месяцев назад, # |
  Проголосовать: нравится -7 Проголосовать: не нравится

Bad Time for Bangladeshi Programmers.

»
5 месяцев назад, # |
  Проголосовать: нравится +6 Проголосовать: не нравится

Bruh without Chinese it's only 3500 people

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Is that really div.2!!

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

is it div 2 a, b ?

»
5 месяцев назад, # |
  Проголосовать: нравится +11 Проголосовать: не нравится

C>D

»
5 месяцев назад, # |
  Проголосовать: нравится +17 Проголосовать: не нравится

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

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

Cool problems and cool starting time

»
5 месяцев назад, # |
  Проголосовать: нравится +6 Проголосовать: не нравится

A > C > B

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

»
5 месяцев назад, # |
  Проголосовать: нравится +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)$$$

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

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

»
5 месяцев назад, # |
  Проголосовать: нравится +15 Проголосовать: не нравится

datastructureforces

»
5 месяцев назад, # |
  Проголосовать: нравится +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.

»
5 месяцев назад, # |
  Проголосовать: нравится +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.

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

    I absolutely did not spend 20 minutes staring at my solution for C without realizing that it works.

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

»
5 месяцев назад, # |
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:
  • »
    »
    5 месяцев назад, # ^ |
      Проголосовать: нравится +8 Проголосовать: не нравится

    Yes there is an easier way, Let $$$R(i,x)$$$ denote the smallest index $$$j$$$ such that $$$j \ge i$$$ and $$$a[j] = x$$$, similarly $$$L(i,x)$$$ denotes the largest index $$$j$$$ such that $$$j \le i $$$ and $$$a[j] = x$$$.

    Now, the answer is "YES" iff for every element $$$i$$$,

    1) $$$Min(b[i],b[i+1]...b[R(i,b[i])] \ge b[i]$$$

    2) $$$Max(a[i],a[i+1]...a[R(i,b[i])] \le b[i]$$$

    OR

    1) $$$Min(b[i],b[i-1]...b[L(i,b[i])] \ge b[i]$$$

    2) $$$Max(a[i],a[i-1]...a[L(i,b[i])] \le b[i]$$$

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

      Yeah, this looks like a more concise way to do it. Basically, in my solution I'm checking the same conditions, just in a more roundabout way (it was heavily influenced by my brute force solution of D1)

      I'm curious what is the authors intended solution (it might as well be the same as the one that you have proposed)

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

    236555393 Though I'm not sure about the time complexity.

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

      Hacked. But I think you can optimized it a bit and pass.

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

        I was thinking it's time complexity to be $$$O(n^{2})$$$ in worst case.

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

          Your solution solved my test case in about 6 seconds while most of the N^2 solution takes more than 1 minutes.

          That's why I think your solution might pass if you can somehow optimized it.

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

    I did something similar for D2. It barely passed in time lol

»
5 месяцев назад, # |
  Проголосовать: нравится +11 Проголосовать: не нравится

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

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

couldn't solve c

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

too unfortunate

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Wow A was unusually difficult to understand and implement.

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Weak pretest on A

»
5 месяцев назад, # |
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 :)

»
5 месяцев назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

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

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

    ‘Think of rising higher. Let it be your only thought. Even if your object be not attained, the thought itself will have raised you.’ — Thirukural

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

    in last div-3 I couldn't solve $$$C$$$ sometimes these things happen

»
5 месяцев назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

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

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

    Can you give me an edge case for this solution why it is not working B

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

      In general, I will write a data generator and a brutal force baseline solution to test it. I did that sometimes in the contest (like for the C today), not a good way but the last resort to self-debug.

»
5 месяцев назад, # |
  Проголосовать: нравится 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

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

    Just check all pairs. if you have $$$f = abs(a[i] - b[j])$$$, you current answer must be $$$answer = min(answer, f, \text{first_el_greater}(f) - f, f - \text{last_el_less}(f))$$$. The last two can be calculated using binary_search = std::lower_bound. So $$$O(n^2 \log n)$$$

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

      oh thanks alot i tried to do this in one of my submissions but i was only looking for the adj elements thanks

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

    maybe you can get a zero if any difference already exists

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

    make a binary search back in array for that (a[i]-a[j]) to find best move in next run.

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

    before it, sort(a),then try every s=(a[i]-a[j]), after it, look for minimize(a[i]-s). every step should update answer.

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

    brute force every possible |Ai — Aj| think of bs

»
5 месяцев назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

AdamantChicken2 didn't participate :(

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

I have to say it is a little late for me, but I outdo myself. Unbelievable!!!!

»
5 месяцев назад, # |
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?

  • »
    »
    5 месяцев назад, # ^ |
      Проголосовать: нравится +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.

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

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

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

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

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

Nice problemset

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

is there a hack phase ?

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

E is a really standard problem

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

    Can you give a slight hint?

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

      Solve it offline and do a dfs.

      When you are in vertex v try to have a segment tree maintaining the distances of other vertices from v.

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Anyone plz give the idea of A

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится
»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Couldn’t solve A pajn. Nice problemset tho

»
5 месяцев назад, # |
  Проголосовать: нравится +11 Проголосовать: не нравится

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

I feel like it shouldn't work.

»
5 месяцев назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится
Spoiler
»
5 месяцев назад, # |
  Проголосовать: нравится 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 ?

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

    just changing $$$j$$$ from $$$i+1$$$ to $$$n$$$ instead of $$$0$$$ to $$$n$$$ in case $$$k=2$$$. your code runs in 1400 ms. 236577461

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

System testing completed for this contest? Any idea anyone?

»
5 месяцев назад, # |
  Проголосовать: нравится 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.

»
5 месяцев назад, # |
  Проголосовать: нравится -6 Проголосовать: не нравится

why problem A is so hard

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

    I think the given picture made it so hard

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

    I don't think it was that hard but I really started lauging when I understood I have fallen into the well set airhead trap...

»
5 месяцев назад, # |
  Проголосовать: нравится 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.

»
5 месяцев назад, # |
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
»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

5 solves for the first time in a div 2

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Why doesnt work? C

    if (k == 2)
    {
        sort(fullrng(arr));
        i64 m = numeric_limits<i64>::max();
        
        update_min(m, *std::min_element(fullrng(arr)));

        for (int i = 1; i < arr.size(); ++i)
            update_min(m, arr[i] - arr[i - 1]);

        for (int i = 0; i < arr.size(); ++i)
        {
            for (int j = i + 1; j < arr.size(); ++j)
            {
                auto d = arr[j] - arr[i];
                auto lbnd = lower_bound(fullrng(arr), d);
                update_min(m, abs(d - *lbnd));
                if (++lbnd < arr.end())
                    update_min(m, abs(d - *lbnd));
            }
        }

        solved(m);
    }
»
5 месяцев назад, # |
  Проголосовать: нравится +9 Проголосовать: не нравится

Surprisingly good contest! Good job!

»
5 месяцев назад, # |
  Проголосовать: нравится +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

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

    Maybe B wasn't that easy but you just needed one observation to solve it

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

      Can you give me an edge case for this solution why it is not working B

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Great contest! Lost some ratings tho...

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Why does my submission https://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
  • »
    »
    5 месяцев назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    Seems like missing test cases.

    If k is 2 and there exist three elements a, b, c in the list such that a + b = c, the answer should be 0.

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

Its over boyos !!

»
5 месяцев назад, # |
  Проголосовать: нравится +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.

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

»
5 месяцев назад, # |
  Проголосовать: нравится 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..

»
5 месяцев назад, # |
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.

  • »
    »
    5 месяцев назад, # ^ |
      Проголосовать: нравится -12 Проголосовать: не нравится

    Yeah we both have shared the code snippet for coding practice and mistakenly used it while contest. We are sorry for that we will not do it again. Please return our ratings.

  • »
    »
    5 месяцев назад, # ^ |
    Rev. 2   Проголосовать: нравится +17 Проголосовать: не нравится

    Bruh both codes are basically the same, the only thing you change are variables. And I think that this account is clearly your alt.

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Can anyone help me in a OA? I'll pay

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

good problem C and D :D

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

hmm