4

Codeforces Round #905 (Div. 1, Div. 2, Div. 3)

 9 months ago
source link: https://codeforces.com/blog/entry/121579
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
By 74TrAkToR, history, 2 months ago, translation, In English

Hello, Codeforces!

We are happy to invite you to our experimental round for three divisions, which will take place at Sunday, October 22, 2023 at 11:05UTC. Please note the non-standard start time for the round. Each division will have 5-7 tasks. The round will be held according to the Codeforces rules and will be rated for all three divisions. A few changes regarding the ratings of participants in this competition:

  • In Div.3 the rating of participants is less than 1600.
  • In the Div.2 ranking, participants range from 1600 to 2099.
  • In Div.1 the rating of participants is no less than 2100.
  • Please note that after Codeforces Round 904 (Div. 2) the rating will not be recalculated until the end of this competition.

Let us note that two team Olympiads will be held in parallel on this day and the rounds are based on their tasks:

  • XXI Moscow Team Olympiad, high school students competition based in Moscow that is an elimination contest for All-Russian Team Olympiad.
  • III Open Team Olympiad UMSh in programming.

We would like to thank everyone who helped me a lot with round preparation.

We wish you good luck and high rating!

UPD: One of the problems will be interactive, so please read guide for interactive problems before the contest.

UPD: Score distribution:

  • Div.3: 500−1000−1500−1750−2500−2750−(1750+2000)500−1000−1500−1750−2500−2750−(1750+2000)
  • Div.2: 250−500−1000−(750+1250)−2250−2750250−500−1000−(750+1250)−2250−2750
  • Div.1: (250+500)−750−1000−1250−2000−2750(250+500)−750−1000−1250−2000−2750

UPD: Editorial

UPD: We will retest the solutions to the problem div3F and div2C. This may make minor changes, the rating will be recalculated later.

UPD: Retesting took several minutes. Now all the results are correct :)

2 months ago, # |

As a tester I tested the round and it was a fun one!

2 months ago, # |

"Please note that after Codeforces Round 904 (Div. 2) the rating will not be recalculated until the end of this competition.". Does that mean that our div in round 905 will be determined by rating before round 904?

    • 2 months ago, # ^ |

      If one's division changes after round 904, will round 905 be unrated for him?

      • 7 weeks ago, # ^ |

        No. It has happened before that if someone with a rating > 1600 gives a div3 contest and loses rating even though it should've been unrated for them.

      • 7 weeks ago, # ^ |

        No. If you participate in the round 905, it will remain rated for you regardless your results in the 904.

      • 7 weeks ago, # ^ |

        Thank you!

2 months ago, # |

As a tester I recommend you to read all the problems

2 months ago, # |

Rev. 2  

+3

I'm proud to be a tester of the first div123 round on Codeforces ever, and I recommend you participate in it

2 months ago, # |

As a tester I can say only that the tasks are really interesting and well-balanced! Don't forget that it is the first div123 Codeforces round ever, so why not to participate in it? Good Luck!

2 months ago, # |

Is Div 3 will based on ICPC like prevoius Div 3 round or rather it will follow Div 2 Pattern

  • 2 months ago, # ^ |

    same question..

    • 7 weeks ago, # ^ |

      really?

2 months ago, # |

I am a tester.

2 months ago, # |

Finally standard rule of Div3 and 2100+ Div1! Exciting!

  • 2 months ago, # ^ |

    will div3 follow icpc rules or div2 like score rule?

2 months ago, # |

May be we could soon see (Div1,Div2,Div3,Div4) happening at once just like this.

  • 2 months ago, # ^ |

    it'll be really weird though, since div 3 would just be clash of specialists

    • 2 months ago, # ^ |

      hell yeah

    • 2 months ago, # ^ |

      that would actually be cool. Div 2 clash of experts, div 3 clash of specialist and div 4 clash of pupils and newbies.

      • 2 months ago, # ^ |

        I agree, hopefully we'll see 1+2+3+4 one day.

2 months ago, # |

Rev. 2  

-14

OMG first div123 ever!

2 months ago, # |

First time div 1,2,3...... 1600~2099 div 2Hopefully it will be interesting..

2 months ago, # |

Rev. 2  

0

Will there be score distributions(especially Div.3)?

2 months ago, # |

It isn't a good idea for 2 contests on the same day. Because #905 is based on a competition, maybe we can move #904 to another day?

  • 2 months ago, # ^ |

    no, since #904 is also based on a competition.

