Vladosiya's blog

By Vladosiya, history, 7 months ago, translation, In English

Hello! Codeforces Round 950 (Div. 3) will start at Jun/03/2024 17:35 (Moscow time). You will be offered 6-8 problems with expected difficulties to compose an interesting competition for participants with ratings up to 1600. However, all of you who wish to take part and have a rating of 1600 or higher, can register for the round unofficially.

The round will be hosted by rules of educational rounds (extended ICPC). Thus, solutions will be judged on preliminary tests during the round, and after the round, it will be a 12-hour phase of open hacks. After open hacks all accepted solutions will be rejudged on successful hacks.

You will be given 6-8 problems and 2 hours and 15 minutes to solve them.

Note that the penalty for the wrong submission in this round is 10 minutes.

Remember that only the trusted participants of the third division will be included in the official standings table. As it is written by link, this is a compulsory measure for combating unsporting behavior. To qualify as a trusted participant of the third division, you must:

  • take part in at least five rated rounds (and solve at least one problem in each of them)
  • do not have a point of 1900 or higher in the rating.

Regardless of whether you are a trusted participant of the third division or not, if your rating is less than 1600, then the round will be rated for you.

Problems have been created and written by our team: myav, Gornak40, senjougaharin and Vladosiya.

We would like to thank:

  1. MikeMirzayanov for help with ideas and Polygon and Codeforces platforms.

  2. Be_dos, Dominater069, 74TrAkToR, BucketPotato for red testing.

  3. KseniaShk, cry, tolbi, ScarletS, nskybytskyi, sevlll777 for yellow testing.

  4. mahdi.hasnat, Phantom_Performer, mainyutin for purple testing.

  5. natalina, FBI, Kopite, MADE_IN_HEAVEN, mz1 for blue testing.

  6. Romakolesn for cyan testing.

Good luck!

P.S.: We are aware of the error that occurred while updating the ratings for Educational Codeforces Round 166. It will be fixed before this round. UPD: We fixed it!

UPD: Editorial is out!

  • Vote: I like it
  • +193
  • Vote: I do not like it

»
7 months ago, # |
  Vote: I like it -39 Vote: I do not like it

first one to commment on this blog hhh.i hope the round will be interesting so everyone can enjoy it.

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Date and name of the round is incorrect or is it only me who is seeing round 925 instead of 950

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Can anyone explain me how penalty works in Div 3. "Note that the penalty for the wrong submission in this round is 10 minutes.", I am confused what this 10 minutes means.

  • »
    »
    7 months ago, # ^ |
    Rev. 2   Vote: I like it +15 Vote: I do not like it

    it's the penalty for a wrong submission in this round

  • »
    »
    7 months ago, # ^ |
      Vote: I like it +21 Vote: I do not like it

    In Div. 3 the most important thing is the number of solved problems. If 2 participants have the same number of problems solved, then a "penalty" is computed for each of them. The penalty is the sum over the solved problems of the number of minutes from the begining of the contest up to the accepted submission (I think that if you send 2 or more accepted submissions then the last one is the penalty giving one).

    Penalty can also be accumulated by making wrong submissions, i. e. 10 minutes/penalty points per submission. Thus if you submit 3 wrong submissions and a correct one after 50 minutes from the start of the contest, your penalty will be $$$3 * 10 + 50 = 80$$$ for this problem. Do this calculation for each problem, sum the penalty and you get your total penalty.

    It is best to have small penalty (i. e. solve problems fast with less errors).

    • »
      »
      »
      7 months ago, # ^ |
      Rev. 4   Vote: I like it +25 Vote: I do not like it

      (I think that if you send 2 or more accepted submissions then the last one is the penalty giving one).

      Actually, every submission after the first accepted one does not count, so the penalty is (the number of wrong submissions before the first accepted submission) * 10 + (the time in minute the first accepted submission was made). This is why you can freely submit multiple solutions if you have any doubt in your previous accepted solution without worrying about the penalty in Educational / Div. 3&4 rounds (as opposed to normal Div. 1 or 2 rounds where the earlier solutions become WA penalty).

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      If we had submitted 2 wrong answers for a problem and are unable to get an accept verdict for it then how much pentaly would be added.

»
7 months ago, # |
  Vote: I like it +2 Vote: I do not like it

Hopefully last rated div 3 for me

»
7 months ago, # |
  Vote: I like it -9 Vote: I do not like it

Please fix the ratings for Educational CF Round 166 as soon as possible, the ratings were changed till 14,000 (approx), what about others? Thank you for your efforts!

»
7 months ago, # |
  Vote: I like it -38 Vote: I do not like it

Hi, MikeMirzayanov. Please reply my comment.

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Excited for the milestone Codeforces Round 950! A big milestone for the community! :)

  • »
    »
    7 months ago, # ^ |
      Vote: I like it +2 Vote: I do not like it

    you're 50 rounds too early

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Setting problems for each of the 950 rounds is not an easy task. It's worth celebrating every milestone. Big thanks to all the problem setters, authors, testers and MikeMirzayanov!

      • »
        »
        »
        »
        7 months ago, # ^ |
          Vote: I like it -7 Vote: I do not like it

        bro is teaching an expert about problem setting (aura -1000)

        • »
          »
          »
          »
          »
          7 months ago, # ^ |
            Vote: I like it +17 Vote: I do not like it

          Anyways, he is right. Problem setting is a hard task

          • »
            »
            »
            »
            »
            »
            7 months ago, # ^ |
              Vote: I like it 0 Vote: I do not like it

            ik he is right, i have done problem-setting in few clg contests, but what's the sense of celebrating 950 ? has he been celebrating each round if that's the case

            • »
              »
              »
              »
              »
              »
              »
              7 months ago, # ^ |
                Vote: I like it 0 Vote: I do not like it

              You are right, but you wrote about problem setting, so I commented about that.

»
7 months ago, # |
  Vote: I like it +70 Vote: I do not like it

I like when FBI tests the round ! I feel more secure

»
7 months ago, # |
  Vote: I like it -13 Vote: I do not like it

