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

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

Hello, Codeforces!

After years of hard work, we are euphoric to invite you to participate in Codeforces Round 1077 (Div. 1) and Codeforces Round 1077 (Div. 2), which will be held at Jan/29/2026 17:35 (Moscow time). For both divisions, you will be given $$$7$$$ problems and $$$3$$$ hours to solve them. For at least one of the divisions, one of the problems will be divided into two subtasks.

The problems are invented and prepared by Bronya_H, Error_Yuan, StarSilk, Tobo, __baozii__ and me.

We would like to thank:

The score distribution is below.

Div. 1: $$$750 - 1250 - 1750 - 2000 - 2250 - (2000 + 3500) - 3000$$$.

Div. 2: $$$500 - 1000 - 1500 - 2000 - 2500 - 2750 - 3000$$$.

We sincerely hope you can enjoy the problems. Good luck and see you on the field !

Bonus

UPD1: The hacks are disabled for problems A-D in Div 2, and for problems A-B in Div 1. We have final tests consisting of pretests and hacks for all problems.

UPD2: Editorial

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

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

First!

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

As a participant, I believe this round will be the most exciting one.

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

As not a tester, neither of these contests will require the ability to speak Chinese to AC

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

I love __baozii__ and -firefly- and fatalerror so much that I’d even have their babies!

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

I participate div2 at the first time...

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

No 6-7 meme this time :(

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

My honor to participate in testing work again with those brilliant coordinators and testers. GLHF!

PS: A photo of __baozii__ and -firefly-:

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

As a tester, I wanted the authors' QQ numbers.

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

0x3F orz !

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

The hype for -firefly-'s crossdress cosplay is real!

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

As a Ruby tester, I have no idea for using Ruby.

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

Tester. A wonderful round, enjoy it!

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

Chuffed to be a tester. A meowvelous round. Hope you find the problems as sweet as an apple : )

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

As a tester, I wish everyone good luck! :)

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

As a participant, i really hope to reach CM

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

Good luck everyone!

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

excited

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

Tester list bigger than my solved list.

Cry knows what's coming GL, everyone. I hope it goes well!

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

ready to hopefully inch closer to pupil!

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

.

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

As a tester, I lose the chance to acheive grandmaster.

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

Hello!

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

Huge respect to the setters and testers. Excited for the round

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

The score distribution will be announced later, along with my crossdress cosplay photograph.

![ ](thats it your putting maid outfit)

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

what am i doing here?

How to be a part of this?

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

As a tester, I think that problems are interesting, have fun!

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

Glad to become one of the testers for this round! I wish all participants GL and HF!

Spoiler
»
9 месяцев назад, скрыть # |
 
Проголосовать: нравится +39 Проголосовать: не нравится
  • cry for inventing a basement of infinite capacity

As a tester, I know that he just moved all cheaters on room $$$n$$$ ($$$\forall n \in \mathbb{N}$$$) to room $$$2n$$$ on his last coordinated contest.

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

I hope it goes well.

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

Hope this round deserves an emerald upvote.

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

As a participant, i really hope to reach Expert

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

Good luck everyone!

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

Orz

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

time came to enjoy specialist rank again i guess

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

GLHF!

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

is there late registration ?

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

SSerxhs StarSilk Error_Yuan My account Jin-li-han was disabled mid contest, i had provided clarification for my fast solves for A,B,C to the authors which was due to my laptop crashing and disconnecting from the monitor due to the new nvidia drver updates. for which i had to do a clean reinstall and restart my laptop. in the time being i had paper solved A,B,C and had started on D, I fell i have been banned because it was my first cf contest. however if you have any issues regarding my solutions or any suspected ai use i am more than happy to provide my workproduct and thought process if it is simply becuase of me being a new account i request the ban be reverted for this is unfair towards me. i have not used ai or any other external resources or done anything which violates in contest rules. kindly look into this

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

This is only my 3rd contest, and I haven’t been able to solve a single problem in this one. Does anyone have advice on how I can improve?

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

Problems are so bad. SpeedGuessForces.

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

