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

Автор Ari, 6 лет назад, По-английски

Hi!

On 04.07.2020 17:45 (Московское время) we will host Codeforces Global Round 9.

It is the third round of a 2020 series of Codeforces Global Rounds. The rounds are open and rated for everybody.

The prizes for this round:

  • 30 best participants get a t-shirt.
  • 20 t-shirts are randomly distributed among those with ranks between 31 and 500, inclusive.

The prizes for the 6-round series in 2020:

  • In each round top-100 participants get points according to the table.
  • The final result for each participant is equal to the sum of points he gets in the four rounds he placed the highest.
  • The best 20 participants over all series get sweatshirts and place certificates.

Thanks to XTX, which in 2020 supported the global rounds initiative!

The problems of this round were prepared by a team of authors: adamant, antontrygubO_o, Ari, dengyaotriangle, hugopm, Kuroni, enoone, and Ynoi. We would like to thank the following people:

You will be given 2 hours and 30 minutes to solve 9 problems, and we highly encourage you to read all of them :)

To save testers the work of writing their opinion in the comments, we have compiled some of their opinions for them!

Round Feedback

Good luck!

UPD: Score distribution:

500 — 750 — 1500 — 1750 — 2000 — 2000 — 2250 — 2750 — 4000

UPD2: Editorial

UPD3: System tests have finished, congratulations to the winners!

  1. tourist
  2. scott_wu
  3. yosupo
  4. Um_nik
  5. heuristica
  6. lqs2015
  7. heno239
  8. Motarack
  9. zeronumber
  10. Itst_boyfriend
  • Проголосовать: нравится
  • +2693
  • Проголосовать: не нравится

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

As a tester, give me contribution.

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

AC Round #3

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

This has to be one of the best contest announcement.

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

I am not tester, but i strictly reccomend you to participate in this contest!

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

I'm a tester, and this round is very good.

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

As a participant, I need more time to recover from the previous contest.

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

They stole my contribution =(.

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

Ok then

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

very comedically humorous Ari

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

Is feedback meant for frightening us?

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

As a participant, I am already scared

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

Finally this day has came, a round with adamant as an author.

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

thanks for the meme!

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

The announcement just ensured that one more time we are gonna miss MiFaFaOvO vs tourist match.

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

Glad a real CF round is coming,last round killed my spirit...

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

As a participant, I am eager for tourist vs Um-Nik

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

tags: "doomsday" oof

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

People trying to be sarcastic in comment section Problem Setters And Testers : Say No More

Ps : Is it best announcement ever? :P

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

EvenImage : " I'm happy sitting atop the CF rankings. You guys give the contest."

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

You will be given 2 hours and 30 minutes to solve 9 problems, and we highly encourage you to read all of them :)

Is this statement meaningful or is this general good advice for any round?

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

But man, by the time I understand 9 problem statements, 2,5 hour is already gone, and I already forgot 8 of them...

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

As a russian guy, I don't understand tester's feedback.

Joke

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

Looks like it's going to be a difficult contest.

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

"As a problemsetter, I am sorry"
As a contestant,

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

......

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

As a participant, I will participate.

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

Looking forward to the problems. The announcement is hilarious and I hope the problems will be as well.

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

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

Don't worry, you guys are gonna enjoy the round :)

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

Probably, one of the best contest announcements.

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

As a contestant, I quit.

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

i'm confused, should we be playing or not?

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

I see that I'm going to love this round...

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

Hoping to become an Expert after this round :)

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

Do you want to get fewer participants with this anti-advertising of the problem set? If the goal is to avoid the server load, just say that there will be a lot of math in div2 problems.

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

First time, I see meme in contest announcement.There must be a reason behind it. We should be aware of that.Good luck to everyone. :p

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

How pupils become tester? :D

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

As a contestent, I want rating.

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

xd

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

Same story, again and again, my smoll pp skills and big pp problems.

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

Best CF Round invitation ever =P

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

as a participant, i am also scared and i don't want to participate!)

GL&HF to everyone!!!

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

....

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

I don't know why but it is giving me vibes of an amazing round.

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

.PicsArt_07-02-02.16.38.jpg****

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

