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

Автор arvindf232, история, 4 года назад, По-английски

UPD: The round has been rescheduled to a different time due to a clash with a CodeChef contest

Hello CodeForces!

Me, p0tato and __jk__ are excited to invite you to participate in Codeforces Round 822 (Div. 2). It will start at Sep/23/2022 15:05 (Moscow time). The round will be rated for everyone with less than 2100 rating. You have 2 hours to solve 6 problems. Please note the unusual start time.

We would like to take this opportunity to thank everyone who have contributed to our round:

We look forward to seeing you on the leaderboard!

UPD: Score Distribution: 500 — 750 — 1250 — 2000 — 2250 — 3250

UPD2: Editorial

UPD3: Winners!

Div 1 + 2:

  1. GOI_Official
  2. Um_nik
  3. solar_tree
  4. Second_Brave_Niuniu
  5. hitonanode

Official:

  1. GOI_Official
  2. solar_tree
  3. Second_Brave_Niuniu
  4. Sand_Emperor
  5. steven14414
  • Проголосовать: нравится
  • +370
  • Проголосовать: не нравится

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

As a co-author, the problems are nice and I recommend everyone to join this contest!

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

Ooh, a very early announcement. This should be good news.

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

Hopefully I will solve two problem this time. All the Best to everyone .

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

Yaay

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

Very excited to participate, gl everybody

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

My rating is 822. solar_tree

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

CodeChef Lunchtime is clashing with this round. After a long time, CodeChef is having a rated contest for div 1. I think many of us want to participate in both the contests so could you change the date or timings of the round (if possible)?
arvindf232 p0tato __jk__

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

As a tester... I have nothing to say other than good luck.

-QuangBuiCP

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

in last div 2, i did question 1 very quickly,i figured out question 2 quickly 2 and coded it but wasted my 1 hour just coz i had a wrong value assigned to a variable, made wrong submissions many times, and question three which was very easy i could not figure it out coz i wasted my energy alot on the second one. this is me in literally every contest and im even loosing hope now.can someone please guide me how to fix these issues, i can never maintain pupil due to these sillly mistakes.

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

Hong Kong Round! Support!

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

As a participant, I will participate in this competition to improve my strength

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

I hope reach CM after this contest ಥ⁠‿⁠ಥ

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

lucky

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

Plz keep the original starting time but re-schedule to a different day

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

Oh,Very excited to participate .

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

The contest has been preponed. Do not miss it! All the best everyone!

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

Respect++ For respecting codechef :)

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

i hope get delta >= 5

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

Good luck everyone.

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

