awoo's blog

By awoo, history, 11 months ago, translation, In English

Neapolis University Pafos

Hello Codeforces!

The series of Educational Rounds continues thanks to the support of the Neapolis University Pafos. They offer a BSc in Computer Science and AI with JetBrains Scholarships. Gain cutting-edge skills in AI and machine learning, preparing you for high-demand tech careers. Curious? Check out the CSAI curriculum. Limited scholarships available — don't miss your chance to study in Europe for free!

On Jun/23/2025 17:35 (Moscow time) Educational Codeforces Round 180 (Rated for Div. 2) will start.

This round will be rated for the participants with rating lower than 2100. It will be held on extended ICPC rules. The penalty for each incorrect submission until the submission with a full solution is 10 minutes. After the end of the contest, you will have 12 hours to hack any solution you want. You will have access to copy any solution and test it locally.

You will be given 6 or 7 problems and 2 hours to solve them.

The problems were invented and prepared by Adilbek adedalic Dalabaev, Ivan BledDest Androsov, Maksim Neon Mescheryakov and me. Also, huge thanks to Mike MikeMirzayanov Mirzayanov for great systems Polygon and Codeforces.

Good luck to all the participants!

UPD: Editorial is out

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

»
11 months ago, hide # |
 
Vote: I like it +31 Vote: I do not like it

What a cinematic last week we had on cf, this edu will feel good

»
11 months ago, hide # |
Rev. 5  
Vote: I like it -104 Vote: I do not like it

.

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

It would be better if the question stem could be more concise!!!

»
11 months ago, hide # |
Rev. 2  
Vote: I like it +1 Vote: I do not like it

feels good to see an edu round, high hopes

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

After the absolute chaos of the last contest, I have high hopes for this one!

Wishing everyone good luck — and have fun!

P.S. Hopefully, no one’s basement is going to get filled up.

»
11 months ago, hide # |
Rev. 2  
Vote: I like it +19 Vote: I do not like it

r1033 still makes me feel disgusted...

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

hoping for a positive delta!!

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

Can we please get hints in Educational Editorials?

»
11 months ago, hide # |
Rev. 2  
Vote: I like it -20 Vote: I do not like it

.

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

As a participant, I hope the managers can exclude cheaters from the standing during the round!

»
11 months ago, hide # |
Rev. 2  
Vote: I like it -8 Vote: I do not like it

I think the problems in this round will be really creative!Not like the yesterdays contest and the contest should be great and fair for everyone.

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

This contest might be really good and interesting . Wish all of you high rating and enjoy solving as many problems as you can consistently and creatively .

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

i hope i can be a specialist and then free of this

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

As a participant, I just wanna enjoy the problem statements and wish everyone goofy luck!

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

Hope everyone moves up to a new title!

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

Good contest

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

Sadly, in Indonesia, the city level qualifiers for its CP nationals will be held the day after this contest, and this contest would be held at 9:35 PM to 11:35 PM the night before, so unless I want to mess up my performance tomorrow I can't participate :(

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

score distribution ?

»
11 months ago, hide # |
Rev. 2  
Vote: I like it -53 Vote: I do not like it

.

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

Hope to enjoy the problemset and solve at least ABC.

»
11 months ago, hide # |
Rev. 2  
Vote: I like it +22 Vote: I do not like it

So we are just ignoring all cheaters last round or is useage of LLM now allowed?

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

Looking forward to a great contest from several legendary problemsetters of Codeforces!

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

Hoping for a better round then the previous one!

»
11 months ago, hide # |
 
Vote: I like it +29 Vote: I do not like it

feels good to see an edu round, high hopes

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

After a few bad contests, I hope this one makes me feel better.

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

I WANT TO PLAY DIV.1 ROUND

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

Codeforces should publish cheaters list after every contest and ban them. This may create fear among potential cheaters.

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

I hope there won't be many cheaters in today's competition.

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

Am I the only one that has tendency to lose rating on Edu rounds?
Therefore I am registering unrated.

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

    I didn't know I had the tendency, but after giving the contest, I sure have one.

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

      I spent 40 minutes solving all I know,
      next question I immediately know there is 90% chance I couldn't solve it.
      Logged off early, really glad I'm not registering rated.

    • »
      »
      »
      11 months ago, hide # ^ |
      Rev. 2  
      Vote: I like it +1 Vote: I do not like it

      For me it's the opposite, I tend to gain huge +ve rating in Edu and Div. 3 rounds, but lose in Div 2(non-edu) rounds.

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

    Same here. Something always goes wrong in edu rounds dont know why though.

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

This is going to be my first contest. Some of my students recommended me to try this website, after I failed to convert them to the atcoder side.

Just clarifying that I am not a beginner and if I'm violating any rules by participating today I sincerely apologize. Make sure to have fun today :)

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

    just don't use LLM help and/or other cheating ways.

    I think that's the most important rule here.

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

      Nyemot thank you so much for clarifying on this.

      If you dont mind answering, am I allowed to post my own solutions and editorials here, so my students can refer to them, or only the officials are allowed to do that?

      Have a great day.

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

        You're allowed to post your own solutions here (as comment), or as a blog.

        Just don't do it during contest.

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

Good luck to all participants!

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

Educational CodeForces Rounds haven't disappointed me for a long long time..!

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