2 months ago, # |

Thats so cool. Good luck everyone and hope we will get our rating up!

2 months ago, # |

This round div3 equal to div4.

  • 2 months ago, # ^ |

    how do you know

2 months ago, # |

i can register on both div 2 and div 3. What if i spam wrong solution on div 3 then submit the right one on div 2?

2 months ago, # |

I have a 50% chance to wake up early enough for this contest :)

2 months ago, # |

Looking very interesting round, the first Div.1,2,3 contest on codeforces.

Good luck to everyone!

2 months ago, # |

The average strength of the opponents will be very high in this Div1, and I'm very afraid. Should I participate in?

  • 2 months ago, # ^ |

    Same for the Div.2 :(

2 months ago, # |

So for the first time div 3 won't follow icpc rules. Very interesting

2 months ago, # |

Score distribution is so weird.

2 months ago, # |

does each div have questions that are on other divs? like is div3G the same as div2D and div1A ? or each problemset is unique

2 months ago, # |

So why is there a 3 problem difference between Div.1 and Div.2? Is it because purples are now in Div.2?

  • 2 months ago, # ^ |

    This is not related to rating or anything, they need to set a big range difference if they have a large amount of tasks or else they will need to increase the number of tasks per division

2 months ago, # |

Rev. 2  

+19

One of the problems will be interactive

For Div1?2?3?Or for all Div 1,2,3?

2 months ago, # |

this is a historic moment

2 months ago, # |

First ever Div 2. that I've not been able to participate in because of my rating :/

2 months ago, # |

Being related to Olympiads, will these rounds be highly mathematical?

2 months ago, # |

I don’t understand if div3 will be rated for me if I raise the rating to div 2?

  • 2 months ago, # ^ |

    the delta will not consider round 904 when distributing rating, so it is a good chance to boost up

2 months ago, # |

“Please note that after Codeforces Round 904 (Div. 2) the rating will not be recalculated until the end of this competition.”

Does that mean even if I become Master now I should still participate in Div.2?

  • 2 months ago, # ^ |

    You can't become master before round 905, because we will calculate ratings for both 904 & 905 only after 905's end.

    • 2 months ago, # ^ |

      Rev. 2  

      0

      But what about our profile, sir? won't there show that an expert attending a div3 ?

      • 2 months ago, # ^ |

        bruh he just said the ratings will be given after 905 ends

        • 7 weeks ago, # ^ |

          Rev. 2  

          -10

          bruh it link was my question answer (: i knew what u said (:

2 months ago, # |

So excited for this contest. Best of luck everyone...

2 months ago, # |

After this round ends and the round 904 rating is calculated, will the seed for calculating round 905s rating be based on the final rating after 904? Or will both of these be calculated in parallel and added to current rating?

7 weeks ago, # |

I wish I can AK!!!

7 weeks ago, # |

I hope my picture becomes reality... <3

7 weeks ago, # |

One of the best contests i have ever had :)

7 weeks ago, # |

Was it just me or div2 A seemed harder than usual and div2 E was easier than div2 D?

7 weeks ago, # |

Seems like a good system going forward, let's keep using this for future rounds. It should also deal with rating volatility better IMO.

Maybe even div2+div3 rounds when we only have a div2.

  • 7 weeks ago, # ^ |

    Round being shorter dealing with rating volatility is stupidest opinion I've ever heard.

    • 7 weeks ago, # ^ |

      Short rounds are better, my point wasn't about them still.

      Division distribution is far better.

  • 7 weeks ago, # ^ |

    True but preparing such a large problem set is hard

7 weeks ago, # |

Rev. 8  

0

Guys, please help. My solution on D3E fails on 4th test. Can anyone spot the mistake? 229288636

7 weeks ago, # |

rip, didn't see you could reorder in D1. It's a very easy problem for its position

7 weeks ago, # |

Can we not make round 2h for absolutely no reason? Ok thanks.

  • 7 weeks ago, # ^ |

    2h is the normal round duration... Can we not make rounds longer for absolutely no reason?

    • 7 weeks ago, # ^ |

      Does actually wanting to try out harder problems in a contest not count as a reason?

    • 7 weeks ago, # ^ |

      Easy for you masters' to say, here I am getting gotchas for B after submitting 2 wrong attempts of C!!

  • 7 weeks ago, # ^ |

    +1, 2h was too short for this round imo.

7 weeks ago, # |

statment in Div2D is really confusing for me

7 weeks ago, # |

Rev. 2  

0

how can i improve myself??? in todays DIV3 i got stuck at the first question itself,,how to improve myself??

  • 7 weeks ago, # ^ |

    Practice 800 rated problem in problemset

7 weeks ago, # |

I am getting TLE in pretest 6 for problem E — Look Back, can someone please look at my submission and tell me why?

Cause at max the T.C. will reach 10 ^ 6, right!?

7 weeks ago, # |

Thanks for the great contest! gonna hit expert this round :)

7 weeks ago, # |

couldn't anyone explain, why in the last example test, answer is 28? Div2, C

  • 7 weeks ago, # ^ |

    Make sure you are not double counting the same segments. (I was getting 26 instead of 28 in the last test of pretests).

    Segments [1;2], [1;4] — [3;4], [1;5] — [4;5], [9;10], [8;10] — [8;9], [7;10] — [7;8], [3;10] — [3;4] are bad segments, plus amount of repeating numbers (segments of length one) in total equal 29, but actually I double counted segments 7,2 and 7,2,3, so the amount of good segments is 28.

    Basically if you have 2 repeating numbers somewhere in your array, a good segment can't end at the repeating number that comes before, and can't start at the repeating number that comes after

    • 7 weeks ago, # ^ |

      thx Ryan, I had the same mistake..

7 weeks ago, # |

Why is my solution TLE on E?

  • 7 weeks ago, # ^ |

    because it is O(km)O(km) in worst case.

7 weeks ago, # |

Can you someone give some hints on how to solve div3 D?? dont know which data structure or approach to take..

  • 7 weeks ago, # ^ |

    You always only need to know if the shortest end time <= the longest start time for the segments. If so then print yes else print no

    • 7 weeks ago, # ^ |

      orz!!

  • 7 weeks ago, # ^ |

    This is how I solved it. Maintain a multiset of all left borders and a multiset of all right borders. For each query binary search on the right border, if there exists a right border greater or equal to the current middle value of binary search and there exists a left border strictly greater than the found right border, the answer is yes. If you dont find such right border, the answer is no; Submission: 229250762

    • 7 weeks ago, # ^ |

      or you can make a custom comparator for right border multiset which will eliminate the need for binary search.

  • 7 weeks ago, # ^ |

    If there is some right bound which has smaller coordinate than some left bound, the answer is YES. Otherwise its NO.

    Now you need some data structure that can store all bounds that are still not removed and return the smallest/greatest one.

  • 7 weeks ago, # ^ |

    Rev. 5  

    0

    Yeah, so basically you can maintain two multisets starts and ends, then for every operation if starts.size() (or ends.size()) is <2, the answer is NO, otherwise we can check that min{end} < max{start} (think about why this works by drawing intervals on a paper or something), if this is true then the answer is YES, else NO.

    Here is my submisison for reference.

7 weeks ago, # |

Nice contest, I almost made it to E, and now we have to wait one more week till the next div2 TT.

7 weeks ago, # |

Div2 C >>> D1, D2

7 weeks ago, # |

I found the hacking system is much more enjoyable in this Div1+2+3. In the past div2 rounds, I often found participants in my room only solved A, and there is not much to do, but in this round there are 3 participants in my room solved A-E and many others solved A-D.

Maybe CF should consider arranging participants with similar rating in the same room in the future rounds?

7 weeks ago, # |

Maybe Div2 D1/2 is much easier than Div2 C , only in my opinion.

So I think take part in Div1 is a better choice for me,probably.

But I'm quite far from Master. :(

  • 7 weeks ago, # ^ |

    I quickly came up with an approach of C, but it took me a while thinking about D2. In my opinion, D1 < C < D2

7 weeks ago, # |

Problem difficulty in Div1:

B < D < C < A.

7 weeks ago, # |

can someone help me with the logic for the div 3 B question? i used min deleions to make string palindrome and then checed it with k if equal then yes else if less than no if k > then it then there are cases which i figured and wrote them but it fails pretest 2

7 weeks ago, # |

One of the most intense contests in my life

7 weeks ago, # |

Rev. 2  

+9

Thanks to the authors for having

  • div1, div2 and div3 at the same time

  • another div2 on the same day!

Here is my advice about the problems (div2) :)