Problems are getting more difficult these days. I can solve at most B in div-3, div-2. Are testers creating more difficult questions? Previous questions were easier than recent ones, and question difficulty was according to Div, but now the scenario has changed.

  • »
    »
    7 months ago, # ^ |
    Rev. 2   Vote: I like it +25 Vote: I do not like it

    As the problems change and adapt, we too must become stronger and evolve into more superior problem solvers

                 (\__/)
                  (UwU)
              _ノ ヽ ノ\_ 
            / `/ ⌒Y⌒ Y  \
            (  (三ヽ人  /  |
            | ノ⌒\  ̄ ̄ヽ  ノ
             ヽ___>、__/
                |( 王 ノ〈 
                 /ミ`ー―彡\ 
                / ╰    ╯ \
    

    POST CONTEST UPDATE: i did not in fact get any stronger ;-;

»
7 months ago, # |
  Vote: I like it -12 Vote: I do not like it

احلى مسا عليك ياعم vladosiya يلي مصر كلها بتستناك تنزل بالديفاية

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Will surely try to cross and reach pupil in this round!<3

»
7 months ago, # |
  Vote: I like it -17 Vote: I do not like it

Hope to reach pupil in this round ^^ .

»
7 months ago, # |
Rev. 2   Vote: I like it -15 Vote: I do not like it

Please pray for my friend to be blue in this contest. Best of luck Mahi vai

»
7 months ago, # |
  Vote: I like it -11 Vote: I do not like it

hoping to return back the blue handle

»
7 months ago, # |
  Vote: I like it -12 Vote: I do not like it

Good luck guys

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

another round, another reality check for me

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Aim to reach pupil.

»
7 months ago, # |
  Vote: I like it -38 Vote: I do not like it