Amazing contest! The problems were very balanced. B took me quite some time to solve because of some errors but I loved Problem C. It was very interesting to me.

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

    Can you tell me how you managed to solve B? I couldn't figure it out

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

      If the array is always increasing or always decreasing, and the difference between elements are always larger than 1, then it's impossible to turn the array beautiful. If any element differs from its neighbors by at most 1, then we output 0. If the element forms a peak or a valley, then we only need 1 operation to turn the array beautiful.

»
11 months ago, hide # |
Rev. 2  
Vote: I like it -17 Vote: I do not like it

Thanks for this great edu round awoo and all of the authors team!

I really enjoy solving C and D (although I cant AC D :DDD)

Last but not least, hope every participants have a positive delta!

Edit: Im sorry for saying something wrong...

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

how to solve D? I was root->child<-grandchild->xxx<-yyy...... kind of thing it was producing n-1 good pairs then was trying to change direction of any one leaf node whose depth is greater than 2

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

    In fact, you had to find any vertex of degree 2 and go left and right from it. Your solution says "no" for those cases where the answer exists.

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

    It is possible if and only if there is some node with degree 2, and for that, we make one edge into it, the other one out of it. Then we basically two-color the subtrees of the 2 nodes that degree 2 node is adjacent to.

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

    same. couldn't AC. frustrated.

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

    Find a vertex with a degree of 2 as the B of "A->B->C".then let all edges with A start at A,all edges with C end at C;then let all edges with the vertices next to A end at them,all edges with the vertices next to C start at them,then you will get a graph like:


    x->y<-A->B->C<-z->...

    the part containing A,B,C makes 3 good pairs,and other edges only make 1 good pair each other,and the total number of good pair is n.

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

    it is same as coloring graph such that no adj vertices have same color and have atleast one vertex of 2 degree

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

cooked

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