Fun fact on Div1D: You need to remove duplicates before take the modulo of each cool number.  I hate pretest23, letting my score minus about 200.  And why Chinese round don't have super large samples on data structure problem. I continue getting RE TLE MLE on Div1C.

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

Huhh!! Sort of GuessForces, and I just suck at bitmask DP

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

Nice Div2B

Enjoyed the contest!

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

F1 should never exist in any contest.

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

Seeing the trend from last 4 div1 rounds; one can probably bet on the fact that next Div1 round would also contain a problem on Trees.

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

look forward to the tutorial

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

so excited to see editorial for E didn't solve it for almost 2 hours

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

Amazing experience really good problems

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

F2 is an old ICPC india regional problem, but constraints were cubic.

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

The idea of my solution of problem Div2D\Div2B (I realized it too late sadly :( )

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

    Yeah I observed that too by brute forcing over all p and q , but how to find the appropriate p and q? Any hint pls

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

      Think of brute force then try to optimise it using dp.

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

      I'm not sure if what I wrote are hints or the actual answer, but read them and try to implement them by yourself ^_^

      for the second and fourth cases

      Spoiler

      for the first and third cases

      Spoiler

      I hope that you found them useful ^_^

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

    Bro I do same but still wrong answer, can u check

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

      your way to find the lesser number is correct

      but your way to find the higher number is not always true

      if I have the number 12, in binary it is 1100, let's say that the next higher number is 1101, while your solution finds that the higher number is 16 10000

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

    Wow, i regret looking at the tests more carefully :'(
    Took >3hours and lots of debugging to implement this case based approach.

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

    I was doing ,

    If the bits of x and y is different then we can take the bit's of x in p as it is and same for the y bit's in q as it is ,

    but if they are different we have to make either q's bit 1 or the p's bit 1.

    But couldn't come with a dp solution during contest otherwise would have been my first div2 D.

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

How do you solve div2 D ?

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

That was a excellent contest ! Thanks

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

editorial??

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

wonderful contest to be honest

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

Pretty easy and previously seen question b was seen as div3e somewhere in past splitting across 1 c was pretty easy simple two elements can make it at right position idk I found a more difficult than usual a's

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

There’s no way we got more than 7000 ac in div 2 problem C

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

QAQ

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

So, the Indian guy at the top of the ranklist(div 2) has 6 compilation errors and 10+ WA on pretest-1 in just a single contest? Definitely not a cheater I guess.

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

Cool problem C! I did(n't) solve it during contest, but its solution is actually very satisfying. The first thing I noticed is that there's monotonicity in k (if k+1 works, so does k). "Ok", I thought, "perhaps I'll use that later." So I set that fact aside and continued thinking.

(1) Then I considered how swaps work and if I could somehow exploit the condition. I noticed it's possible to swap (x, y) using some other z such that z stays in place. This would contribute min(abs(x-z), abs(y-z)) instead of abs(x-y). Seemed useful enough.

(2) Another idea I had was to treat this array as a graph and add edges between nodes (array indices) if their values had an absolute difference >= k. That is, if I were to binary search.

Since I did not see how to put to use (1), I decided to follow the advice of a wise man I once learned. "All you need is randomly guessing."

(3) So I guessed that if I grouped nodes from (2) together (union-find), it would be possible to somehow sort them within these groups. Also, notice we do not need to merge all of them. It's enough to merge a node x with min (instead of some prefix) and max (instead of some suffix) (when possible).

And... it WA'd. Only after the contest did I realize why. I set my right binary search bounds too low! I forgot I wasn't dealing with a permutation! Ouch!

So after the contest I had a conversation with my friend NekoIie, who arrived at this powerful observation: k=min(k, max(abs(a[i]-min_element(a[])), abs(a[i]-max_element(a[])) among i that are missplaced. This is to say that it's always optimal to swap with either max or min in the array.

I did miss that! And then he pointed me to the right construction. Imagine we are binary searching (in the end we can ommit this). Find the positon of a[i] in the final sequence (denote the element present there currently as mp(i) (short for "mapped"). Break ties in some sensible way. For some fixed k, we will traverse the array a[] and (skip i if a[i] is already in the right place) if it's possible to swap, do so. Otherwise, try one of the following constructions: (A) use min to swap (i, mp(i)). (B) use max to swap them. (C) use min AND max to swap them.

constructions are here

So, in the end, we always pick either min or max for some i and perform the swaps. This also proves the approach described in (3). Because there will be some middle part left out and a connected component of some prefix and suffix. I wish I went a step further during my attempt at solving the problem and considered the implications of my idea. At the very least, I'd write a shorter check() for my "magically" working solution!

This comment is meant to serve as a reminder that among all the moving bits and pieces in a problem, it's always useful to first try find elements that don't change much, that are maximal or minimal in some way. After you "grab" hold of them, try to reason and progress from there. That helps a ton. It's fairly similar to solving math problems with invariants and monovariants. A different wise man once said "when solving a problem try to think of the smallest sensible step that could lead from your current position to the solution". Because solving a problem is like fiding the right path through a graph (of ideas).

360627538 — the clever construction (could be written even more concisely, since after all, you just pick to swap with min or max, also one (abs(y-x)) of the max terms could be removed, it's never worse to not use it and I should probably mention that I don't actually do the swaps in a[], although it could be done, works regardless)

360628478 — corrected random guess here

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

We can solve d2D/d1B using simple greedy method!

Hint 1
Hint 2
Hint 3
Hint 4
Hint 5

My submission: 360631214

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

https://ibb.co/1tvfLNrM How is this possible? I dont get it

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

Enjoyed the contest !. Though i solved AB during the contest, After giving a thought to the C, I regretted because i solved B very late and had i got more time during the contest, i could have cracked the C one. I think i need to keep my practice high so that i don't just solve the problem but solve in less time as compared to my competitors !.

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

honestly the tasks are difficult

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

Let's go, one point away from expert

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

Задача G никто не мог решать

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

First!

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

hello

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

when will the editorial be released?

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

breh

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

Good round!

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

I am not first!

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

(deleted)

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

deleted

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

this round learnt that short problem statement does not mean problem is easier..

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

If anyone wants a dp solution for div 2 D :Problem Link

Here is my code:{If explanation needed , ping me} .


int dp[35][4][4]; pair<int,int> best[35][4][4]; vector<pair<int,int>> choice={{0,1},{1,0},{0,0}}; int vis[35][4][4]; int timer=0; int x,y; /*0->equal , 1->less,2->greater*/ int rec(int level,int ps,int qs){ if(level<0) return 0; if(vis[level][ps][qs]==timer) return dp[level][ps][qs]; int ans=1e16; int x_bit=((x&(1LL<<level))>0?1:0); int y_bit=((y&(1LL<<level))>0?1:0); int val=(1LL<<level); for(auto &[p_bit,q_bit]:choice){ int new_ps,new_qs; int cost=0; int p_cost=(x_bit-p_bit)*val; int q_cost=(y_bit-q_bit)*val; if(ps==0) cost+=abs(p_cost); else if(ps==1) cost+=p_cost; else cost-=p_cost; if(qs==0) cost+=abs(q_cost); else if(qs==1) cost+=q_cost; else cost-=q_cost; new_ps=(!ps?((p_cost>0)?1:2):ps); if(x_bit==p_bit && !ps) new_ps=0; new_qs=(!qs?((q_cost>0)?1:2):qs); if(y_bit==q_bit && !qs) new_qs=0; int temp=rec(level-1,new_ps,new_qs)+cost; if(ans>temp){ ans=temp; best[level][ps][qs]=make_pair(p_bit,q_bit); } } vis[level][ps][qs]=timer; return dp[level][ps][qs]=ans; } int p_ans,q_ans; void genrate(int level,int ps,int qs,int &p,int &q){ if(level<0) return; auto &[p_bit,q_bit]=best[level][ps][qs]; p|=(1LL<<level)*p_bit; q|=(1LL<<level)*q_bit; int n_ps=ps,n_qs=qs; int x_bit=((x&(1LL<<level))>0?1:0); int y_bit=((y&(1LL<<level))>0?1:0); if(ps==0){ n_ps=(p_bit>x_bit?2:(x_bit!=p_bit?1:0)); } if(!qs){ n_qs=(q_bit>y_bit?2:(y_bit!=q_bit?1:0)); } genrate(level-1,n_ps,n_qs,p,q); } void solve(){ cin>>x>>y; timer++; p_ans=0,q_ans=0; int ans=rec(32,0,0); genrate(32,0,0,p_ans,q_ans); cout<<p_ans<<" "<<q_ans<<'\n'; } signed main(){ ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); int t=1; cin >> t; while(t--){ solve(); } return 0; }
»
9 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

IbrSham это я мне забанили

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

Я пользователь IbrSham, которое меня забанили. Моя доказательство: Моя идея было в задаче B: Студентов можно сажать только на нули, причём: нельзя сажать рядом с 1 нельзя сажать рядом с другим добавленным студентом Поэтому задача распадается на независимые участки из нулей, разделённые единицами. Это принципиально важно: разные участки из нулей не влияют друг на друга, значит их можно обрабатывать отдельно. если в каком-то сегменте можно посадить ещё студента, значит текущее состояние не является максимальным, а значит условие задачи не выполнено. Следовательно, в каждом сегменте мы обязаны посадить максимум возможных студентов, иначе условие «нельзя посадить никого» не выполнится. Единицы в исходной строке уже не соседние, а значит: между любыми двумя сегментами нулей есть как минимум одна 1 добавления в одном сегменте не могут нарушить ограничения в другом Это даёт корректность суммирования вкладов. Сохраняем индексы всех 1 Обрабатываем: левый край правый край все промежутки Складываем добавленных студентов Прибавляем исходное количество 1 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ И вот мой код задача B:

include

include

include

using namespace std; void solve() { int n; cin >> n; string s; cin >> s; vector ones; for (int i = 0; i < n; ++i) { if (s[i] == '1') { ones.push_back(i); } } if (ones.empty()) { cout << (n + 2) / 3 << "\n"; return; } int added_students = 0; int left_zeros = ones[0]; added_students += (left_zeros + 1) / 3; int right_zeros = n — 1 — ones.back(); added_students += (right_zeros + 1) / 3; for (size_t i = 0; i < ones.size() — 1; ++i) { int gap = ones[i+1] — ones[i] — 1; added_students += gap / 3; } cout << ones.size() + added_students << "\n"; } int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int t; cin >> t; while (t--) { solve(); } return 0; }

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

Please Eliminate NguyenQuyetDinh2.cpp

He cheated in last round

The F's submission https://codeforces.me/contest/2188/submission/360593590

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

Уважаемые организаторы,

Мы получили уведомление о том, что наше решение ( Raykhan/360585935, NurmahanovEA/360586834) совпадает с решениями других участников (Raykhan и NurmahanovEA). Хотим пояснить, что это совпадение произошло, потому что мы с другом решали задачу вместе, обсуждая подходы и решения, и, как результат, код получился схожим.

Мы понимаем важность соблюдения правил соревнования и уверяем, что никакого нарушения с нашей стороны не было. Если это вызвало недоразумение, просим прощения за возможное недопонимание и готовы предоставить дополнительные разъяснения, если это необходимо.

Заранее благодарим за ваше внимание и понимание.

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

Good Very Good

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

Hi, coordinators

A coincidence warning was sent to me regarding issue 2188C (contribution 360598939).

I did not steal anyone's code, did not share my code with anyone, did not use public online IDE with open access.

The code appears identical because several participants (including me) independently adopted the same faulty greedy idea:Calculate the overall minimum and maximum. - if sorted already → -1 If not, take min over max's misplaced places (a[i]-L, R-a[i]).

When you mistake or misunderstand the swap condition, this is a perfectly natural incorrect thought. apart from that my code snippet is like that in this particular maximum part from the snippet. You can observe that numerous false submissions on B have almost the same format. I have submitted 5 wrong submission for b three before and two after submitting the c i have to copy i would have done it for b before doing c it's just that the solution clicked me.

This, in my opinion, is an instance of numerous individuals making the same error on their own.

Please check / cancel the warning if feasible.

I'm grateful!