A
B
C
D
E

Overall I think that it was a good round! I'm looking forward to another russian olympiad round :)

  • 7 weeks ago, # ^ |

    You can try to first solve D2 instead of D1 next time as I did this time :)

    • 7 weeks ago, # ^ |

      Rev. 2  

      0

      I guess I'll try that :)

      (or solve A faster to have time to do E :clown:)

  • 7 weeks ago, # ^ |

    I think problem B from this morning is enough for problem C. I feel this B in actually the normal difficulty of a div2 B.

7 weeks ago, # |

Don't use unordered_map without custom hash... lesson learned

  • 7 weeks ago, # ^ |

    Which calls for hacks... :(

    I am considering accepting the O(log(n))O(log⁡(n)) and going with the ordered versions.

7 weeks ago, # |

By the way, I wonder what are people's opinions about the format of cf rounds. I think that it was pretty cool having div1, div2 and div3 separated to make the problemset more adapted to each division.

However, I think it would be cool to make the contests at bit longer, like 2h or 3h to avoid having one or two problems that are mostly solved by alts/new accounts and not tackled by others.

  • 7 weeks ago, # ^ |

    I think a separate division for expert + CM should be used more often in the future because it makes the experience a bit more enjoyable for people in those rating ranges (e.g. less complacency at the end of contests).

    But I think maybe in such cases we should set problem A to be the difficulty of a typical div2B, problem B should be like an easy div2C (1400), etc.

    • 7 weeks ago, # ^ |

      Yeah you're right, I think they should try this format and see how it goes

  • 7 weeks ago, # ^ |

    As a Div1 participant, I like this format rather than usual(Div1,2).

    • We can reduce the number of easier problems and make a time to tackle hard problems during contest (without extending the length of contests)
    • Soften the nightmare rating drop of very bad performed contests
    • More hacking attempt opportunity. Increse the number of participants who PT-passed harder problems in the same room.

7 weeks ago, # |

anti-unordered system tests? That's not very nice is it(

7 weeks ago, # |

It seems that problem F in this round is just the same as this problem. Is this just a coincidence?

7 weeks ago, # |

Pleasant limits in div2C. Nice day to the author for impeccable time limits and wonderful pretests!

  • 7 weeks ago, # ^ |

    Rev. 2  

    0

    Kinda same thing, still don't understand what happened. Curious if somebody can clarify why did that happen. (ExTrEmE AmoUntS of ClariFiCation is required) 229253714

    • 7 weeks ago, # ^ |

      In C++ unordered structures use default hashes unless you explicitly replace the hash. For int default hash is just int's value, so if you add a lot of elements with the same residue over some known modulus, the operations will start taking linear time and the solution will get TL. Didn't expect the authors to inlcude such tests though

      • 7 weeks ago, # ^ |

        Why would anyone include such tests without putting some in pretests, this is retarded

  • 7 weeks ago, # ^ |

    I found an argument suggesting people should use unordered_* with extra care on CF: https://codeforces.com/blog/entry/62393

    It is possible that Test 17 is a hack.

    • 7 weeks ago, # ^ |

      I think so, a constant log(10^5) * 5 = 80 looks like something unimaginable for std::unordered_map in basic cases...

      This is at least not pretty, in relation to the participants of the round, to use antihash tests only in systests

  • 7 weeks ago, # ^ |

    Got FST because of this as well...

  • 7 weeks ago, # ^ |

    Rev. 2  

    +7

    Div2C(Div3F) has testcases for anti-unorderd_map for C++. For example, testcase16 contain only 107897 * n as follows.

    1 107897 215794 323691 431588 539485...
    • 7 weeks ago, # ^ |

      how sweet it is :) the author of the problem (test) is probably very funny

      • 7 weeks ago, # ^ |

        He is thou

    • 7 weeks ago, # ^ |

      All the love from the bottom of my heart to the autors for accepting some python O(nlogn) solutions over c++ hashes