How to do B?

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

    You can perform at most 1 operation if it's possible.

    I got stuck in this problem for about an hour, too :(

  • »
    »
    11 months ago, hide # ^ |
    Rev. 2  
    Vote: I like it +4 Vote: I do not like it

    If the array is either monotonically increasing or monotonically decreasing, and no pair of adjacent elements has an absolute difference ≤ 1, then it's impossible to make the array beautiful.

    If at least one adjacent pair has an absolute difference ≤ 1, the array is already beautiful, and the number of operations required is 0.

    If the array is neither strictly increasing nor decreasing, then exactly one operation is sufficient to make it beautiful.

    This is because, in a non-monotonic sequence, there must be a point where the direction changes from increasing to decreasing or vice versa. At this turning point, at least one of the surrounding elements will fall within the range defined by the other two.

    Example: Consider the array [1, 4, 6, 2] The first three elements are increasing with no adjacent differences ≤ 1. But at the turning point from 6 to 2, observe that 2 lies within the range [4, 6] This ensures that applying one operation is sufficient to make the array beautiful. In general, any such directional change guarantees that at least one element from either side of the turn will lie within the other's range [min, max].

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

I hate constructives.

»
11 months ago, hide # |
 
Vote: I like it +21 Vote: I do not like it

What was the solution to $$$D$$$? I thought that you had to have a leaf node with a parent with degree $$$= 2$$$ in order for the situation to be $$$YES$$$ (and then switch around that edge) but that didn't seem to work.

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

    That's basically correct, but it doesn't need to be a leaf.

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

      Ah okay I see what you're saying. Basically we have a root with degree $$$2$$$ and start the edges pointing out of it, then the children have the edges pointing in and the children's children have the edges pointing out and so on. And then we just flip one of the two edges of the root and then go down to the child of the flipped edge and flip all of the edges in that subtree, right?

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

    Leaf node is unnecessary.

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

    close, you need a node with degree 2 only, no need leaf whatsoever.

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

    seeing 3 comments with the same idea is quite funny.

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

    same here. actually only a node with degree 2 would suffice.

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

    Thought exactly the same , got a w/a on tc 2

  • »
    »
    11 months ago, hide # ^ |
    Rev. 2  
    Vote: I like it +6 Vote: I do not like it

    Bro, I got the exact same idea, but turns out you only need a vertex with deg 2. Check this image:

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

      gotcha, yeah that is quite a tricky generalization to spot

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

      why colors

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

        Because it's a coloring problem. The problem is basically bicolloring a tree after choosing a node with degree 2. The blue nodes only have out edges, the red nodes only in edges and the orange node has 1 in and 1 out edge

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

    You can use dfs to traverse and maintain a bool dir (direction of the edge). Keep changing the dir when having a dfs traversal. However, if you meet a node with degree = 2, you do it special for once only (It will cause an increase of 3 in answer with two edges costed. As there are n — 3 edges left, the answer will be exactly n)

    Here is my submission: 325811538 (I did check for the starting node to be degree = 1 then do dfs but that's unnecessary, just did it for safe)

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

    I also made the same mistake :(

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

    You just need any node with a degree of 2 and have one as out, one as in, and then keep alternating.

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

man I was feeling a bit sleepy before contest so i registered unrated...And it turns out this contest was the best i ever did :C

»
11 months ago, hide # |
 
Vote: I like it +25 Vote: I do not like it

The scoreboard of this contest is way more normal than the last one standings. I guess it wasn't the ChatGPT's fault yesterday, something smells fishy...

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

overall a good contest. was only able to solve a , b ,

was working on problem c , but not able to pass on the case.

6

2 3 3 4 5 5

mine was giving 14. I used sorting, two pointers , + maths. to count the valid triplets.

Please let me know, if you guys have followed any other approach. not submitted out of fear

»
11 months ago, hide # |
Rev. 2  
Vote: I like it +66 Vote: I do not like it

Cool E. At first glance, the statement seems intimidating, but after some thought, the solution turns out to be surprisingly simple.

My Solution:

Observation 1
Observation 2
Observation 3
Observation 4
Observation 5
solution

Code:325789361

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

    What's the idea behind $$$dp[i/d]+dp[d−2]$$$?

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

      You can take a tree having $$$dp[i/d]$$$ nodes and attach a tree having $$$dp[d-2]$$$ nodes, so the number of colorings now will be $$$(i/d) \cdot (d-2+2) = i$$$.

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

        Shouldn't this be $$$(i/d+2)(d-2+2)$$$ since we are taking subtrees $$$(i/d)$$$ and $$$(d-2)$$$, and the total number of valid colorings is $$$\prod{(f(Ti)+2)}$$$?

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

          No. We are attaching the tree having $$$dp[d-2]$$$ nodes as a subtree to the tree having $$$dp[i/d]$$$ nodes. The root of the new tree is the root of the tree having $$$dp[i/d]$$$ nodes so you don't need to add $$$2$$$ to $$$i/d$$$.

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

            Ah I see now. Thank you!

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

            We can also update dp[i] = min(dp[i] , dp[i / d] + dp[d] — 1),325839794 where we subtract 1 because no additional edge is added — we simply remove the root of one subtree and make the root of the other subtree the root of the entire tree.

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

    Is it possible to have a binary search on the number of nodes and then a greedy algo to solve the problem of "Given x vertices how many different colourings are possible"?

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

    I absolutely missed that I can colour subtrees entirely yellow or blue. What a miss :(

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

    dude this was wonderfully written kudos!

  • »
    »
    11 months ago, hide # ^ |
    Rev. 3  
    Vote: I like it +4 Vote: I do not like it

    In problem E for m=5, Given sol is :- consider a bamboo tree with 3 vertices with a root at the 1-st vertex. There are exactly 5 beautiful colorings: [g,g,g], [g,g,b], [g,g,y], [g,b,b] and [g,y,y].

    Why [g,b,g] and [g,y,g] are not beautiful ?

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

      sorry:

      they've considered a straight chain of 3 nodes in the explanation i think it should have been mentioned

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

      because [g,b,g] contradicts the statement "consider all yellow and green vertices, they are reachable from each other without passing through any blue vertices" since there is a blue vertex in their path

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

    NVM

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

I think i practiced well in this contest , but if any one understood problem B please explain it to me because it took me a long time to solve it but i stuck in it

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

The leader board in this contest is much normal now !

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

Why N is freaking low in B :)

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

UNABLE to open test cases for C problem. Only first test case is visible.

Note : awesome problems. Getting Huge negative delta, but still, awesome the problems.

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

My C almost TLE, my D was 5 minutes too late... sad performance again.

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

For Problem C, I thought of a solutuion using two pointers and std::lower_bound (basically fix the biggest value chosen by Alice and use two pointers to count the number of solutions with that value). I didn't have enough time to code it, but it's $$$O(n^2\log n)$$$. Would that pass? If no, anyone has a suggestion of how could I make this solution $$$O(n^2)$$$?

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

"Nice set of problems at a good level. Hoping for a rating boost!"

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

The famous telegram group that solves A-F is off today and hence we have a clean leaderboard

If u wanna blame anyone then blame that group, not a country

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

Problem B is really funny. First, check if it is "beautiful". If yes, output 0. Otherwise, if there is a maximum or minimum value, output 1. Otherwise, output -1.

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

Could anyone explain why this code ran a tle https://mirror.codeforces.com/contest/2112/submission/325747110

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

quite new to cf and solved my first div2 problem ! feeling happy

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

I misread the Problem B and realized my mistake after wondering about 10 minutes,

but out of curiosity, if we change the condition of a beautiful array from:

there exists 2 consequtive elements with difference <= 1

to:

all consequtive elements has difference <= 1, and the length of the final array >= 2

at what time complexity is this question solvable?

»
11 months ago, hide # |
 
Vote: I like it +6 Vote: I do not like it

Cheaters again. Take a look at this submissions by Yagnik_Dhameliya, lakha_luffy, AbdullahIshfaq: 325754179, 325788858, 325771032

Notice anything strange with those solutions? They have the same "implementation" for generating divisors.

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

where does this approach for C overcount? in some cases its overcounting, 27 32 35 37 45 57 65 65 71 87 96.

// rep(i, a, b) = for(int i = a; i < b; i++)
Solution(){
    int n;
    cin >> n;
    vector<int> ar(n);
    CIN(ar);

    int mx = ar.back();
    ll count = 0;

    rep(i, 0, n-2){
        rep(j, i+1, n-1){
            // k = first element after j such that sum(i, j) > k
            int k = lower_bound(ar.begin() + j + 1, ar.end(), ar[i] + ar[j]) - ar.begin() - 1;
            if(ar[i] + ar[j] + ar[k] - mx <= 0) continue;
            count += k - j; // if k == j, 0 added, so no worries
        }
    }

    cout << count << endl;
}
  • »
    »
    11 months ago, hide # ^ |
    Rev. 4  
    Vote: I like it 0 Vote: I do not like it

    You have made exactly same mistake that I did. and here is your answer.

    [30 , 40 , 57, 69 , 138 ]

    so, when your a[i] = 30 , a[j] = 40 , your k will point at 69, so you will simply add indexof(69) — j = 2. Which is wrong. You can't take (30,40,57). that's an overcount.

    You also need to find lower bound of (a[n] — a[i] — a[j] + 1) and find its index. (lets call that ind2 ) .

    Than your addition to the answer will be k - ind2.

    Look at this code : https://mirror.codeforces.com/contest/2112/submission/325822074

    By god's grace, if we both would have GOTTEN AC. somebody would suspect we plagiarised... LOL

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

      thanks!! this makes a lot of sense now. i was thinking that i probably need another bound, but i had 30 s left, and no clue where to get how to get it done LOL

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

someone please explain why does O(n^2 * logn) works for C? its almost 3e8 operations and time limit is 2.5sec

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

    Because binary search is really fast.

    BTW: python may fail.

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

      yeah i got TLEd to hell in python

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

      but how would you analyse this in a contest, by writing you know O(n^2logn) is bad but practically you know binary search is fast, but i would not know how fast it is, so do i just guess it works and code or look for an optimisation? its consufing as sometimes a constant factor really matters and gives TLE but in cases like this here its doing well with binary search too

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

      I did C by using two pointers in python. Got accepted :)

  • »
    »
    11 months ago, hide # ^ |
    Rev. 2  
    Vote: I like it -8 Vote: I do not like it

    In C++ nearly 3e8 normal operations can be executed in 1s.

    as n<=5000

    log2(5000)*(5000)*(5000) is neary 3.08 * 10^8

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

    It works because C++ is fast.

    Constraints:

    • n <= 5000

    • n^2 = 5000 * 5000 = 5000^2 = 25.000.000

    • log n = 12.3

    Even though O(n^2 log n) with n = 5000 gives around 300 million operations, that’s okay in 2.5 seconds if:

    • Your code avoids heavy STL operations inside loops

    • You use fast IO (ios::sync_with_stdio(NULL); cin.tie(nullptr);)

    • No extra memory copying (like passing large vectors by value)

    In practice, such a solution runs in ~1.5s or even less.

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

    My O(n^2log(n)) solution works in 546ms. C++ is just really really fast.

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

    it is not 3e8 operations. The sum of n across all test cases does not exceed 5000.

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

Expected Rating for D?

»
11 months ago, hide # |
 
Vote: I like it +6 Vote: I do not like it

Why for problem E is a tree (root)g — b — g invalid?

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

    Because the green nodes are not connected.

    • »
      »
      »
      11 months ago, hide # ^ |
      Rev. 2  
      Vote: I like it +5 Vote: I do not like it

      I'm sorry for the follow up, but why must this be necessary because we can still go from every blue vertex to any blue or green vertex without passing through a yellow one

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

        From the problem statement:

        if you consider all yellow and green vertices, they are reachable from each other without passing through any blue vertices;

        To clarify, if you have a pair of green vertices, they also must be reachable from each other without passing through any blue vertices, so (root)g — b — g is invalid.

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

        You can neither have any blue or yellow vertex between two green vertex

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

      Ok nevermind, I finally learnt to read (this time), it is necessary that every green vertex must be connected, because each green vertex cannot have a yellow or a blue color in the path, thank you for the clarification!

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

in c how n^2 is working isnt it around 1e8 .?

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

    It works because C++ is fast.

    Constraints:

    • n <= 5000

    • n^2 = 5000 * 5000 = 5000^2 = 25.000.000

    • log n = 12.3

    Even though O(n^2 log n) with n = 5000 gives around 300 million operations, that’s okay in 2.5 seconds if:

    • Your code avoids heavy STL operations inside loops

    • You use fast IO

    • No extra memory copying (like passing large vectors by value)

    In practice, such a solution runs in ~1.5s or even less.

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

    Its O(n^2logn) which is about 3 * 10^8 operations. This is relatively slow but still fast enough for the time constraint given.

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

In 'B' statement, whoever decided not to put the "sum of n over all test-cases won't exceed 1000" is absolutely genius, lol

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

Great contest! Had fun but could solve only A and B. Faced TLE for C even though I wrote O(n^2log(n)). I know its poorly optimized but not sure how to simplify it. Would be great if someone could suggest improvements in my submission: https://mirror.codeforces.com/contest/2112/submission/325808279. Thanks!

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

    My idea was as follows: Bob has two choices given Alice has chosen her triplet: 1. Choose max from the triplet hoping it is >= sum of the remaining two, or choose max remaining hoping it beats triplet sum. Used binary search to find range of valid indices of the third element assuming first two, but used multiset to find max remaining after choosing first two.

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

Was able to solve the first 4

First
Second
Third
Fourth
  • »
    »
    11 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    For third, could explain k1 case? Why does a[i] + a[j] + a[k1] > maxElement work? If I have chosen a[i] and a[j], don't I need to find max excluding a[i] and a[j]?

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

      Because in 2 3 4 5, we can use the triplet (2, 3, 4).

      Whereas in 2 3 4 9, we cannot use the triplet (2, 3, 4)

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

Hii

I'm new to hacking. If I do hacking now, and my attempt is unsuccessful, is it going to affect my rank in contest??

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

For Problem B,, for this input:

1

5

1 5 9 13 1

the author's answer is 1,, why not 3??

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

    i can remove 13 and 1, replace them with 9. That's just 1 operation.

    Just understood the answer is actually never more than 1

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

worst contest for me so far ,solved the first in 5-6 mins ,but was stuck in B for a long time ,ultimately figured it out right after the contest.

»
11 months ago, hide # |
 
Vote: I like it +11 Vote: I do not like it

Feels good to see GMs at the top of the standings again

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

Just curious! Why does n^2.log(n) pass for C when n can be 5000? (Shouldn't it exceed 10^8 ops)

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

Why 325802678 does this fail ? I believe it is (n^2)*(log(n^2))?

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

    st doesn't have all required pair sums at the moment you're doing the query Worse, insertions are repeated — the same a[i] + a[j] is inserted multiple times unnecessarily for different is And since st is not cleared, its size keeps growing → order_of_key() becomes slower → TLE

»
11 months ago, hide # |
Rev. 5  
Vote: I like it +5 Vote: I do not like it

I have a different solution for $$$C$$$ : instead of doing binary search, you can use an cumulative array / prefix array of length $$$10^5$$$ that represents the $$$a_i$$$, and then get the number of $$$a_i$$$ from $$$l$$$ to $$$r$$$ by doing $$$cum_r - cum_{l_1}$$$. So the original $$$O(n^2 log(n))$$$ becomes a $$$O(n^2 + 10^5)$$$ per testcase, so it gives at most $$$10^3 \cdot 10^5 + 25 \cdot 10^6$$$ operations, which is faster than the $$$O(n^2 log(n))$$$ !

325733800

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

finally a good contest with classic CF style problems

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

Why is 12 hours needed for hacking, should be 3 at max.

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

Can anyone provide me failing testcase for my submission 325842292.

Or point out my mistake. I first generate output for graph like ...->child<-parent->child<-grandchild->... and then flip one edge between degree-2 vertex and leaf node.

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

The logic for qs B was much at the easier side , only we need to check if the number is b/w the two adjacent number or not so that the condition can be satisfied and there is just 4-6 lines of code needed , but indulge in much longer code. And surprisingly it was not me only during the contest many other top coder does the same.

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

Has profile ratings updated?

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

Please, please, don't go down again!

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

Why was CF down for so many hours? @MikeMirzayanov Was there any specific reason?

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

    They are incompetent. Many times the site is down even when opening problems or standings. 12 hours for hacking phase is too much as well.

    For standings they can implement a caching mechanism. It's embarassing.

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

Can I ask for help? I don't have a rating for this competition because I'm not a trusted participant. I admit that I once participated in div1, and div2 is not my level, but I really forgot my previous account and email because I haven't used them for many years.

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

    Rating will be updated for all participants with rating <2100, no matter whether trusted or not (except for those who opted out of getting rated). All submissions will be rejudged with updated test sets, and rating updates will happen after that. Just be patient.

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

      ty

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

      it shows unrated for me, why?

      (except for those who opted out of getting rated). -- i didn't know about this, when do we select this

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

        ya me too.

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

        Apparently Codeforces does not distinguish "unrated" and "not rated yet" in those screens. Do not worry about that.

        Regarding opt outs, you should have seen a checkbox when you registered for the contest. If you checked that box, you will be not rated.

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

Is system testing done?

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

Why there is still no rating changes?

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

My solution are stuck in queue for more then 1 hr and they are just piling up

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

Is this contest being shown as unrated for all of you or only me?

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

what happened to this contest, guys ?

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

    its finally in system testing

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

    My standing section showed asterisk in the starting of username . I joined rated . What is this issue and the submission are in queue rn . Is this server issue ?

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

      I think it's a server issue, just chill.

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

        Hey Im new to his whole codeforces think. I took part in the competition and solved one question. But it is showing unrated for me? Does that mean I won't be able to get rated from this competition? I am pretty sure I registered earlier and it shows me as contestants in registrants

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

      Asterisk means you are not a trusted participant (you need to attend 5 rated rounds to become trusted). You'll still be rated -- do not worry about that.

      All submissions are currently rejudged with updated test sets. Rating updates will happen after that.

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

Why my B AC became In Queue??? And also why can't submit problems?

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

As always, I thought it had an additional constraint that "the sum over all test cases doesn't exceed 1000." My bad, I thought it was obvious. They could have mentioned that there was no additional constraint in Problem B. Could be helpful for many.

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

When do we expect our ratings?

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

when will the rating publish?

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

In problem D, how to calculate the number of good pairs in a given directed tree? UPD: Got it

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

    Wdym by good pairs?

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

    good pairs starting from node n = sum(good pairs starting from every child for node n + 1)

    calculate the above recursively for all n, but tbh we dont need to do this in the solution

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

    Use dfs on node have no edge in, if a dead end is reached then res += depth*(depth+1)>>1

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

    What I did was: Create a chain of nodes A->B->C (B must have degree 2 ) Now I have is 3 nodes and 3 pairs Now for each node added to above structure should give 1 new pair We can do this if a node has only out going edges or incoming edges I.e A-> k or k->c because A has outgoing edge and C has incoming edge Keep adding nodes until u have used all the nodes

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

Drop editorial please. I want to know D and E approaches ;)

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

    In D, find a node with degree 2 and make the directions as A->B->C (B is the 2-degree node). Now do dfs from A and C alternating the edge directions as we go. this ensures the ABC triplet contribute 3 good pairs and rest n-3 nodes contribute 1 good pair each making the total good pair count 3 + (n-3) = n

    If there is no node with 2 degree, it is impossible to do this arrangement

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

Hello, this is my 1st comment.

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

can anyone be kind enough to share where can I find problems like E where we work around tree structures to count answers, really facing hard time around these problems.

thanks a lot

think combinatorics + tree filter works ?

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

Do update rating fast... we are all waiting desperately

»
11 months ago, hide # |
 
Vote: I like it +28 Vote: I do not like it

When u have a bad contest, rating gets out next min.__ When u have a good contest, it feels like rating will take eternity to get updated.

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

Auto comment: topic has been updated by awoo (previous revision, new revision, compare).

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

i got B accepted during contest, but now it is showing wrong answer on test case 5. There were not any pretest as far as i rememeber. am i missing something?

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

    the hacking phase which was around 12 hours long probably had a submisssion which made your code fail so basically you got hacked not directly but indirectly

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

    During System testing there are a lot more extra test cases added. During contest time, there were 3 tests for 'B', but if you check now, there are 24. So 21 new tests had been added during system testing.

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

Still no rating changes? Has been 2 days.

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

Message sent

»
11 months ago, hide # |
 
Vote: I like it +15 Vote: I do not like it

I came here to see the updated ratings. Its weird that they are still not there.

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

Does anyone know why my rating hasn't been updated yet due to the competition?

»
11 months ago, hide # |
 
Vote: I like it +6 Vote: I do not like it

Why hasn't the rating been updated yet?

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

It seems the ratings have not been updated yet after the contest. I’ve never encountered such a delay before — perhaps system testing is still ongoing or there’s a temporary issue on the server side. Hoping it gets resolved soon.

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

i have attempted the contest on time but it is counted in the unrated . I don't know why it's happen with me 2 times. can anyone let me know why this thing happen??

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

    unless rating chnage doesnt roll out it will be shouwed under unrated. if you had participated as contestant then dont worry you it will be rated for you

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

when will the rating publish?

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

Why hasn't the rating been released yet?

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

Does this contest became unrated?

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

I think there are still resolving the issue with the server crash,hope the ratings get updated soon.

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

Why hasn't the rating been updated on Codeforces? Is this contest going to be unrated? Can someone share any information?

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

    it will probably be updated soon. with the server crash and everything, they may still be resolving some issues. I don't think it will change to an unrated contest

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

My code is failing for 2nd question 2112B - 11 - Shrinking Array. Can Anyone help me ? My submisson : 325964066

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

    in your code, it is this part that might be the problem:

    for(int i =1 ; i<res.size() ; i++){
        if(abs(res[i]+res[i-1])<=1){
            cout<<1<<endl;
            return;
        }
    }
    

    when N >= 3 and the array is not originally beautiful, you have to check if the array is sorted in decreasing or increasing order. if it is, then it doesn't work. if the array is not sorted in decreasing or increasing order, then it does work (check the tutorial for the explanation). so you gotta change that part

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

    The bug is from if(abs(res[i]+res[i-1])<=1), try (-4, 4, 2), that is, abs(8 + (-2)) > 1 and the branch gets false, but actually it should be true. The key to this problem is to find a peak or a valley value, that is, a local maximum or a local minimum value. You may replace the branch judgment with if (abs(1LL * res[i] * res[i - 1]) < 0), it works.

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

when the rating will be given

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

rating .

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

When is the rating going to come?****

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

It's Day 2, ratings are not updated yet. It was my best contest ever, and I am waiting for the rating very curiously. Please let me know when the rating is gonna update.

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

How long does it take to update the ratings? After the disasterous previous weeks contest, why so long updating this constests ratings?

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

    it's better. I hope there is more proper checking for cheaters cause i saw some guy above in the comments who had an ai code.

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

When will the rating changes roll out?

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

my rating was not added

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

    it will probably be updated soon. with the server crash and everything, they may still be resolving some issues

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

    Cheater asking for ratings update lol, using ai to submit all solutions, 3 contests with 15k rank and last contest with 700 rank itself says a lot, and then looking at the code it's all comments and many of them giving wrong answer at test case1. Asking rating updates after cheating from ai for what, getting proud of how well you cheated.

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

why's the rating not being updated?

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

Prabhu woh thodi rating aa jati toh sahi rehta..

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

why the rating distribution taking so long

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

why my rating is not added?

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

    it will probably be updated soon. with the server crash and everything, they may still be resolving some issues

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

    Cheater wants their rating, please give the cheater his rating :( Sad state of affairs man..

»
11 months ago, hide # |
Rev. 3  
Vote: I like it +24 Vote: I do not like it

Me waiting for rating to update!

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

Please update the rating Can't wait more

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

When will the ratings come?

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

Has it not been a bit late, the ratings are still not updated. Does anyone has any idea what is going on?

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

unrated???

»
11 months ago, hide # |
 
Vote: I like it +34 Vote: I do not like it

Bro even Jesus woke up on the 3rd day. Plzzzz do the rating changes.

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

3 days and still no rating change. They should publicly announce if there would be any delay.

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

its taking too long to update the rating T-T

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

When will the ratings gonna change its now like 1000 years since the contest was given and till now no updates T____T :(

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

Why is it taking so long for ratings to be displayed ???

»
11 months ago, hide # |
 
Vote: I like it +29 Vote: I do not like it

I can accept that the rating updates are slow, but I don't understand why there hasn't been an announcement explaining this issue.

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

been rapidly checking to see the rating changes, WTF are they doing bro

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

    How did you, as a 1000+ rated, solved 3 problems during the contest and also later upsolved D? why do your submissions have comments, and why are you using big variable names? Pretty suspicious, isn't it?

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

      what the hell maybe you should stop going around accusing basically everyone of cheating! and yeah thats exactly how i code because it gets confusing without comments and proper names it's not like im grandmaster or sth. and as of AI i only use it when i encounter problems with the syntax not for generating the entire code!

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

        nice defence but nah still you cheat lol , you cheaters

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

          yeah well it really doesnt matter how others see it, im preparing for the IOI in the future years i use codeforces and attend contest for practice so it really defeats the purpose to cheat. the rating is just the cherry on top its not like they reward me if i bring it higher.

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

            ok dm me I will give you a basic question prove me in video call ? and IOI lol bro you cant even pass school level exams by cheating you cheater

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

              dude it doesnt matter that much for me to prove myself, I explained and you feel free to take a look at all my other submissions not made during or after contests, dont see a reason why i would cheat there all my codes look like this, nevertheless if you still believe im cheating, then honestly i dont care

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

      i don't think he is a cheater , his previous contests have the same style of code. Also the comments don't look very gpt.

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

Will the round be unrated or what? Because there has been 48 hours and the rating changes still hasn't been released.

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

I think at this point, there's no point in stressing over the rating update. Constantly refreshing only adds to the frustration. Let’s shift our focus to learning and solving new problems—it’ll be worth it in the long run. After all, '**A watched pot never boils**.' The update will come when it’s meant to—let’s be patient and keep moving forward!

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

At least make an announcement about the expected time for the rates to be updated or if it's gonna be unrated since there are an unusual delay

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

not(Hardworkworking and competent). 3 days no rating changed.

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

Is that round going to be unrated?? they took too much time

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

hello everyone, I just wanna know that was this contest unrated like I haven't get rating so but I see there was written that rated for div 2

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

When will the ratings get updated ?

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

Sorry

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

    Hello Cheater You give contests in multiple programming languages , dont you?

    So smart, great.

    Please see towards this code forces

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

      Just using multiple programming languages doesnt mean he is cheating,even i use java and c++,java sometimes give tle so i write the whole code in java and ask chatgpt to convert it to c++ but every line resembles my own java code

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

I think this round is unrated.

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

I am a cheater but for a purpose

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

why hasnt it been rated yet? im new here

»
11 months ago, hide # |
 
Vote: I like it +28 Vote: I do not like it

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

is result out for educational round 180[div2]?

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

is this a unrated round?

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

    if it was an unrated round, there would be an announcement, but since there aren't right now, I don't think it will be unrated

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

I guess they forgot that this contest is rated.. I don't mind tbh

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

Why doesn't the rate change after this contest?

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

Hi, I participated in Educational Round 180 (handle: ombelose1304), registered before start, solved 2 problems during the contest, but my rating hasn't updated yet even after 36+ hours. Can someone look into it?

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

    It's not just you, bro. My rating didn't update either. I think there's some issue with the contest.

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

      you gonna get your rating after 61 days. and me after 32 days.

      and those who dont have number next to their name they are doomed.

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

        Apparently, I’m supposed to get my rating in a day, lol. But I’ve waited 12 years to win a Div. 2 round—what’s a few more days? As long as it updates eventually.

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

          No, man. For GMs it's counted as a year. Have to wait 1 more year. Jokes aside, I'm happy to see that your dedication finally paid off.

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

    You gonna get it after 1304 days.

»
11 months ago, hide # |
 
Vote: I like it +28 Vote: I do not like it

Ain't no way we are getting GTA-6 before the rating update of this round.

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

I'm going to sleep now. Hopefully, the rating gets updated by the time I wake up.

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

How it feels waiting for the rating changes

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

They waiting to colab with the results of the div 3 next week

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

My rating still not gets changed after 2 days

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

When will they update ratings , or it went unrated?

»
11 months ago, hide # |
 
Vote: I like it +9 Vote: I do not like it

Hopefully they’re doing a thorough investigation and purging all the AI cheats. The hacking round needs to be extended to contain a cheater catching phase

»
11 months ago, hide # |
Rev. 2  
Vote: I like it -9 Vote: I do not like it

.

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

    Why do you care bruhh? You cheated in it lol atleast remove the comments duhh! Bruh you are from an IIT arent you ashame of yourself..? Cuz of guys like you indian cp coders are getting so much hate!

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

      .

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

        nice try diddy! Bruh just look at your code you think that's written by a human? I mean ur code has more comments than code can you tell me the reason why? also who keeps variable names that big and complex when ita all about speed in cf contests haan?

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

        you know that everyone can still see your previous comments right? there's no point editing it. also anyone with a little coding experience can tell you submissions are directly copied from llm. it's just a matter of time before an admin sees you profile and bans you. nice try!!

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

        Why hasn't this guy been removed. In fact he became specialist.

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

    chill maar bhai tera yeh contest bhi skip hi hona hai and then you will be banned. So don't bother with your rating.

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

come on when will be the rating change will happen i am always checking it for last three days and now i am frustrated

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

Why it's taking too much time to show rating??

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

Did this contest became unrated,I was hoping for a jump in my rating

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

when will the ratings be updated

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

Is it first time or it happened before like 3 days after contest still not updated yet?

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

At least they should make an announcement to clear everyone's confusion.

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

When will the rating be updated, any idea?

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

Why have the rating changes not rolled out yet?

Been 3 days :(

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

The hell is going on?... atleast admins should clarify what's going on... we all r waiting from 3 days yet don't have any clue ...

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

I think there are many cheaters

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

Hello Codeforces Team,

I am user abdun_nafi. I received plagiarism warnings regarding my submissions in Educational Codeforces Round 180 (Rated for Div. 2):

  • Problem 2120D: Submission ID 325457138
  • Problem 2120E: Submission ID 325474337

I want to clarify that I did not intentionally share or copy any code. It is possible that my code was unintentionally leaked through a public compiler (such as Ideone.com), or that I used a solution approach or template that was common or widely known.

I deeply regret this situation and sincerely apologize if there was any unintentional mistake from my side. I respect the rules of Codeforces and will make sure to follow proper precautions in the future to ensure this doesn’t happen again.

Thank you for your time and understanding.

Kind regards,
abdun_nafi

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

What a facinating problem the E is!!!

Besides, why the editorial is not connected to the competition page?

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

I solved first 4 probs why is my rating 581 only @organisers

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

After seeing rating changes it feels like i have won something! Thumbs up who also feels like its a win?

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

Has anyone received a score from this contest?

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

Have you checked MOSS yet?

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

so my rank for some contests have increased from what they were before. This is probably because of the rollbacks. So when will the changed ratings come?Or will they not change?

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

Hello Codeforces Team,

I am user abdun_nafi, and I recently received plagiarism warnings for the following problems in Educational Codeforces Round 180 (Rated for Div. 2): - Problem 2120D (Submission ID: 325457138) - Problem 2120E (Submission ID: 325474337)

I would like to respectfully clarify that I did not intentionally copy or share my solutions. It is possible that: - My code was unintentionally leaked via a public compiler (such as Ideone, Replit, etc.) without my realizing it, or - I followed a common approach or known pattern that many others also used.

I sincerely apologize if there was any mistake from my side. I fully understand the rules now and commit to: - Using only private, secure environments in the future, - Writing original and personalized code, - Following the Codeforces rules carefully.

Please let me know if there’s any way I can clarify further or cooperate.

Thank you for your time and understanding.

Best regards,
abdun_nafi

»
11 months ago, hide # |
Rev. 5  
Vote: I like it -20 Vote: I do not like it

.

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

Hello Codeforces team,

Handle: khanna_dhruv
Submission ID: 325731757

Hello, I received a system message saying my solution to problem 2112B in Educational Round 180 coincided with another user's submission.
I want to clarify that I wrote my code entirely on my own using Sublime Text on Ubuntu, without using any online IDE like Ideone or sharing it with anyone.

If the match is real, it may be a coincidence — or perhaps the result of using a similar idea for the problem. I'm happy to provide evidence that helps verify this.

Please let me know how I can assist further.
Thank you for your time.

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

Dear Codeforces team,

I have received the notification regarding the similarity of my solution (325771030) to other submission in the same problem.

I want to clarify that I worked entirely on my own during the contest and did not share my code with anyone. I also did not use any public online IDEs like ideone.com with public settings. I wrote the solution locally on my computer using FarManager.

If there is similarity, I believe it might be due to the simplicity of the solution or standard implementation patterns, as the problem itself had a rather straightforward idea. I assure you that I had no intention to break any rules, and I fully respect the Codeforces community and its integrity.

Please let me know if there is anything else I can provide to clarify the situation.

Sincerely,
Amir Osmonaliev EclipsD

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

Dear Codeforces team,

I have received the notification regarding the similarity of my solution 325782421 to another submission for the same problem.

I want to clarify that I developed my solution independently, using Visual Studio Code with Copilot enabled. I relied on my own intuition and understanding of the problem to write the code. At no point did I share my code with anyone, nor did I use any public online IDEs or platforms with public access.

I think that any overlap between my submission and others is a consequence of the problem’s straightforward logic or typical implementation strategies. I assure you that I acted in good faith and fully respect the principles of fairness within the Codeforces community.

Please let me know, if you need any verification.

Regards AlgosXeno

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

Dear Codeforces Team I don't know why you skipped my submission of probelm C of this contest, and messaged me that my solution coincides with other people solution, even though I did that problem myself and used standard technique of two pointers to select first two no and iterated in a loop for selecting 3rd number. I also viewed submission of other people whom you said it coincided and they were also using it. But there was no fault of mine for using a standard technique used by many other. I hope you see into this matter and resolve this.

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

Please ban Destroyer0069 !

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

I have had a coincidence where my code on this contests question has been similar to somebody else's code, it is just a coincidence, I do not know that person personally and i hope the platform understands that, and if not, then what shall i do?

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

Hello Codeforces Team,

I received a message regarding a coincidence between my solution (Submission ID: 325758058) and another user's submission (Submission ID: 325747798) for problem 2112C.

I would like to clarify that I do not know the other user, and I have had no communication or discussion with them regarding this contest or problem. I wrote the entire code independently during the contest. The logic and implementation are entirely my own.

I have never used or published my solution on any public platform like Ideone, Pastebin, GitHub, etc., and I do not understand how this similarity could have occurred. I take Codeforces rules very seriously and would never engage in any form of plagiarism or rule violation.

Please let me know if you need any additional information from my side to investigate this further. I am happy to cooperate fully.

Thank you for your time and understanding.

— Karan Aggarwal (karanaggarwal01)

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

Ban all these cheaters ^^^

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

Hello CODEFORCES, I just got message that my submission match with another guy I have added comments to explain the way I think and I just resubmit them please check them

»
11 months ago, hide # |
Rev. 3  
Vote: I like it -8 Vote: I do not like it

.

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

Hii

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

.