9 Problems with an army of testers and 8 writers. Excited

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

IT IS TAGGED DOOMSDAY!!!

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

New here, it is going be my first Global Round and the comments already scare me. Is it a good idea for a new guy to take part in it? or will it be discouraging?

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

9 problem that's huge. I appreciate the hard work to make a contest.

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

This global round seems to be very special among all previous global rounds because of its awesome announcement!!

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

I was going to make a century of losing rating in last contest...I think,this is another opportunity to complete the century...Shouldn't I be happy!!! SENTY_EMO

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

how is global round different from other rounds???

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

As a contestant, I will take part in the contest. :)

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

Can someone tell me what happened to static a2oj? I used to solve problems from there difficulty wise and now, instead of that a different website with that names comes and all the problems of the ladder are locked there.

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

Finally, memes are on Contest announcement blog post :v

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

Explain me the difference between Educational round and Global round in div 2 like contest there is time penalty what about Codeforces Global Round .Thank you.

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

    In Global round also every problem score decrease with time . It's almost like Div-2.

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +24 Проголосовать: не нравится
    1. Global round is rated for everyone, educational round is rated for people who have rating less than 2100

    2. Global round has some fixed points for each problem which reduces slowly as time goes on, all problem has equal points on educational rounds.

    3. Hacking runs parallel with contest in global round, there is hacking phase in educational rounds after contest finished.

    4. Wrong submission on finally accepted solutions will cost you 20 points in global round, in educational rounds it will cost you additional 10 minutes time penalty.

    5. On global round last pretest passed solution will be judged and resubmission will cost you 50 point and in educational rounds all pretest passed(accepted) solution will be judged and 1st solution that passed system test will be considered.

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

thanks to all of them for frequent rounds

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

Next round after the global round is one week later.Are we not going to have any round before that?

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

A meme in the announcement .. you got my upvote

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

    Hey Boss how to get like your meme idea.. I want to make my contribution 0.

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

      the idea just flashes in my mind and I search for photos that can present the meme and edit it on paint
      I can give you an advice some of my memes goes this way you just compare 2 completely opposite situations like this one
      it's how I used to be when I started and how I'm like now this meme is actually sad for me XD
      or like this one
      it starts with someone asking them to be quite while it ends up with a party so there should be an element of surprise if it's something expected or usual then this is a bad boring meme and it should be about codeforces and competitive programming not jokes about html that's out of the context

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

You will be given 2 hours and 30 minutes to solve 9 problems, and we highly encourage you to read all of them :)

Problem I.

You are given two integers a and b. Print a+b.

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

I am excited for the round..hope for the best

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

dude that feedback gave me chill more than any meme xD xD

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

WTH to me. i was going to attend the contest today at 20:35..

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

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

I like this meme!

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