7 weeks ago, # |

Div3 E: https://ideone.com/whDTDf

Does it gives wrong answer because I updated the values in the array, so it overflows, or this is not the reason ?

7 weeks ago, # |

Rev. 2  

-6

7 weeks ago, # |

why does a basic while(a[i-1]>a[i])a[i]*=2, count++ not work? Please give a tc where this fails. also what's the intended solution?

  • 7 weeks ago, # ^ |

    number of operations can be large so a[i] can overflow 229293522

7 weeks ago, # |

Rev. 3  

+20

After all this time

  • 7 weeks ago, # ^ |

    Good job !!

7 weeks ago, # |

Spoiler
  • 7 weeks ago, # ^ |

    maybe CF should add a new tag call "understanding" lol

7 weeks ago, # |

I am very grateful to the authors for choosing a very good slot (for timezone +8) for the round.

7 weeks ago, # |

I solved problem A in div3 correctly (that was the only problem I solved, and my only submission) but got my rating reduced by 65, pls does anyone know why this could have happened?

7 weeks ago, # |

I don't think Codeforces current rating system is compatible for conducting Div 1 + 2 + 3. As number of participants is much less in Div 2, as compared to other rounds, as expected rating update is very peculiar on the normalized same rank.

7 weeks ago, # |

Got FST on div2C for using std::unordered_set instead of std::set. Of course, anti-hash table test cases come from hacks, and this goes to show that hacking is a negative mechanic in Codeforces rounds.