To be honest in Div 3 its more difficult to increase rating than Div2 as in Div 2 you solve 2-3 problem is equivalent to solve 4-5 problems in Div3 and I think its also the case that many high rating people give it with their fake accounts.

  • »
    »
    7 months ago, # ^ |
      Vote: I like it +79 Vote: I do not like it

    have you considered that maybe the problems are easier?

  • »
    »
    7 months ago, # ^ |
      Vote: I like it +11 Vote: I do not like it

    Statistically, and for reasons it's the opposite; lower divisions are easier to gain rating due to new accounts usually being overrated (note that the performance is calculated based on effective rating, not displayed rating).

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    -39 :(

»
7 months ago, # |
Rev. 2   Vote: I like it +10 Vote: I do not like it

People are often excited about their first unrated Div3. But I'm excited for my first rated Div3 as an expert. Good luck to all the participants!

Edit : They probably did me unrated haha, all good!

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    they unrated me too lol. tfw you can't div 3 abuse as an expert

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Good luck to everyone!

»
7 months ago, # |
  Vote: I like it +1 Vote: I do not like it

Hurray!!! my 100th contest. lets see how it goes fingers crossed

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Good luck everyone!

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

I am not sure I understand the participation rules. I recently hit 1600, but I do meet both criteria for being a trusted participant. However, when I enter the contest, it shows me "Out of competition".

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    I also wonder why the 'official standings table' only seems to show people under 1600.

    It even states '[trusted participants only]' when I uncheck 'show unofficial', while not showing contestants ranked [1600,1900), so there seems to be some mismatch between the definition used by the standings and the one in the announcement.

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it +4 Vote: I do not like it

      If I understand correctly, to be in the official standings table you need to currently be in below 1600 and never have been above 1900. This is probably to allow people who briefly used to be expert but not people who were much higher at one point

      • »
        »
        »
        »
        7 months ago, # ^ |
        Rev. 2   Vote: I like it 0 Vote: I do not like it

        Interesting, thanks!

        Doesn't that mean that a contestant with top rating of 1900+ and current rating below 1600 will somehow both be rated and unofficial at the same time?

        Edit: Oh, I guess it would not be that weird, since e.g. new accounts would be in the same boat. Still pretty funny to have unofficial participants who are rated.

        • »
          »
          »
          »
          »
          7 months ago, # ^ |
            Vote: I like it 0 Vote: I do not like it

          It's not unofficial, it's "trusted" which basically means that the person belongs in a div 3 contesr

          • »
            »
            »
            »
            »
            »
            7 months ago, # ^ |
              Vote: I like it 0 Vote: I do not like it

            I mean unofficial as per the 'show unofficial' checkbox on the standings page. So if you wanted to see only the rated contestants, there's no easy way to do so, right?

            • »
              »
              »
              »
              »
              »
              »
              7 months ago, # ^ |
                Vote: I like it 0 Vote: I do not like it

              Actually a good question which I unfortunately can't answer

»
7 months ago, # |
  Vote: I like it +30 Vote: I do not like it

YES NO forces

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

I am too dumb to understand the problem statement of problem C...

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    I understood the problem and when I build the approach, on checking the test cases I find out I was wrong and then tried again the same thing, similar things happened 4 to 5 times and now I think the test cases are wrong

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      i asked the authors,, "what is suitable sequence???"

      they replied,, "It is the sequence which satisfy the problem statement"..

      && it was very helpful....

    • »
      »
      »
      7 months ago, # ^ |
      Rev. 2   Vote: I like it +18 Vote: I do not like it

      one thing you learn the hard way: it is almost always you who are wrong, not the testcases

»
7 months ago, # |
Rev. 2   Vote: I like it -34 Vote: I do not like it

How terrible problems to me!I should rest to think myself.

  • »
    »
    7 months ago, # ^ |
      Vote: I like it +18 Vote: I do not like it

    couldn't solve == terrible problems

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it +4 Vote: I do not like it

      You are right.Perhaps it's due to losing too many points and having a bad mentality.I should pay attention to my own problems

»
7 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

MAYBE hashmapForces

»
7 months ago, # |
  Vote: I like it +5 Vote: I do not like it

Excited to see the forest.

  • »
    »
    7 months ago, # ^ |
      Vote: I like it +36 Vote: I do not like it

    what competitive programmers think outside is like

»
7 months ago, # |
  Vote: I like it +17 Vote: I do not like it

Firstly ,i loved the problems but there might be too many problems of high difficulty, spent a lot of time solving F2 which was fun in its own way and didn't have any time left to read problem G.

»
7 months ago, # |
  Vote: I like it +8 Vote: I do not like it

F2 and G are nice simple to understand and practice some techniques. Overall round feels quite hard for rated participants

»
7 months ago, # |
  Vote: I like it +12 Vote: I do not like it

Miss G by just 1 second. Emotional damage

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

What was the intuition behind E?

  • »
    »
    7 months ago, # ^ |
      Vote: I like it +1 Vote: I do not like it

    The rows and the columns of b must be permutations of the rows and the columns of a. If you think about it, when you switch columns, you are just changing the order of the rows and when you switch rows, you are changing the order of columns.

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Thanks

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      what is time comlpexity to find vector in set if vector is sorted?

      • »
        »
        »
        »
        7 months ago, # ^ |
        Rev. 2   Vote: I like it -19 Vote: I do not like it

        In general. Time complexity for finding in a set is :

        O(log(N) * F(M))

        where F(M) is the time needed for comparing two objects of class M.

        In the case in an integer, it is just 1.

        But in the case of a vector, this is the size of the vector as you compare elements one by one, so you need to iterate over all the elements in the set.

        It doesn't matter whether the vector is sorted or not, what only matters is the time needed for the compare you do, which is O(#of vector elements).

        This is the case in strings as well.

  • »
    »
    7 months ago, # ^ |
      Vote: I like it +1 Vote: I do not like it

    when swapping rows , u will swap the entire rows , when swapping columns , u will swap entire columns...

    so elements in same row will tend to remain in same row and elements in same column will tend to remain in same column...that's all..

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      So won't taking the sum of each row and column and then checking whether those sum exists in both suffice?

      • »
        »
        »
        »
        7 months ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        you can see my code , it is quite clear ig.. I created two maps , first one for storing rows corresponding to every element in b and second one for storing columns for every element in b...

        I just iterated in matrix A twice , first row wise and then column wise

        when i iterated row wise , I checked that every element in the same row of a matrix should have the same row in b as well (I already have the rows of every element in b matrix pre-computed)

        Did similar for columns as well...

        264014966

        • »
          »
          »
          »
          »
          7 months ago, # ^ |
            Vote: I like it 0 Vote: I do not like it

          Thought of a similar approach first but believed it would give tle.

          Thanks

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    fix first row and first column of b.

    then check others

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Can you elaborate a bit more on this?

      • »
        »
        »
        »
        7 months ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        If you fix the 1st row. You cant make any column swap later, because any kind of column swap will change your 1st row.
        Do same for 1st column.
        Then you can't swap anything else.
        You can just check weather you got the sequence or not.

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

I spent 85 minutes on Problem E and cannot find the error: **** int main(){ ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); ll t=1; cin >> t; while(t--) { ll n,m; cin >> n >> m; ll r1[n],r2[n],c1[m],c2[m]; for (ll i=0;i<n;i++) { r1[i]=0; for (ll j=0;j<m;j++) { if (i==0) c1[j]=0; ll x; cin>>x; r1[i]+=x; c1[j]+=x; } } for (ll i=0;i<n;i++) { r2[i]=0; for (ll j=0;j<m;j++) { if (i==0) c2[j]=0; ll x; cin>>x; r2[i]+=x; c2[j]+=x; } } sort(r1,r1+n); sort(r2,r2+n); sort(c1,c1+m); sort(c2,c2+m); bool flag=true; for (ll i=0; i<n;i++) { if (r1[i]!=r2[i]) { flag=false; break; } } for (ll i=0; i<m;i++) { if (c1[i]!=c2[i]) { flag=false; break; } } if (flag) { cout<<"YES\n"; } else { cout<<"NO\n"; } } return 0;

  • »
    »
    7 months ago, # ^ |
      Vote: I like it +1 Vote: I do not like it
    1
    3 3
    9 3 7 
    1 6 8 
    5 2 4 
    4 5 6 
    7 9 3 
    8 1 2
    

    Your Answer: Yes

    Correct Answer: No

»
7 months ago, # |
  Vote: I like it +19 Vote: I do not like it

CODEFORCES wants us to communicate only in YES and NO

»
7 months ago, # |
  Vote: I like it +3 Vote: I do not like it

E<C<D

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

this was my first contest im unrated I did solve 1 problem and I'm still unrated will I get rated after this

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    you will

    It will take around 12 more hours

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    you can expert roughly 20 hours or something because system testing usually takes 3-4 hrs or something and it starts after 2-3 hrs after hacking phase too

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Thanks for the reply

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      this was my first contest too, I am still unrated, is it just me? or are the ratings not out yet?

      • »
        »
        »
        »
        7 months ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        the submissions are still being judged. you may expect ratings to come out in 3-4 hrs.

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Can someone explain why the answer to problem C in test case N5 is 'yes'? As I understand it, modifications should be applied in the same order, so all the modifications will be used on the first number, leaving no more modifications for the rest of the array.

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    It can be used on any number. Just last element in $$$D$$$ should be present in $$$B$$$

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      I thought all the previous modifications should be used before applying the last one. But thank you anyway.

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Yeah, this is what tripped me up too; from my perspective, either the order doesn't matter and test case 4 should also be YES, or order does matter and both test cases should be NO

    I spent more time trying to figure out what was actually going on than working on the initial solution, only to not get it right anyways .-.

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    You can use the following $$$c$$$.

    [3, 3, 5, 1, 1, 4, 2, 1]

    If you apply that and $$$d$$$ to $$$a$$$, you should get $$$b$$$. Try it.

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      The announcement said that all operations must be applied to the array in the given order. I thought that C should be 1, 1, 1, 1, 1, 1, 1, 1 to make the first number 4, but that way I couldn't make any other modifications to the array. Anyway, I understand it now and I got accepted after knowing how the modifications work.

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

I think E was too easy to be a Div 3 E. Loved solving F1. Thought F2 was on similar lines of F1 but it was actually way more difficult. Overall a nice problem set!

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

If people didn't go for sequential solving, then E would be hugely accepted in this round.

»
7 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

are you kidding me , this happend with me again, solved F just after 15 mins contest ends.(same happend in round 949)

Spoiler
»
7 months ago, # |
  Vote: I like it -13 Vote: I do not like it

Here is a video Solution for Problem F

»
7 months ago, # |
  Vote: I like it +4 Vote: I do not like it

Very cool problems for education, and according to today's DEFG and some recent Div3s, I think the problems are hard enough to make the round rated for Experts.

  • »
    »
    7 months ago, # ^ |
      Vote: I like it +1 Vote: I do not like it

    Agreed. But had experts knew it would be rated they'd approach round slightly differently

»
7 months ago, # |
  Vote: I like it +3 Vote: I do not like it

I don't have much experience with Codeforces, does anybody know what rating we could expect for problem C?

(I know that it won't be released for a few days, I just want to have an idea; I don't know if it's closer to 1000 or to 1800)

  • »
    »
    7 months ago, # ^ |
      Vote: I like it +12 Vote: I do not like it

    Maybe around 1100.

  • »
    »
    7 months ago, # ^ |
      Vote: I like it -18 Vote: I do not like it

    I think it would be in range 1100 — 1300. This is fair from my perspective

  • »
    »
    7 months ago, # ^ |
      Vote: I like it +9 Vote: I do not like it

    Not more than 1200 I would say

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    I feel somewhere around 1200, as the problem was a bit heavy in terms of implementation and had 1-2 edge cases to take care of.

  • »
    »
    7 months ago, # ^ |
      Vote: I like it +1 Vote: I do not like it

    You can check on clist

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Oh bruh, I didn't know it came out there already

»
7 months ago, # |
  Vote: I like it +14 Vote: I do not like it

Maybe too noob today, I failed to solve D, and it wasted me too much time and I failed to solve F1 in time:(

Luckily I'm out of competition.

»
7 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

Can somebody please tell me why my solution is wrong? Thanks in advance!

First, I reorder the columns according to the first row, and then check if all rows are same by converting them to string.

»
7 months ago, # |
  Vote: I like it +5 Vote: I do not like it

Really nice problemset! Kudos to the authors and coordinators for creating such an interesting round.

»
7 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

[Sorry, I was dumb and realized that my solution is actually correct, ignore what I said]

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    if the condition is already satisfied without removing any element, then i think you can just remove the last element.

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Huh, but what if I need to remove more than one element?

      • »
        »
        »
        »
        7 months ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        Oh wait, I'm dumb lmao. Sorry all. After I remove it, I check the array after removing immediately to see if any of my removal is good, so there is no way that I will get to the point of removing more than one element

»
7 months ago, # |
Rev. 5   Vote: I like it 0 Vote: I do not like it

Can someone please help me in figuring out what's wrong with my solution to problem C?

https://mirror.codeforces.com/contest/1980/submission/264011923

I am calculating elements in b array which aren't there in a array. Now I check if the elements in this diff are there in d array too (also ensuring that the count of each element in diff is less than its corresponding count in d array). Finally I am checking that there should be at least one element in b which is equal to d[m-1].

Thanks in advance!

»
7 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

E < D for me, lost 1.5h on D unsuccessfully.

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

YES NO YES NO

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

nah pray for expect

»
7 months ago, # |
  Vote: I like it -14 Vote: I do not like it

problem G is nice, too bad i started contest late :(

»
7 months ago, # |
  Vote: I like it +1 Vote: I do not like it

unordered hacks again

»
7 months ago, # |
  Vote: I like it +13 Vote: I do not like it

i was so happy that i got +85 delta. Now 3rd got hacked of unordered :(

»
7 months ago, # |
  Vote: I like it -8 Vote: I do not like it

C > D > E > B >A

»
7 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

I have wrong answer on problem D, and can someone help? I'm tring to solve dinamicaly, maybe my idea is wrong, I don't know for sure. https://mirror.codeforces.com/contest/1980/submission/264027336 this is my code. pls help

»
7 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it
»
7 months ago, # |
  Vote: I like it +13 Vote: I do not like it

Solved 5 problems in Div-3 for the 1st time

»
7 months ago, # |
Rev. 3   Vote: I like it 0 Vote: I do not like it

G using dfs and trie. Don't know why it is getting tle for n*(log10^9) . Maybe because I used java.

»
7 months ago, # |
  Vote: I like it -7 Vote: I do not like it

Failed in this contest desperately (-1000 aura)

It was unrated for me (+100 aura)

Still what did I do :(

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

what was the idea in D

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    You traverse the array, from 2 to n. The first index where gcd(a[i], a[i+1)<gcd(a[i], a[i-1]), you can either remove i-1, i, or i+1. You do all of it, and check if any of them gives you a favourable outcome.

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      bruh, it's just brute forcing all possible ways, and I thought gcd calculation would be a heavy operation and there should be a clever way to solve the problem

      • »
        »
        »
        »
        7 months ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        Well there may be a more mathematical side to the problem, but i guess in DIV3 its about logic and implementation ,however its not true everytime.

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      can you please give me one example when I have to remove i. I am checking i-1 and i+1 only and after changing my implementation it gives correct answer in test 1.

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

YES_NOForces!

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

After a long time, a contest that went well for me :)

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it
  • »
    »
    7 months ago, # ^ |
      Vote: I like it +1 Vote: I do not like it
    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Can you tell me why this code gives invalid input during hacking.

      spoiler
    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Is there any other blog answering same question on python as Using any data structures such as Counter of collections ,sets or dictionaries,all get hacked to show TLE on system testing.

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

How to G(I'm not gonna be making hacks but if ure concerned just dm me instead of replying)

»
7 months ago, # |
Rev. 3   Vote: I like it 0 Vote: I do not like it

I can able to to solve problems till E after the contest with first submission but I can't do that during the contest time.Moreover I feel very shaky and make silly mistakes and blunder during contests. It this my fate / bad luck only or is there any lack of my skills on it?

It there, anyone please help me to overcome this frustrating conduct, share me some tips and strategies if you used to face these conditions before.

Advance thanks to you. May almighty bless you.

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    The solution is actually to take it slow. Even though there is a time limit, obviously, you aren't getting much from being fast if you make mistakes. Whereas if you focus on being slow and steady you make a lot less mistakes while gradually getting faster to the point where you are doing things fast and correct after a lot of practice.

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      So, recommend me the practice way. Do I practice from problemset section or participate in virtual contests? Which will be better for me?

      • »
        »
        »
        »
        7 months ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        You should give virtual contests, since you don't have the fear of making wrong submissions, once you are a little sure you will listen to your gut, that would surely build up your confidence!

      • »
        »
        »
        »
        7 months ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        You need to step it down a bit in regular contests and even if it slightly negatively affects your rating, you will learn a lot. Virtual contests are not a good solution because they do not normally cause the same pressure as regular ones

»
7 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

hello guys , would really appreciate if someone helps me through this , in round 950(Div 3) problem D , my approach was to brute force the implementation of how one element should be removed and then the gcd should be checked . The logic seems right because today I tried to submit the same logic with a slight change of implementation and it got AC . But I'm still unable to understand why was first approach failing.

First approach : to check if the currGcd is smaller than the lastGcd if so remove either ith element or i-1 or i-2 from the original array , did this by marking it -1 and then restoring the ith element that was marked as -1 after the recursive call where I check the gcd of the new array. I'm pretty sure that the mistake is in the -1 marking and restoring the element since its the only part that is changed in AC solution, but I'm unable to think of a case.

Link to the approach : https://mirror.codeforces.com/contest/1980/submission/263995703

Link to the AC approach with slightly different implementation : https://mirror.codeforces.com/contest/1980/submission/264071477

EDIT: Got the mistake it is if the first element has to be market -1 , in that case lst will be 0 according to the first approach , but the gcd of (0,a[1]) would always be a[1] , instead it should be such that I completely ignore the above mentioned gcd since i have removed the element (marked it as -1) so either start the loop in that case from i = 2 of else lst = 1e9 + 7 , prime number grater than any of the possible elements , hence the gcd of them being 1 always which would not hinder gcds

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Amazing contest! Problems were high quality and fun to solve. Thanks a lot for the round myav Gornak40 senjougaharin Vladosiya and all testers!

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Can anyone please explain why Counter of collections in python(pypy3-64)often leads to Time limit exceeded on some questions even though the logic and time complexity is completely fine.(I am really annoyed by this problem as this has happened to me that questions were accepted initially but on larger test cases later,they were hacked or Faced TlE,and if I submitted them on different language like python3.8.10 or submit the same logic in another data structure ,the get accepted.) Ps:I found that it is not the problem only with Counter,but also sets . like in this question 1927C - Choose the Different Ones! ,[submission:245138579]is not accepted ,whereas [submission:245382629]is accepted as sets used are removed to lists.

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

can someone explain why does O(n) solution in C using python dict get hacked?

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Same issue with me as I posted above,I think that python sucks in data structures as it has happened to me multiple times .I sincerely wanted to switch to C++ for coding but I do not have the time for it as i am proficient to write code only in python .I urge Vladosiya to either please clarify or give our solutions fair judgment.

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      same here i only enjoy coding in python and i think our solutions should be getting a fair judgement same as everyone else's, Vladosiya please look into this.

      • »
        »
        »
        »
        7 months ago, # ^ |
        Rev. 2   Vote: I like it 0 Vote: I do not like it

        It's actually Python's fault: first of all, dict is not O(n) it's just average complexity of O(n) because it's a hashmap. But as others mentioned it can get as bad as O(n^2) which can be hacked. C++ has regular map (nlogn red-black-tree) and unordered_map (a hashmap) where the latter can be hacked as well... There is no discrimination against python here and I assume that if you implemented your own red-black-tree in python, even mediocre, you'd not get hacked. What happened here is just Python's problem that it doesn't offer a built-in nlogn stable map by default.

        Edit: you can use OrderedDict in python I think

        • »
          »
          »
          »
          »
          7 months ago, # ^ |
          Rev. 3   Vote: I like it 0 Vote: I do not like it

          OrderedDict is just list of pairs, not a tree map

          UPD: Mistake

          class OrderedDict(dict):
              'Dictionary that remembers insertion order'
              # An inherited dict maps keys to values.
              # The inherited dict provides __getitem__, __len__, __contains__, and get.
              # The remaining methods are order-aware.
              # Big-O running times for all methods are the same as regular dictionaries.
          
          • »
            »
            »
            »
            »
            »
            7 months ago, # ^ |
            Rev. 2   Vote: I like it 0 Vote: I do not like it

            oh, my bad then, thanks

            edit: it's still a hashmap just preserves order so it's not what I thought it to be anyways

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    dict uses hashing, and has worst case time complexity of $$$\mathcal{O}(n^2)$$$ when you insert $$$\mathcal{O}(n)$$$ elements. Counter is a subclass of dict so it's essentially the same. The way to make the worst case is well-known and is almost surely used by the hackers during open hack phase.

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      can you please suggest any alternative for such cases,so that the alternative should do the same logic but in good time complexity?

      • »
        »
        »
        »
        7 months ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        The safest way would be finding a solution that does not use hash-based modules like dict, set, Counter, etc. There are many custom libraries for balanced binary search tree that guarantees $$$\mathcal{O}(log(n))$$$ per operation, or something similar to such structures. If you really need to use hashes, using a custom hash function with randomization would work.

        • »
          »
          »
          »
          »
          7 months ago, # ^ |
            Vote: I like it 0 Vote: I do not like it

          Can you please tell then why konstantin_rokossovsky's solution to 1974C - Beautiful Triple Pairs i.e. 261980102 is accepted?Should it also not face TLE?or the Test cases for testing were not good enough to reject the solution?

          • »
            »
            »
            »
            »
            »
            7 months ago, # ^ |
              Vote: I like it 0 Vote: I do not like it

            Just a small bit of change in the keys invalidates hacks on another keys. I think that is also hackable, but since people don't have all the time it's probably just neglected.

            • »
              »
              »
              »
              »
              »
              »
              7 months ago, # ^ |
                Vote: I like it 0 Vote: I do not like it

              I did not understand,can you please elaborate

              • »
                »
                »
                »
                »
                »
                »
                »
                7 months ago, # ^ |
                  Vote: I like it 0 Vote: I do not like it

                Oh wait, didn't notice that it's from a different problem. In that problem's case the range of $$$a_i$$$ prevents hacks, because for sufficient amount of hash collisions you usually need a wide element range, and in that problem the constraint is only $$$10^6$$$, so it's difficult to produce hacks. I think only Java's HashMap was the only one prone to it.

                • »
                  »
                  »
                  »
                  »
                  »
                  »
                  »
                  »
                  7 months ago, # ^ |
                    Vote: I like it 0 Vote: I do not like it

                  But the constriant for this problem was 2 * 10 ^ 5 for both n and m. So isnt it less than 10 ^ 6? Why did the hack work for this problem?

                • »
                  »
                  »
                  »
                  »
                  »
                  »
                  »
                  »
                  7 months ago, # ^ |
                    Vote: I like it 0 Vote: I do not like it

                  In this problem the constraint on the element's value was $$$10^9$$$, which is far greater than $$$10^6$$$. You need a wide range for the values to make many collisions when the hash's bucket size is large enough to cause significant slowdown.

              • »
                »
                »
                »
                »
                »
                »
                »
                7 months ago, # ^ |
                  Vote: I like it 0 Vote: I do not like it

                Here is example of unhackadle dict: 247436179

                Well, veeeery unlikely to be hacked to be precise

      • »
        »
        »
        »
        7 months ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        https://mirror.codeforces.com/blog/entry/101817

        This was something I learned from this contest. For integer keys in particular, they are easily hackable. Using an XOR on top of your key like this might make it more resilient as mentioned in the linked article.

        Someone else suggests str(key) is also a workable transformation.

        import random
        RANDOM = random.randrange(2**62)
        counter = Counter()
        
        counter[key ^ RANDOM] += 1
        
      • »
        »
        »
        »
        7 months ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        sortedcontainers is the typical starting point.

        • »
          »
          »
          »
          »
          7 months ago, # ^ |
            Vote: I like it 0 Vote: I do not like it

          But there is not any in-built library for sorted containers in python(atleast not for CP,I heard that you have to download it from Github pages for usage on your device.)

          • »
            »
            »
            »
            »
            »
            7 months ago, # ^ |
              Vote: I like it 0 Vote: I do not like it

            Oh, I thought it was available for import on the CF judge, pretty weird that it isn't!

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

First time attempting a contest, although I had made this account a long while back. I gave this contest yesterday and solved 2 questions, but I am still unrated. Can anyone please help me understand why? (Clicking on my contests link, no contests are displayed, but when I filter the search to unrated, this contest shows up). Can anyone tell me what I have to do to make at least the next contests that I give become rated, things are a bit elusive here.

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Don't worry, ratings are just not in yet. They always take a few hours and in the case of this contest we had a 12 hour open hacking phase after the contest itself. The ratings are probably going to be updated later today

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      oh okay thanks. Also right now it shows system testing and all my solutions are in red at the moment, I guess I got them all wrong then :/

»
7 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

Can anyone please this solution for C :- 263941647

why it got hacked by TLE?

  • »
    »
    7 months ago, # ^ |
    Rev. 4   Vote: I like it -7 Vote: I do not like it

    You use Counter in your code. Which depends on the hash to store items.
    The problem with hash is that it can be hacked easily, so the time for one get would be O(N) instead of O(1) resulting in time limit for sure.
    This is also the case in unordered_map in c++, all of the solutions using unordered_map got hacked.

    Tip: Use SortedDict in python instead. It uses red-black tree and the time for get is O(logn) instead of O(1)

    UPD: It turned out that SortedDict is forbidden in Codeforces :(

    Useful Read

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Lesson Learned... Use a prime number to make your Counter/dict/set in python SAFE... The collision problem is very interesting (and honestly quite dirty), but I guess we all (or most of us) have to learn the hard way... It seems quite impractical in real world use to use a prime number (for example in Python I saw someone use p=109008647)... Which will save you from a hack, but again in the real world how useful is it? Probably not much... Unfortunately that means I don't get credit for 1 of my solutions this time around... (Better to learn now than later I guess).

  • »
    »
    7 months ago, # ^ |
    Rev. 2   Vote: I like it -10 Vote: I do not like it

    Good suggestion. But maybe simply using an ordered data structure is better :)

    In python you can use OrderedDict instead of a normal dict, you will get a slightly worse time of O(log(n)) instead of O(1), but you will be much safer overall.

    P.S I am not sure but I think I've read once that this prime trick is also hackable, but I can't remember the methodology.

    UPD: OrderedDict are no good also, never the less, SortedDict is the python equivalent to std::map in c++.

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      I think as OrderedDict is also a hashmap ,it can be hacked as well,and it is also O(1) (and not O(logn)).I do not find any improvements in using OrderedDict instead of Counter

      • »
        »
        »
        »
        7 months ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        You are correct, OrderedDict are no good also.
        Just made a quick search, found that the one I meant is SortedDict

        This one is indeed sorted and takes log(n) per get/delete.

        • »
          »
          »
          »
          »
          7 months ago, # ^ |
            Vote: I like it 0 Vote: I do not like it

          Problem with this SortedDict is that it cannot be used on codeforces. You can only use it locally on your system.Hence,it is of no use as a competitive programmer.

          • »
            »
            »
            »
            »
            »
            7 months ago, # ^ |
              Vote: I like it 0 Vote: I do not like it

            So strange. Any ideas why?

            • »
              »
              »
              »
              »
              »
              »
              7 months ago, # ^ |
                Vote: I like it 0 Vote: I do not like it

              I don't know precisely ,but it is not any standard library that is itself incorporated into python.Instead it was rather a project whose focus was to develop some data structures in python like sorted sets of c++,which are in C++STL,so that they can use it freely during CP.Feels like python is useless where data strucutres are concerned :(

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

I wish I can be Specialist

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Can someone please explain me the in-depth intuition on how to solve problem C, whats concepts are involved?

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    For the array d, we can observe that some elements are useful while others are not. For those elements that are not useful, we wish they could be overwritten. That is, for the current element, if it is useful, then the useless elements before it can be moved here and subsequently overwritten by the useful element. Ultimately, we need to check whether array a has transformed into array b, and at the same time, there are no useless elements left.

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    The essence is that you can customize the first index for each pair of the "modification operations". Your job is to Restore the array as much as possible...by customizing wisely. Used Google Translate, my English is not good

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Most importantly we need to transform the original into the target, so for every position where they differ we need one operation with value specified by the target array. If there aren't enough, then it's impossible.

    If there are enough operations, we still need to make sure all the other operations don't destroy our progress. We know we can do multiple operations on a single index, which allows us to overwrite unnecessary/bad operations. So we look at the last operation. If the value doesn't exist in target, then we for sure cannot end up with target since it will be written at some index. Otherwise, all the unnecessary/bad operations can be overwritten by the last operation and we're happy.

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Hi, i failed to solve problem C. Can someone help me what am i doing wrong? Its giving tle for hidden tc 7

(Python User) here is my code

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    it's correct code. You have TLE. On this task problems with TLE on python

    • »
      »
      »
      7 months ago, # ^ |
      Rev. 2   Vote: I like it 0 Vote: I do not like it

      i still cant understand why because similar codes got accepted but my code is failing.

      like for this submission code is ac and for my code where i also made some changes thinking that it will be ac code is still having tle on tc13. Can you tell why so

      • »
        »
        »
        »
        7 months ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        system test is not already end

      • »
        »
        »
        »
        7 months ago, # ^ |
        Rev. 2   Vote: I like it 0 Vote: I do not like it

        on this problem some people use dict or Counter which the time gets for it O(1) instead or OrderedDict with O(log(n)). Solution with OrderedDict are not hacked

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    try pypy, that being said even my pypy solution was hacked so idk.

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    use OrderedDict instead of Counter

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      will OrderedDict make code any better as it maybe having some overhead as compared to Counter and this case imo both the codes i have linked in the above comment are almost identical and i dont see anyway why my code failed there.

      • »
        »
        »
        »
        7 months ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        I agree with u, i have the same trouble, but users Counter and simple dict got TLE for this reason((

        • »
          »
          »
          »
          »
          7 months ago, # ^ |
            Vote: I like it 0 Vote: I do not like it

          when are those tc added which are successfully hacked? Is it during hacking time or after system testing?

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    This is common problem with hash collisions in Python sets/dicts. Because in Python int == hash(int), so it could easily be hacked. Check this out: https://mirror.codeforces.com/blog/entry/101817

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

so i don't what happened , i am getting better or my day was good i solved A , B , C around 1 hour and i was like i have done way beyond my limit so i just keep on admiring my accepted code . then now after seeing E today m felling bad that i could have done that too . anyway was fun contest regardless of my silliness .

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

I think the test case from hacking are not added yet because my solution was hacked yet when i run the same code it is accepted .it shows the contest status as finished and standings as final. Please, fix this so that contestant can review and improve their code easily.

Thanks

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    System testing hasn't started yet.

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      i see that now, standings were shown as final standings, which seems misleading if system testing is pending.

»
7 months ago, # |
  Vote: I like it +10 Vote: I do not like it

Please do something about the cheating Vladosiya, MikeMirzayanov. Its on a massive level, people are getting negatives just because of these, and it really demotivates the cause of such a platform. Please try plagcheckers, or anything which might be suitable.

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

why is the problem c hacked a lot? can someone explain?

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Because many people used Counter of collections as data structure for maintaining occurences of elements,but it is in worst case O(n*n).It is pretty easy to find the worst case for it as it is quite standard.I myself got hacked as I ignored that fact.only those solutions passed which used their own hash function.(This was all for python submissions,I do not know about those in other languages).

»
7 months ago, # |
Rev. 2   Vote: I like it -13 Vote: I do not like it

Why you put a question like E which is directly available on geek for geeks https://www.geeksforgeeks.org/check-if-a-given-matrix-can-be-converted-to-another-given-matrix-by-row-and-column-exchanges/ Here is the link for the solution . If possible please remove this question from the contest Vladosiya pls look into this. As people shared this blog with their friends too and no plagiarism can be applied on it

»
7 months ago, # |
  Vote: I like it +1 Vote: I do not like it

What happened to my problem C solution? 263930829 I didn't use unordered_map or that sort of thing, I used multiset, and I think this is a O(nlogn) or O((n+m)logn) solution. Why it got TLE?

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

How to do G? I've looking at others solutions they used trie to find the maximum or, please do explain

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    it's a bit advanced for ur level, maybe solve other problems first

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      my bad, I misread bitwise 'exclusive' OR as bitwise OR, now I solved it. Try solving for bitwise OR, it's probably much more difficult problem. it's well within in my level bro I have 7 solves

      • »
        »
        »
        »
        7 months ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        Bro, with cheating one can full a div3(not saying u cheate), and I also read it as OR, that's why I said it's too advanced, thanks for the pointing at the xor

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

My submission to problem B got Accepted but now It os showing “in queue “ what happend?

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    System Testing is still going on......what for few hours verdict will come!<3

»
7 months ago, # |
  Vote: I like it +3 Vote: I do not like it

Why is the system-testing incredibly slow for this round?

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Could anyone please give a technical brief, why it takes a long time system testing in div-3,4 rounds and few time for div-1,2 rounds?

  • »
    »
    7 months ago, # ^ |
      Vote: I like it -12 Vote: I do not like it

    I think because of the big difference in the number of participants. Lots of people join div 3, 4 but much less join div 1, 2

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Bro, it takes a simple query to filter all the participants having rating more than 1599.

      • »
        »
        »
        »
        7 months ago, # ^ |
          Vote: I like it -14 Vote: I do not like it

        I am talking about the official participants only, others are not taken into considerations.
        Have a look at last 2~3 div2 contests and compare them with div3 contest. Around 10K+ participant difference. All of these extra submissions take time :)


        One more thing, I think lots of tests are added to problem C, as there were lots and lots of hacks, that could be a reason as well.

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Does anybody know why Edu/Div.3/4 System Testing takes a lot longer than Div.1/2 System Testing?

  • »
    »
    7 months ago, # ^ |
      Vote: I like it +16 Vote: I do not like it

    1) more participants 2) easier tasks -> more submissions

»
7 months ago, # |
  Vote: I like it +4 Vote: I do not like it

isn't system testing taking longer than usual today

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

I gave the contest yesterday. It was my first contest. I solved 2 questions A and B and they were accepted also. I am still unrated? Why is that so?

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Wait till system testing is completed

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      I am new here. What do you mean by system testing?

      • »
        »
        »
        »
        7 months ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        after the contest, codeforces runs another set of tests to double check the codes, which will take a bit more, wait till tmrw and definitely will be updated

»
7 months ago, # |
  Vote: I like it -8 Vote: I do not like it

How to G

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

On my profile this contest show as unrated and i solved 2 questions in contest. Can anyone tell me why it is happening.

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Ratings are not in yet because there were TONS of hacks for problem C (because people were using hashmaps) and if the hack is successful, the test gets added to the test pool. What that means is that it took a lot of time to rejudge all submissions with all those tests which takes a lot longer than usual since you sometimes have 10 tests but here you probably had way over 100 which means that judging problem C took longer than an entire contest usually does. Tests were only finished less than an hour ago so it will probs take a few more to update ratings but you will get your delta :)

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

I want to know why my rating is increasing by very few points. Like a 800+ rating candidate with rank around 22k in this contest got +72 in his ratings. But my current rating of 722 only went up to 727 , even though my rank in this contest was 21.5k around. This similar kind of issue has happened to me in previous few contests also.

  • »
    »
    7 months ago, # ^ |
      Vote: I like it +5 Vote: I do not like it

    The higher your rating is, the harder it is to get a higher rating .

  • »
    »
    7 months ago, # ^ |
    Rev. 2   Vote: I like it 0 Vote: I do not like it

    Each account has both the displayed rating (shown in user profile) and the effective rating (hidden; used for rating calculation), where the former starts much less than the latter and rapidly catches up during the first 6 rounds of the account, so a new account always 'looks like' that it gains a lot of rating at the beginning.

    Tl;dr: https://mirror.codeforces.com/blog/entry/77890

»
7 months ago, # |
Rev. 4   Vote: I like it 0 Vote: I do not like it

I have some questions about how the hacking system works.

  • Are successful hacks added to the tests that are ran during system testing? Or are hacks and system tests unrelated?

I'm asking this because my solution for C got TLE after system testing. I learned about implementing a "safe hashmap" after I saw a lot of people get their solutions for C hacked. Then I resubmitted my solution with the new hash function after the contest, which was accepted.

  • Do Div 1 and Div 2 contests typically not have a hacking phase? Are hacking phases just a part of Div 3 and 4?

  • Finally, can anyone submit hacks to solutions? Even if the hacker is not participating in the contest or isn't rated/trusted for the contest?

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it
    • The successful hacks are added to the final set of system tests.
    • Div 3/4 and educational rounds have 12-hour open hacking phase after the coding phase. In div 1/2 rounds, you can hack the solutions of other contestants in your room during the contest time, i.e. coding and hacking phases aren't separated. To hack a solution, you first need to solve that problem (passing pretests), and lock the problem (you'll no longer be able to resubmit for the problem). In div 1/2 rounds, you will gain (or lose) points for each successful (or unsuccessful) hack.
    • For contests with open hacking phase, anybody can submit hacks (I think) during the hacking phase. For div1/2 rounds, only contestants can submit hacks. Additionally, candidate masters and above can submit hacks any time after the contest, but those tests may not be integrated to the final system tests.
»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Submission

Can anyone tell why this solution got TLE?

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Can anyone plz tell that in this contest i submitted my solution of problem B that is choosing cubes and it got accepted. Now after the contest it is showing wrong answer on test2 but it got accepted in the contest itself. Not only this when i now submitted exactly same solution it got accepted on test 2 als0. How is it possible?

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Your code has an undefined behavior. In if(a[k] == num), k can go out of bounds of a and therefore anything unexpected can happen.

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Ok thanks for replying but now it is accepted so is it that in contest it detected but now it not.

      • »
        »
        »
        »
        7 months ago, # ^ |
          Vote: I like it +3 Vote: I do not like it

        It's not about detecting it or not, it's just that anything can happen depending on your luck. For example, you can 'luckily' pass the tests if any of going out of bounds didn't actually cause any issues on the program's logic, but if you're unlucky then the program can read a false value from the outside of the vector and think it's a real value that leads to a wrong branch. In another case it can just immediately get segmentation fault, or even randomly get into an infinite loop, etc. You just can't predict what will happen.

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

problem d, solution 1 — 263972949 failed system test (TLE), solution 2 — 264171599 passed all the tests, code — same in both letter by letter, only difference — solution 1 submitted on Python3 while solution 2 submitted on PyPy3, result — got a "-1" in place of a "+"

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it

I have solved 2 problem in this contests why it gives negative 17 points to me.

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Rating changes depend on how you performed in the contest ~ your rank in the contest and your current rating and not on the number of questions solved.

»
7 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

.

  • »
    »
    7 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    How did you gain +111 rating in educational round 166 when its showing you solved 0 questions?

    • »
      »
      »
      7 months ago, # ^ |
        Vote: I like it +8 Vote: I do not like it

      Cheater, skipped bro. Rating recalculation did not happen yet.

      • »
        »
        »
        »
        7 months ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        Hopefully it will be corrected when recalculation happens.

»
7 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

For this contest I find problem 3 rather interesting due to TLE effect But problem 4 and 5 were easy compared to 3rd imo

»
7 months ago, # |
Rev. 3   Vote: I like it 0 Vote: I do not like it

Can anyone help me find the error in my code or what I am missing? Problem C,264173742

»
7 months ago, # |
Rev. 4   Vote: I like it -12 Vote: I do not like it

  • »
    »
    7 months ago, # ^ |
      Vote: I like it -12 Vote: I do not like it

    Same here, I was not aware of it. I will be careful from next time.

»
7 months ago, # |
  Vote: I like it -12 Vote: I do not like it

I did not cheat in codeforces round, all of the problems were solved by me and I did not publish the solution on the internet. Unfortunately, codeforces sent a message that one problem had a similarity. To sum up, I disagree with the decision. Vladosiya

»
7 months ago, # |
Rev. 12   Vote: I like it 0 Vote: I do not like it

Hi @codeforces team & @Vladosiya, Well recently i have got a message from your side that there is a plag detected in my code of problem F1 and its a violation and i was asked to submit proof of that there are solution/editorial which are available before the contest.

So for this problem i have a reference of few questions that i have solved previously in other platforms i.e. Atcoder and leetcode and by the reference of which i was able to solve the question. The link for the problem is being attached below:

https://atcoder.jp/contests/abc216/tasks/abc216_d

https://leetcode.com/problems/remove-covered-intervals/description/

Also just now i saw i also got it for D problem, Which i feel is incorrect as it is a basic logical question. Although i dont have any proof for Problem D as it is a logical, mathematical/constructive algorithm based problem. But i assure that my solution is better for both the problem statement, as i have gone through every id solution that is provided by you in the mail. And in both the question my solution is different from any other participants.

So yes the allegations by your team is wrong. I appeal you for revalidation of my code. And i also appeal to please remove me from plagiarism category as i have never been involved in such acts before.

»
7 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

I used ideone with the default settings for my codes.

»
7 months ago, # |
Rev. 4   Vote: I like it -12 Vote: I do not like it

Thank you, Vladosiya and the entire team, for organizing Codeforces Round 950 (Div. 3). The effort put into creating and testing the problems is truly commendable. It's great to see such a thorough and well-structured competition that ensures fairness and a challenging experience for participants. Special thanks to everyone involved in the preparation and testing phases. Excited for the round and the upcoming challenges! Good luck to all participants!

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Hope I can get 2000* rating in 2024!