I love the announcement """""D

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

In problem B,can anyone explain this formula => a+(a+1)+(a+2)+...+b=(a+b)∗(b−a+1)/2 and what is it called

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

I hope there are a few or no problems based only on observation

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

    I hope a problemset like that of the previous round doesn't happen again. Problems A-D: Observation. A-C are 1 liners. D is two nested for loops which can be written with 3 lines. Problem F: Think for half a second, implement for half an hour.

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

In China, there is a well-known serie of huge datastructure problems called Ynoi.... Is it gonna have huge datastructures like ctholly tree?

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

As a stupid American, I don't get the testers' jokes.

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

As a participant, I have a hunch that I should hide my brain during the contest

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

Excuse me. Can someone tell me how the round is rated? I mean: is it rated like div.1, div.2, or div.3? I'm not very familiar with the contests of CodeForces (as you can see I'm a Newbie). Thanks for helping!

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

so here comes the DOOMSday

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

For the first time, I am feeling nervous that something bad is going to happen with me in this round :(

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

Codeforces contests are like a sport for me . I enjoy the problem mostly without noticing my rating .

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

is this one as easy as div 2?

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

tourist after reading round feedback

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

As a participant, I am scared.

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

how the contribution is calculated.

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

Ari Hey, I understand that you want to make a point, but don't you think tagging them is unnecessary? I believe noone likes to be tagged just to see themself being thanked every week.

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

GOOD LUCK TO EVERYONE!!!

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

Out of curiosity, What's the record for the most downvotes? (Can this comment break that record? xD)

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

gamegame and dorijanlendvaj, for their help in improving the humor of the round.

During round :

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

Honestly, Is this contest suitable for a newbie????

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

10 minutes delay, sorry. I'm trying to fix Ruby installation.

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

My adrenalin just got wasted

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

Delayed by 10 minutes :/

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

What the fuck? Why is CF so bad in punctuality? -_-

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

Oh shit! Now I'll have to listen to Twice once again.

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

This ten minute extension is ruining the moment :(

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

my precious time....22:35->22:45

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

Delayed??

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

Is today's contest suitable for newbie and lower pupil?

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

What the fuck! Another 10 minute wasted. 10 min wasted before starting by waiting.

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

Ok, all set, 5.4.3.2.1 let's start..........not now, come again after 10 min xd

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

[deleted]

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

An interesting observation: all the people complaining about adrenaline being washed out etc. are below blue and below.

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

Codeforces Global Round Exists:

meme.jpg

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

As a contestant, I just read the questions

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

This was the Hardest A i have seen till now.

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

As a tester, I am very happy that I can enjoy others suffering in the contest. This line become true lol. But really awesome problemset

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

i should have taken those feedbacks seriously :(

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

Very good contest nice problemset

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

hope mifafaovo gets dethroned by umnik this time!

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

[*] rating

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

As a participant, this round gave me PTSD. XD

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

Arggg. Tough round. Great problems, though!

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

Ari: how many constructive problems do we need?

Other setters: Yes

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

Great round with difficult problems. Hoping for a fast editorial.

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

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

I wonder who did created problem D.

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


Never again.

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

Is there anyone else who could solve D in like 10-15 minutes and has no idea about solving C? Bad day!

Anyways how to solve C?

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

    The last element must be greater than the first

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

    how to solved D ?

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

    arr[0] < arr[n-1] => YES else NO

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

    if(a[n-1]>a[0]) cout<<"YES\n"; else cout<<"NO\n";

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

    if $$$a[0] \lt a[n - 1]$$$ then "YES" else "NO"

    Consider this example

    5 6 7 4 8 9 10 13 11 12

    This can be visiualize as

    $$$[increasing] [increasing] [increasing]$$$

    5 6 7 4 8 9 10 13 11 12

    But How we are breaking this sequence ?

    We are considering $$$first$$$ and $$$last$$$ will remain in the end of the process. So our focus is to remove all the element in between.

    See,

    4 $$$ \lt $$$ 5 $$$(first element)$$$, this will insert break in our sequence, from this index we will start making new increasing sequence.

    Similarly observe, 13 < 12 $$$(last element)$$$, this will insert a breaking point.

    Now, if you think a little about it, you will see we can merging first increasing sequence and last increasing sequence like this

    5 6 7 4 8 9 10 13 11 12 ==> 5 6 7 4 11 12 ==> 5 6 7 11 12

    So the sufficient condition would be $$$a[0] \lt a[n - 1]$$$ for answer to be exists.

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

    34 people (and 2 in under the next such question) have replied to this comment but no one has even slightly explained why this is true. What's the use of such responses?

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

      Many of them don't know. :p

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

      I proved it first before solving it. PLease Correct me If I go wrong any where. Let me explain the proof very clearly. if the minimum element of permutation that is '1' is last element of the array then plainly answer is No because no matter which ever operation you performed.the last 2 elements after operation will have minimum element that is '1' on RHS which means it is not possible to satisfy the condition that is a[i]<a[i+1].

      Now if 1 is in a[0] that is in first place then the answer is always "YES" , just converse of I said above.

      Now when '1' is in middle , things become nontrivial. For example 1 is in middle and after applying some sort of operation we reached a state where we have 3 elements and '1' lies in the middle of these elements , then lets say these elements are a 1 b.

      then if a<b then we can delete 1 from the middle and at the end we will have two elements a b since a < b then we can achieve a single element but when a > b we cannot.

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

    Observation 1: you can't make any operation that decreases the 1st element Observation 2: you can't make any operation that increases the last element If the 1st element is greater than the last elements, then in the best case you'll end up with 2 elements [a1 a2] where a1 > a2. Otherwise there is an easy method to eliminate all but 1 element.

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

    You have to remove the greater element in permutation while you can. If this element become the last in sequence, print YES, if you cannot remove the greater element, print NO. This is the key idea

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

Can someone tell how to solve problem C?

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

Problem setters and testers to all the participants rn:

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

G is a good problem for Div2D?

I guess a subsegment of the problems is reversed before the contest...

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

You will be given 2 hours and 30 minutes to solve 9 problems, and we highly encourage you to read all of them :)

Did they want us to suffer? There is no gap only between A and B, E and F

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

I really need to start thinking in multiple directions before coding. Had I done that I could have solved A much much earlier :(

Leason learnt.

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

Probably should've listened to the Round Feedback.

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

I am pretty much impressed that a trivial thing can be stated in such a difficult way (problem E).

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

Why did you put the easiest problem as G?

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

E killed my will to live, how to solve that?

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

What was the approach for A? Felt like I was over-complicating it

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

if(CF Rounds==Ad-hoc Problems)

cout<<"100% true";

else

cout<<"0% true";

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

Can anybody tell how to do D problem ?

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

Solution for A B C D:

A:

for _ in range(int(input())):
    am = int(input())
    arr = list(map(int,input().split()))
    for i in range(am):
        arr[i] = abs(arr[i])
    for i in range(am-1):
        if (i&1):
            if arr[i] < arr[i+1]:
                arr[i+1] *= -1
        else:
            if arr[i] > arr[i + 1]:
                arr[i] *= -1
    print(*arr)

B:

Check if there is no cells greater than 4

Check if there is no cells next to border greater than 3

Check if there is no corner cells greater than 2

If all option is true, we can do it Like this

2 3 3 2
3 4 4 3
2 3 3 2

C:

If arr[0] < arr[last] answer is «YES»
Otherwise is «NO»

D:

Repeat till array is sorted{
	Find the MEX
	if MEX == n:
		check if array is already sorted
		if no:
			find the first arr[j] != j:
			    arr[j] = MEX
	else:
		place MEX at arr[MEX] 
}
»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Since when was it that, during the System Test phase, only the submissions in queue are marked ? in the Standings page, and those which are not remains showing blue score?

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

15 minutes into the contest: Will make it 2200+ today.
After about an hour and a half: depressed

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

Meanwhile testers after warning us ;)

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

Really nice problems tbh xD Sadly I only solved AB

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

Best 8 minutes at the end of the contest ever:

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

testers were right

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

Can someone share their approach for D? I tried to convert the given array to {0,1,2,3... n-1} in a step-by-step manner, but It was taking more than 2*n operations.

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

    Same with you.

    I always WA on 1. When I implement it right, then it overflows 2n in the last 4 minutes, which I have not got enough time to solve it before the contest is over.

    I think it will have a smarter way to solve it, because the brute step-by-step is very easy to be found out .

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

    I did the same thing, if MEX < n , a[MEX] = MEX , else I made the largest element such that a[i] != i , equal to MEX. I used a set to keep track of largest element and its index

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

ConstructiveForces

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

How to solve F??

I kept on playing as 2nd player and kept on losing on 1000th turn of testcase 1 (or I have not understood the interaction correctly)

My logic was, for every turn (except for the last one) we will check that we do not make the following two situations after adding y to a (assuming the last move was not on a)-
1. a=b or a=c
2. a is the max of the three piles and a-max(b,c)!=max(b,c)-min(b,c)

If these 2 conditions are satisfied, we can add y to a, else we can check for the remaining pile in the same manner. To start off we can start with any pile which satisfies these 2 conditions.

For the last turn, I will only check condition 1.

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

G (tree modifications)

Let's color vertices with red and black so that any edge always connects a red and a black vertex. Then it's easy to note that each operation either reduces a black vertex or a red vertex (makes it the opposite color).

I counted Nred and Nblack and print the answer as min(Nred, Nblack) — 1.

WA6

Where am I wrong in my assumptions?

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

D was a great problem in my opinion.

Approach

Submission

»
6 лет назад, скрыть # |
 
Проголосовать: нравится -6 Проголосовать: не нравится
Give me some hints to solve D please !!
»
6 лет назад, скрыть # |
 
Проголосовать: нравится +401 Проголосовать: не нравится

Why did you host atcoder contest on codeforces?

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

I don't know how many people have encountered this problem, but I spent more than an hour on it and still didn't fix it :(

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

Nobody said to me July 5th is April 1st requiem

it was fun

»
6 лет назад, скрыть # |
← Rev. 3  
Проголосовать: нравится -8 Проголосовать: не нравится
The most Ad-hoc problems A, B, C
»
6 лет назад, скрыть # |
 
Проголосовать: нравится +206 Проголосовать: не нравится

OK, you've warned us, I'm quiet.

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

E was well known to me xD https://artofproblemsolving.com/community/c6h380159p2102937 Kinda obscure source (Baltic Way 2007), but I remembered this as an exceptionally nice problem.

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

I spent one and a half hour to make a huge implementation on c and found the elegant solution just after i solved it smh

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

Cried after seeing the solution of C? Can someone give a proof for this?

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

    Try with copy pen and observe .

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

      You may have solved with observation, but there is a good proof. Here it is-

      After each move the first element is increasing and the last element is decreasing; if in some moment there is only one element and a[0] > a[n - 1], the first element should be equal to the last element, but it's not possible (k = last element, then k >= a[0] > a[n - 1] >= k, absurd) If instead a[0] < a[n - 1], there is always a move because the array is never completely decreasing

  • »
    »
    6 лет назад, скрыть # ^ |
     
    Проголосовать: нравится +8 Проголосовать: не нравится
    1. you can only replace the last element with a smaller one
    2. you can only replace the first element with a larger one
    
    - based on these observation we can conclusion that in case first > last we can do nothing so the answer is "NO".
    
    - in case first < last we can easily find a way to remove numbers from 1 to first-1 and that will make the first element is the smallest in the array .... and obviously when the smallest element is in the first we can reduce the size of the array to 1.
    
»
6 лет назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

What If I resubmit an Accepted code with one line change ?? My solution has been skipped for system testing?

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

1252862

Problem C is one of the sign we humans have reached our advanced civilization.

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

I stucked in B and after the contest when I saw the solution of C of top performers I feel bad for me

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

Fast system testing!

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

Fastest system test.

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

Well, my C story: unsucessfully solving C for 30 min while checking out other problems and trying literally every possible idea on C, checking that C has a ton of solves and I should do something with C, coding and submitting unproven greedy which passed, and after contest finding out that it is just a convoluted way to determine in $$$\mathcal{O}(n)$$$ whether $$$a[0] \lt a[n - 1]$$$.

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

In B i got 5 WA because of

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

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

.

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

Very good conclusion?

Actually,I was deeply surprised when I saw this F and G.

And even I didn't solve the C by the $$$a_1 \lt a_n$$$.

Rather than blame the survey scope of the person who made the question, it's best to regard it as a opportunity to progress.

lol

upd: the data of F is too weak... You can past it even you forgot to judge the "self-kill"...

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

the most frustrating thing is I spent nearly half of the whole competition time on F but didn't get the idea until the last 3 minutes and I didn't complete the code... Anyway, nice contest! thanks the authors and organizers. my rating should increase anyway:p

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

i didnt perform well but contest was amazing.

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

I love the problems in this contest!

Writers and testers thakns!!!

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

nearly 21000 participants registered and only about 8000 solved problem A so either participants are becoming too much conscious about their rating that they don't submit if they didn't solve problem A fast or problems were that tough but i don't think A and B were tough.so its actually the former point

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

85960902 and 85958960 are exactly same solution including macros and comments

85938310 and 85961324 are exactly same solution including macros and comments

Their handle are also same.

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

    Looking on submissions times I can conclude that he tries to avoid rating decrease on main account in such a way. Looks like new cheating technique on CF discovered (actually, modification of "late submission" strategy for multiple accounts).

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

Today's contest came as a rating dropper for me. A didn't click try solving it for 30 min. Did B fast. Didn't notice that a1<an part. Tried solving it in a different way. Got the idea of D completed the code but because of one break statement kept getting wa. Contest got over than saw my mistake. Great contest Bad Day

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

Hey , I received a message that my code matched with someone. I even dont know this guy. Please recheck our codes and give my rating back for this contest .

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

When will the ratings change?

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

Codeforces comment section is addicting.

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

I thought this was code forces, not constructive forces...

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

As soon as I submit a solution, the problem gets locked. I am facing this problem for the past 2 contests. Is there something that can be disabled to solve this issue or it's a bug?

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

    It looks like you locked all the problems around 1:24:00-1:24:30 at slightly different times.

    Was this a scam to make more people add you as a friend? :D

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

    Stop giving your codes to devanshi345 and that might solve the issue. Proof: Devanshi's submission Aman's submission For those wondering how devanshi and aman are relevant, they are siblings. Why would someone make a submission in div3 D and then leave? If you see devanshi's code then you'll see she has added 1 to some variable and then subtracted 2 in the very next line and she has done this twice, you obviously know why. Also I didn't jump to the conclusions directly by looking at one code but I have been observing them closely and have a lot of other codes as proof. Just see devanshi's and aman's submission times for the past few contests, quite strange right? Exposing them won't benefit me and I'm wasting my time and know that well so if anyone has any advice in this context then please stfu and do your job. I felt good after writing this comment and don't care if I wasted my precious 5 mins.

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

Codeforces predictor showed that I was going to get 66 rating, but I only got 64. I feel scamed :(

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

    Oh, I see these 2 points in your case meant a lot :D Congrats on approaching to red zone!

    Rating prediction is inaccurate because CF doesn't provide "true" rating for new accounts. If I subtract 2-3 points from a rating prediction for every person, would this make contestants happier?

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

OMG

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

seems that increasing ratings are getting less and less if you do the same amount of problems in each contest.

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

Could anyone tell me the solution of the A :((

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

The Integer Game question was one of the best and greediest interactive questions I have seen on CodeForces.

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

As a contestant i increased my rating!! Thank you for this great round!!

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

What a good contest! This contest is involving many knowledge points, like constructive, constructive and constructive, or guess one conclusion, second conclusion, and third conclusion. That's fantasitic, isn't it?

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

The contest would've been better if not all questions were of similar category.

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

Congratulations to the t-shirt winners!

List place Contest Rank Name
1 1375 1 tourist
2 1375 2 scott_wu
3 1375 3 yosupo
4 1375 4 Um_nik
5 1375 5 heuristica
6 1375 6 lqs2015
7 1375 7 heno239
8 1375 8 Motarack
9 1375 9 zeronumber
10 1375 10 Itst_boyfriend
11 1375 11 LayCurse
12 1375 12 Golovanov399
13 1375 13 mrscherry
14 1375 14 EnEm
15 1375 15 conqueror_of_tourist
16 1375 16 Swistakk
17 1375 17 hos.lyric
18 1375 18 ohweonfire
19 1375 19 ksun48
20 1375 20 DmitryGrigorev
21 1375 21 TLEwpdus
22 1375 22 HashimotoNanami
23 1375 23 Sulfox
24 1375 24 stevenkplus
25 1375 25 neal
26 1375 26 Amoo_Safar
27 1375 27 sunset
28 1375 28 SirShokoladina
29 1375 29 kort0n
30 1375 30 zylber
53 1375 53 KayacanV
95 1375 95 PavelKunyavskiy
128 1375 128 aid
145 1375 145 sugarrr
154 1375 154 peti1234
173 1375 173 Pyqe
175 1375 175 SoMuchDrama
210 1375 210 rotavirus
219 1375 219 Rahul
239 1375 239 adurysk
247 1375 246 MonkeyKing
270 1375 270 PogosovArseny
277 1375 277 shenxy13
292 1375 292 hyeon_gyu
360 1375 360 ollpu
433 1375 433 QCFium
439 1375 439 QieziMin
447 1375 447 MinhazIbnMizan
481 1375 481 Kapusha
498 1375 498 SeehtEntity
»
6 лет назад, скрыть # |
 
Проголосовать: нравится +31 Проголосовать: не нравится

instead of calling this contest as global round 9, rename it to constructive algo contest

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