sad for west coast :’(

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

Just noticed the contest was preponed.

I think postpone is far better than prepone. Many people registered the contest and back online on the time the contest was scheduled. prepone could make them miss the contest, but postpone won't.

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

As a uni student who would have been unable to attend this contest due to it being during my classes, I am very grateful for this opportunity.

(Yes it would be 5am in my local time, but I literally don't care.)

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

Can you help us ? here -- > World War III will begin D:

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

Why is cf accomodating for codechef and not the other way around?

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

As someone waking up at 4:30 to do this contest, please let me solve ABCD.

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

codeforces are very kind for programmer who rescheduled their contest timing because of codechef contest time at same time.

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

Codeforces Language Picker -- chrome extension to fix codeforces language picker.

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

20:05-22:05 UTC+8 is friendly to Chinese!

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

finally, the contest at 9 pm

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

3250.

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

I like this Score Distribution : 500 — 750 — 1250 so much

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

I hope I become expert in this contest... :)

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

UPD: Resolved thanks!

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

My calendar didn't reflect the time update, I am wondering whether I registered from a wrong source. If anybody's calendar works correctly pls let me know, thanks!

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

I happen to be one of the unlucky guys who missed this round because of the prepone. I came online just to find that the contest has already started... Perhaps changing the date might be a better idea than preponing in such short notice?

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

What the hell....I missed this contest :(

Didn't even received a mail about time change.

congratulations to all who will get positive delta due to this time change, not in my wildest thought had I even thought this way of improving rating. I hear "CHECKMATE" from admin.

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

Why is Codeforces such busy today? Even m1,m2,m3 are sometimes busy. But this contest is surely pretty good.

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

Someone solved E in 3 min. That is insane

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

It was a nice contest. i am waiting for a day when i will be able to solve div2 D.

is there anyone who can tell me how to approach problem D?

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

    I used two pointers approach.

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

How to solve E?

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

    I solved it like this. I'm not entirely sure why this worked. 173206034

    Edit: See Shisuko's post below. That's why this worked.

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

    For this proof, we assume that the matrix is $$$0$$$-indexed, i.e. $$$0 \leq r \lt n$$$ and $$$0 \leq c \lt n$$$. Also, note that this is exactly the same as OleschY's solution shown above with the really nice visual diagram. So just read this if you're interested in a proof of correctness haha

    Note that the condition is equivalent to saying a[r1][c1] - a[r1][c2] != a[r2][c1] - a[r2][c2] (mod n). Let d_{c1, c2}(r) = (a[r][c1] - a[r][c2]) mod n; for a fixed (c1, c2), we want d_{c1, c2} to be distinct for different input values of r. But now we can see that we are very limited---there are n possible values of r, but also n possible different outputs of the function. So we want this d_{c1, c2} to be some permutation of 0 to n-1.

    Let's set the matrix such that a[r][c] - a[r][c+1] = r always holds. Then, note that this implies (by induction or whatever) that d_{c1, c2}(r) = (c2 - c1) * r mod n. But if (c1, c2) are fixed, then (c2 - c1) is just some nonzero constant, and because n is prime, we know that d: r -> kr mod n is a permutation for any nonzero k.

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

In problem C, why can't we just choose k=1 every time? S must contain a number multiple of k=1 and this/any number can therefore be removed with cost k=1.

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

Problem D has the same idea with Circle Eating in Codechef. But in codechef contest, only 8 people get AC in contest, otherwise there are over one thousand people pass pretests in Codeforces Contest! It's amazing.

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

Thank you so much for problem E! I (don't) wish you good health, love, high esteem and respect from loved ones, achieving your dreams to infinity, happy life, have magical moments and memories, and obtain what you really want, because that is the only way to fulfillment, realization and happiness!

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

Why is My Submission to D failing test case 10 :( . Can anyone explain? Thank you!

Code : 173206067

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

I don't know why Codeforces is really laggy today, even m1.codeforces. By the way, can somebody tell me a case where I got the wrong answer on Problem D. I got WA on 3rd pretest. Thanks alot <3 <3 <3 Here is my submission: 173222229

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

Why my code of problem D wrong answer on Test #3? Can someone tell me? Thanks!

173220801

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

Dear MikeMirzayanov, Why are we penalized with a -50 for resubmission when the site goes down? I got -150 due to unwanted resubmission when the site went down.

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

Good round but I didn't manage to write D:( can someone please give the failing testcase? I will be glad if someone could help me

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

Dumbass me trying to use Fenwick tree for D...

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

Because of the Website issues, In problem B the same code got judged twice and I got -100 so is there any solution or anyone got the same problem? 173177338

173176654

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

i've done the solution for D and it passed the sample tests but i ran out of time and couldn't submit , i hope it gets WA after the system tests because i'd be so mad if it got AC

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

    How you did C ?

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

      it is the same idea of sieve of eratosthenes , iterate over the string and if the current number (let it be num) needs to be deleted the the i should iterate over the multiples of that number (let it be j) and take the minimum cost to delete that j which is min(mnCost[j] , num) i should break when j is multiple of num but j cannot be deleted from the set as i won't be able to do this deleting operation using this num in the future look at my code for more clarification

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

https://youtu.be/bOizr3O0elA

This channel posted correct solutions of A & B during the contest and many participants would have seen this. Due to this, the rankings would be skewed and would lead to an unfair contest, please do something regarding this.

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

estimated rating of C?

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

Can this submission for problem F be hacked?

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

I am a shit and I didn't solve C,though C is very easy.

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

This lucylu guy were in my room-213..

when I was going to see his/her code at contest time. I was shocked!! Just try to unserstand what those line indicate.... Submissions are:

1734A

1734B

1734C

1734E

I think to makes code unreadable to others is nothing but scam..

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

I get very angry because of the time of this round.

I turned on my computer at 22:15(utc+8) and it is already over.

It's a good idea to put off it. But U chose to make it earlier. That's one of the worst decisions U can make.

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

:/

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

nice problems! orz arvindf232, p0tato and __jk__

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

why the fuck am I missing D by an inch every single contest !!!

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

May I ask why the data range of problem C is $$$10 ^ 6$$$, but $$$O(N \sqrt{N})$$$ time complexity can pass? I can't understand it.

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

Why did this brute force code get AC after the system test? Is it wrong or right?

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

How can I view the 2839th token of problem D test 3?

Or could someone tell me where's wrong in my solution :(

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

Why my code of problem D wrong answer on Test #3 [60th token] ? Can someone tell me? Thanks! https://mirror.codeforces.com/contest/1734/submission/173229017

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

Can Someone explain me the time complexity of problem C? What will be the expression in big O notation?

I thought it will give TLE but it didn't ╰(*°▽°*)╯

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

Problem D video Editorial

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

Estimated rating of D anyone?

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

I didn't play well in this contest, so I hope I can cheer up in the next consest. ^_^

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

I’m leavin' my name here 'cause it’s the first contest I participated in. And I even got a rating rise!

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

Is it confirmed that GOI_Official is an individual participant? I find it quite incredible that they solved ABCDE all within a span of fifteen minutes. This includes a submission at 9m12s for D (WA test 3), followed by the first submission for C at 9m50s (AC) and then a second submission for D (AC) at 10m41s. This really gives me the impression that it likely involved at least two programmers coding in parallel.

There is also a slight inconsistency in their submission formatting. Submissions for A and D (173165060 173171017 173172113) include a header with the problem names and links, but these are missing in the submissions for B, C, E, and F (173169227 173171420 173175699 173185632). All submissions have the following two lines:

//author: wuge with noi2022 cu
//https://www.luogu.com.cn/team/48234

I would guess that noi2022 refers to a National Olympiad of Informatics (CU might be the institution?), which generally involves a team (wuge might be the team name?), and the link below (which seems to be inaccessible in my region) has "team" in its url.

If it is the case that this user is actually representing a team, where different members of the team were able to code in parallel, I don't think this is within contest regulations (which required the user to register "as an individual participant"), so they should not be included in the official standings then. Of course, I don't know for sure that the user represents a team, but I think this should be investigated.

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

    In fact Wuge seems to be a CPer's name,And in NOI2022,he actually got the bronze medal.

    I agree on your guessing,I think two CPers worked together,and one solved AD,another solved BCEF.

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

    U R probably right. It's imposisible to code at such a speed.

    They may share something, including read() and main() and the name of function meyi(). But A&D have a header. That is different. The time is also strange.

    GOI is a team. They hold a contest in luogu(a famous OJ in China), and it turned out to be a mess.

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

    Luogu is an OJ in China, and that url is a team of it.NOI is the Olympaid contest of China (Its whole appellation is National Olympaid in Informatics.) and cu is the symbol of copper, it means copper medal.

    That code and the time is quite strange, but the code mentioned a code editor called CP editor. There are also some strange variable names like shaya and wugecu. They look like Chinese Pinyin. Is that the editor's feature?

    Also, CP means couple. So is CP editor an editor that allow two persons code together? I think it is NOT individual, too.

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

Why do we care for codechef:(

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

Why not unrated?

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

asghar dar kamin ast!!!!! asghar is lurking!!!!!! Асгар в бегах!!!!!!