The purpose of hacks has become that of giving a few people easy points by breaking hash-based solutions, and nothing more.

No one would argue that this is a positive thing, and Codeforces really doesn't shine when allowing this sort of unfairness to happen on the site.

  • 7 weeks ago, # ^ |

    why use it if you know that there are anti-hash test cases?

  • 7 weeks ago, # ^ |

    Rev. 2  

    0

    Same thing happened to me, just use custom hashes.

7 weeks ago, # |

Thanks guys for the contest!

Problem Div3B made me spend lots of time, luckily solved it after problem C!

  • 7 weeks ago, # ^ |

    Yeah, I literally solved C, D, and E and then came back to B. B was kinda weird and very caseworky

7 weeks ago, # |

Due to significantly low number of participants in division 2 , The rating changes were not satisfactory : (

7 weeks ago, # |

Just a little personal opinion.

It's clear that contestants who've solved problems [A-D2] in Div.2 have the capability to solve all problems in Div.3.

For those who solved all the problems in Div.3, their performance score is greater than 2100. We can see some Experts (who got promoted from the last contest so they can participate in Div.3) receiving a +150 delta.

However, those contestants in Div.2, if they solve D2 at the same speed, would only get around an 1800 performance score. Some Experts might even see their rating dropped.

I think this seems a bit unfair. I'm not saying that the contest was bad; the problemset was excellent!

  • 7 weeks ago, # ^ |

    That's life

  • 7 weeks ago, # ^ |

    Thats life, I did real bad in the 904div2, got demoted to specialist but still had to participate in 905div2 bcoz ratings were not updated. Still managed to get back to expert somehow.

    but CF needs to modify the algo if they wanna continue doing this div1+2+3 thing.

  • 7 weeks ago, # ^ |

    I think this problem is already present in div1/div2. There are some rounds where almost everyone in div1 solves div1AB but in div2, barely anyone solved div1B (maybe because an earlier problem was annoying or something). Then a low CM in div1 who solved AB would maybe get negative delta but in div2 he would have gotten huge positive delta.

7 weeks ago, # |

I am just wondering if someday there will be parallel div-1/div-2/div-3/div-4 contests.

7 weeks ago, # |

Thanks for both of the contests :D

A good day for me, gaining 200+200+ delta!

7 weeks ago, # |

great contest, had a little mess up on E & g2 I really like it when the number of alts is reduced due to most of them attending from their main bcoz of div1&2&3

7 weeks ago, # |

This was my first Codeforces Div 3 contest. I solved three problems and gained some rating. However, when I checked back in the evening, my rating was gone, and the contest had become unrated. Can you help me understand why this happened?

  • 7 weeks ago, # ^ |

    They rolled it back to check solutions for plagiarism, everything will return after some time.

    • 7 weeks ago, # ^ |

      There should be a message about this at the top of the screen during the plagcheck, ain't it?

    • 7 weeks ago, # ^ |

      Alright, thanks for explaining. I read something about needing to confirm my intention to participate as "rated" in the contest, and it got me a bit worried.

7 weeks ago, # |

why this contest was unrated for div3

7 weeks ago, # |

In Div2C / Div3F,

What is the intuition behind the below statement?

Note that a subarray suits us if a[l] is the leftmost occurrence of the number a[l] in the array and a[r] is the rightmost occurrence of the number a[r] in the array.
  • 7 weeks ago, # ^ |

    Rev. 2  

    +4

    suppose that you have the l r of the subarray, when does this subarray can be reproduced as a subsequence if and only if the first value (or more with the right order) are with index <l (the same logic with the end of the subarray for index>r) we can think about the first and the end of the subarray (to lessen the cases)

    • 7 weeks ago, # ^ |

      Understood bro! Thanks!

7 weeks ago, # |

Rev. 2  

+3

Maybe I'm the only one using segment tree + lazy prop in div3D LOL.

  • 7 weeks ago, # ^ |

    That's beautiful though XD

7 weeks ago, # |

nice problemsets! really challenging and interesting, RP++

7 weeks ago, # |

Rev. 2  

0

can any one tell why this submission 229370372 is giving WA on testcase 2 for div2D2.

  • 7 weeks ago, # ^ |

    Rev. 2  

    +3

    5 4
    12 17 11 16
    20 9 8 6 4

    For above testcase, correct answer is 12. Your code is giving 15.

    6 2
    20 12 6 10 10
    15 16 8 8 14 15

    For above testcase, correct answer is 2. Your code is giving 5.

    Happy debugging!

    • 7 weeks ago, # ^ |

      thank you, it got accepted

      i forgot about considering upperbound(m+1)

7 weeks ago, # |

Can someone please help me in identifying what issue in my code for Div3 D is? 229445451

The code in comment is working correctly, but the current code is not.

Thanks in advance!

7 weeks ago, # |

Rev. 2  

0

Where is the information about icpc challenge? The button in the main menu links to an empty page...

upd. the issue is resolved

7 weeks ago, # |

Why the answer to 4th Example test case is 7 in Problem F[problem:1883F] Div 3. According to me it's 8. The segments are {3},{1},{2,3},{3,2},{2,1},{2,3,2},{3,2,1},{2,3,2,1}. So there should be 8 segments.

  • 7 weeks ago, # ^ |

    {2,1} is not valid

    • 7 weeks ago, # ^ |

      Yes, I misunderstood the problem. Thanks.

7 weeks ago, # |

get back to Expert lol :(

  • 7 weeks ago, # ^ |

    Sorry??

5 weeks ago, # |

Rev. 3  

0

I have recently got a plagiarism notification for question 1883-D. The solution which I submitted was a pretty generic solution. It coincidentally matched with some other participant (Shivam_Jha) who even had a similar template like I have. In fact many other participants and even the editorial had a similar (almost same) solution. I am attaching some similar solutions that I have a found.

My Solution

Shivam_Jha's Solution

Other similar solutions: 229297769 229325508 229223552

As far as the template part goes, we have been using this similar template for over a year now.

4 weeks ago, # |

Hello Codeforces, I had a message 2 days ago which stated that "Your solution 229220289 for the problem 1883A significantly coincides with solutions 2020331050/229210728, dingD0ng/229220289" & "Your solution 229220793 for the problem 1883B significantly coincides with solutions 2020331050/229219928, dingD0ng/229220793" & "Your solution 229254178 for the problem 1883C significantly coincides with solutions 2020331050/229253641, dingD0ng/229254178". First of all I want to apologize as I was completely unaware of the rules and guidelines. I confirm that both of the accounts are mine and I made the same submissions during the "Codeforces Round #905(Div. 3)" contest for both of the accounts. I'm extremely sorry for my action. It was unintentional from my side. I'll be careful from now on. This type of incident won't happen again.

3 weeks ago, # |

It was a nice round! Congrats to all participants!

6 hours ago, # |

Rev. 2  

0

Hello, Codeforces.

I managed to solve 5 problems in this round. But later Codeforces algorithms found my solution to the D1 problem similar to another solution. I looked — yes, the solution is almost identical. You can make sure that the solutions are indeed similar: https://codeforces.com/contest/1888/submission/229228883 — my code, https://codeforces.com/contest/1888/submission/229262126 — someone else's code. But I would like to challenge the decision to write off.

Firstly, I do not know the person who owns the second code. Secondly, I think that copying so close to the source code is stupid, since there is a check for cheating. Thirdly, task D1 is a problem with an obvious solution. If solutions to problems where it is necessary to derive a formula are not banned, then why is the task where it is necessary to write a standard bin search for O(nlogn) banned?

I hope for an individual consideration of this case.

Good luck to everyone!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK