CutieSmileHaruka's blog

By CutieSmileHaruka, history, 11 months ago, In English

你好,Codeforces!

We (FeOI and WAOI Team) are glad to invite you to take part in Codeforces Round 1035 (Div. 2), which will start on Jul/05/2025 17:35 (Moscow time). You will be given 6 problems and 2 hours to solve them.

The round will be rated for participants of Division 2 with a rating lower than 2100. Division 1 participants can participate unofficially.

All problems are authored by lizhous, Lyz09, ma2021tyoi0037 and me.

I would like to thank the following people for making this round possible:

We hope you will enjoy and have fun in the contest.

Score distribution: $$$500 - 1000 - 1500 - 2250 - 2500 - 3000$$$.

update 1: Editorial is out!

update 2: Congratulations to the winners!

Div. 1:

  1. ksun48
  2. BurnedChicken
  3. potato167
  4. StarSilk
  5. antontrygubO_o

Div. 2:

  1. hooting_crystal1604
  2. blueMOON137
  3. waste_
  4. arashmemar
  5. zhenzitou
  • Vote: I like it
  • +297
  • Vote: I do not like it

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

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

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

    user:Yujihae well i submiited same code which got wrong before 4 times doing just minimal changes and it got skipped bro...what is this ,it is just ruining someone's hardwork.

  • »
    »
    10 months ago, hide # ^ |
    Rev. 5  
    Vote: I like it -17 Vote: I do not like it

    [user:Yujiahe]please look upon to my issue i resubmiited just same code doing minimal changes 4 times on 5th time it got skipped although it was giving wrong answers on first test case.later on i again submitted it,it didn't get skipped.finally i just want to say i am not a cheater if i have to cheat i would not have submitted solution after 50mins which is wrong on first test case.please review this issue and provide an explanation for this

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

seems I should not greet the author a hello back, so I am being downvoted :(

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

I am noob in coding rn but will try to solve at least problem A in this div 2 contest

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

hope my turtle hermet schooling works this time??

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

Hope problems be easy for beignner

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

OMG!! Chinese round

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

Thanks for the contest!!!

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

Hope problems will be anti-AI , rather than similar to those in 1033....

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

As an author, I hope all the contestants GL & HF!

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

try to recover from last contest

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

wtf is FeOI and WAOI

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

He was promoted from IGM to LGM four days after testing

Why do you use passive voice? There's no one to promote him lmao. Isn't it "He promoted from IGM to LGM four days after testing"?

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

I think this contest will be full of math.

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

I hope to break my streak of negative deltas.

Also based on the score, this might be a speedforces round ... lezzgo !!!

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

As a tester,I think this contest is really interesting.

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

Hope to see an easy contest

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

GreedyCoder234 is a cheater. Report her

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

Hoping I could perform at my potential this time :P

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

hoping to get CM this round, fingers crossed

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

I'm depressed by my recent performance

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

I've been CM six times. Hope that I can become a Master this time.

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

Hope to enjoy in the CN Round!

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

I wonder if the round is more difficult than Div.2 in Luogu.

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

Oh, Chinese round!!

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

lets goooo

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

I think this contest is really interesting.

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

Excited

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

This contest is so orz that I have to compete. Hoping for a positive delta—I'm tired of catching up with my bro.

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

hi guys, i have a question that my old accout is disabled by the administrator codeforces, the question is my old accout is banned forever or temporary, i just violate once time. Tks you guys

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

I wish success to all participants... My friends, you are legends.

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

is this a harder div 2 cause c is 1500 and b is 1000

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

As a tester, good luck.

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

Always stuck on C/D...

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

Glad to see 你好,Codeforces!

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

orz Chinese round

only Chinese can understand
»
10 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

OH yeah! I am ready for this new challenge

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

Hoping to get to specialist after this round.

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

Score distribution: 500−1000−1500−2250−2500−3000

As a Codeforces beginner, I'm not quite sure whether the score distribution represents the approximate difficulty gaps of the problems. Does it mean there's a high possibility that D would be significantly harder than C, or there's actually no fixed relevance between score distribution and absolute difficulty?

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

Good luck to everyone.

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

Summoning rating for this contest

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

hope to reach 1700+)

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

good luck !

»
10 months ago, hide # |
Rev. 9  
Vote: I like it +111 Vote: I do not like it

dear MikeMirzayanov and KAN:

my alt 16777mt16 has been banned during this contest and the submissions have been skipped. can you tell me why am i banned? because of using ai? NO, i have not used ai.

i know my actions may not match my current 'specialist' level, but i've written many, many 2800 problems and i've got a 2440 rating atcoder account(name ultvoW_mEden. i'll mark that in my AT account soon). besides, i'm very good at counting problems. i didn't want to lose too much points so i watched d at the beginning of the contest. luckily d is a counting problem so i passed it quickly.

UPD1: i participated in codeforces far less frequently than in atcoder, because i'm Chinese and most contests in codeforces are late at night for me. THIS IS MY ATCODER ACCOUNT -> https://atcoder.jp/users/ultvoW_mEden

UPD2: this account is not trusted. i hope someone can proof that my codestyle is not inhuman and my speed matches my skills. i also hope that my friends can create a blog and speak for me.

UPD3: i asked the admins to re-enable my account because that is my main account, and i'm gonna write problems on it. i'll DEFINITELY not participate in ANY codeforces contests anymore unless codeforces get a MORE ACCURATE anti-cheat system. after i get trusted by my red friend, i'll publish a blog to expose how bad the anti-cheating system is. besides, my submissions SHOULD BE rejudged and the rating SHOULD BE rolled-back.

i'm innocent. can you please PLEASE look at my program and daily practice? i'm NOT ai at ANY side.

yours, 16777mt16.

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

why can't i see the standings?

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

I watched for 20 minutes, but I didn't understand what question D meant.

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

    I understand now, there was a problem with my translation, I misunderstood.[cry]

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

Seems like second problem is closely related to Goldbach's conjecture!

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

    I solved it using polynomial inequality, like we get two eqns, summation xi*cos(theta i)=q1-p1 and summation x2*sin(theta i)=q2-p2. solve using polynomial inequality

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

B ruined me

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

rubbish speedforces. D is much more difficult than normal round.It should be placed at E.

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

I hate bitset problem so much like it's unreal

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

Really enjoyed solving D. Great contest overall.

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

    Can you please share the approach??

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

      Instead of finding $$$f(a)$$$ over all $$$a$$$, we can consider all sequences of moves and find the number of valid $$$a$$$s that allow for that sequence of moves. A sequence of moves $$$s$$$ can contain each number from 1 through $$$n$$$ at most once (since there is only one token for each) and 0 any number of times. It must have length $$$n$$$. Furthermore, $$$0 \le s_i \le i$$$ for all $$$i=1,2,\dots,n$$$. Here, $$$s_i=0$$$ would represent not taking a token because the current number in a is 0, and otherwise $$$s_i$$$ means take token on $$$s_i$$$ on move $$$i$$$.

      There is a clear bijection between the original problem and our new system, since we are counting the number of pairs of (valid $$$a$$$, sequence of moves) for both cases. Then the answer is equal to the sum of the number of valid $$$a$$$ for each $$$s$$$ as described above.

      To find this answer, we can use dynamic programming with $$$dp[p][q]$$$ denoting that we have processed $$$p$$$ and later elements, and we have taken $$$q$$$ tokens ($$$q$$$ nonzero numbers) so far. Furthermore, this can be reduced to 1D since we only care about the last $$$dp[p]$$$'s results. Can you implement this?

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

        What i dont understand is, in this dp, how are we able to prevent recounting ?

        dp[p][q] += dp[p-1][q] (if S_p is 0, a_p has only 1 choice, i.e 0.)
        

        this is the part i dont understand:

        dp[p][q] += dp[p-1][q-1] * (k + 1) if we picked the kth token, so our a_p can be any element in the range [0..k]
        

        So wont there be a case that: if you removed q-1 tokens in i-1 turns, then you Might have removed the kth token already?

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

    please tell the idea behind the solution.

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

Is there a solution for B which doesn't involve decimal number ( from calculating distance between start and end ) ?

I wasted some time overthinking precision issues, which I think might be un-necessary.

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

    same

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

    Instead of taking sqrt you can square the other side of the inequality that has to hold

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

    Square is all you need

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

    Do everything in terms of the distance squared, which will always be an integer

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

      what was your condition which works with square distance, can u please tell me.

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

        You can rotate each segment as you like, which means the points you can reach are rotationally symmetrical. Therefore, for a given set of segments, the reachable points will lie in a ring, with inner radius Rmin and outer radius Rmax.

        Think about what adding each new segment does to Rmin and Rmax. You can iterate through each one, updating your ring. Finally, compare if the distance squared between the start and end points is within the square of Rmin and Rmax.

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

        The condition for being able to reach end is: max(0, 2 * ma — sum) <= dif <= sum

        ma -> maximum element in a
        
        sum -> sum of elements in a
        
        dif -> euclidean distance between p and q
        

        The condition above is the same as doing: max(0, 2 * ma — sum) * max(0, 2 * ma — sum) <= dif * dif <= sum * sum

        So you don't need to take sqrt of dif

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

    You can use the square of distance to avoid decimal numbers.

    Calculate the Min distance and Max distance you can go, and compare dis*dis with Min*Min and Max*Max.

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

      oh ok.. i used some other condition like triangle inequality which I was not able to convert to square of distances.

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

    My solent to B ~~~~~ // this is code void solve() { ll n,p1,p2,q1,q2; cin>>n; cin>>p1>>p2>>q1>>q2; ll m1=(p1-q1)*(p1-q1); ll m2=(p2-q2)*(p2-q2); vector a(n); ll k=0; ll kk=0; for(auto &it:a){ cin>>it; k+=it; kk=max(kk,it); } ll l=max(0ll,2 * kk — k); if(k*k>=m1+m2&&m1+m2>=l*l)cout<<"YES"<<'\n'; else cout<<"NO"<<'\n'; } ~~~~~

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

How to do C ?

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

    if n is odd, take all the values as l itself as xor of odd nos of l will give l and & will give l as well. also the highest set but of l and r must be diff or incase of n being even, xor of values will defn not have the highest bit set whereas it will in the & of the values. if n is even take first n-2 values as l and rest as the power of 2 greater than l

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

    Consider two cases:

    1. when n is odd, then if you put all l values in the array, your second condition will be always true, and it's also lexicographically smallest.

    2. When n is even, then first find the minimum number x, such that x&l == 0.

    -> Here you should make sure this x <= r and now you will just put l from 1 to n-2th and for n-1 and n-2 position put this x.

    -> Take care of when n is 2, in that case answer will be -1

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

      I was making the mistake of constructing it as half and half instead of n-2 and 2 :(. Realized the mistake at the very end and couldn't make change and submit in time. Nonetheless fun contest. In my mind I almost solved 3 so I'll take that as a win.

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

    if number of terms are odd then all elements in the array will be equal and since we have to find lexicographical minimum all elements will equal to l now if no of terms are even then all elements can't be equal since it will make & value non zero so what you have to do is take one number x such that l&x=0 and replace last two elements will be x and first n-2 elements will be l and if x>r then no else yes this can't be done for n=2 so when n=2 ans is no

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

    I did case work.. if n is odd.. you can just do l l l l... n times

    but for even .. you will always have and value zero because if you have 1 bit in and then all bits have to be 1 .but then xor for that bit will be zero .. because of even count of 1s

    so we have to make and value zero so MSB can't be same. so we have to look for next power of 2 after l called p .. and then you can make l l l . .. p p and n=2 has no solution ... also if p > r no solution

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

    [Deleted]

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

    If n is odd, we can clearly see that, if we choose a[1] = a[2] = ... = a[n]:

    a[1] & a[2] & .. & a[n] = a[1] xor a[2] xor ... xor a[n] (since a[1] xor a[2] = 0, a[3] xor a[4] = 0, ... a[n-2] xor a[n-1] = 0, giving us with 0 xor a[n] = a[n])

    So clearly, the lexicographically smallest would be a[1] = a[2] = ... = a[n] = l.

    If n is even, then there are 2 cases:

    • n = 2:

    There does not exist 2 positive integers x and y with x xor y = x and y

    Because if x & y contains a bit that is 1, the corresponding xor bit would be 0 and vice versa (there is only 1 exception, that is the bits are 0, but then, x and y would be 0, contradicting to the fact that x and y are positive integers)

    • n >= 4:

    The most straightforward way is that a[1] & a[2] & ... & a[n] = a[1] xor a[2] xor ... xor a[n] = 0.

    For the array to be lexicographically smallest possible, the array should be in the form:

    [a,a,a,a,...,a,b,b] where a is L and b is the smallest number such that L & b = 0. b can be found in O(log n). We can see that L <= b <= R, so if b > R, print out -1.

    Now we only have to manipulate the position k. If k+1 >= n then print out b (a[n-1] and a[n] should be b) else print out L

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

    consider parity of n

    if odd we can just put l n times, because xor = l and and = l if even we can put l n-2 times, and something entirely disjoint from l 2 times, it turns out the smallest number that's entirely disjoint from l is 2^(msb(l)+1) as all previous bits, including msb(l) will be off. Because its disjoint the ands cancel out as well as all the xors, we result with 0 and 0 for and and xor.

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

Do I just suck at geometry or is C actually easier than B (I think both lol)

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

Authors have a good taste in music :)

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

I won't register for chinese round any more :(

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

E is cool, but I like D very much. Also, this feels like a div 1 round lol

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

Once again on CF: terrible problem selection and round coordination. I had a chance to try problems from A to D. All of them are just pure math, no programming at all. From A to C it's just about handling edge cases, problem D I couldn't solve, but seems to be combinatorics. Authors, next time please consider giving it to math contest instead of programming competitions.

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

When I solved div2C my rank on the standing table was around 700 to 800.. but even when only 900 people have solved div2D, I thought my rank would be around 900 to 1000 because I didn't make any wrong submissions..

But my rank at the end is nearly > 1400 ... how can it fall so much when there are not too many AC for div2D

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

    mostly because of point's system like me and many friends of mine solved C first then they go for B,so since one who had solved c at 15th minute and B at 30th minute and you had solved c at 25th minute and b at 15th minute chances can be a guy who had solved c at 15 minute will ranked higher for more information refer this blog

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

another trash round :/

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

950th rank and 6,000th rank solved the same amount of problems.

So the difference between Pupil and Candidate Master is how fast you figure out the little xor & trick.

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

Didn't really enjoy the problems, maybe that's skill issue on my end :)

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

It's true that mathematics is crucial for algorithm competitions, but aren't you taking this mathematics thing a bit too far?

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

This round (A-C) was more about edge cases than programming, I personally didn't enjoy it.

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

D, very good problem, I love it

E, shit, if it's put on C then >1000 people can solve it. Ai is only used in a process of *800 difficulty, just brute force Onlog^2n dp without any thinking can pass it

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

    please give idea of D solution, thanks.

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

      let f[i][j] be (i~n) choose j token to take

      then in i-th place:

      1. don't take that token. f[i][j]=f[i+1][j]

      2. take it. there are (n-i-j+1) places to put that token. when you have the position i then the a[i] can be 1~i so f[i][j+1]=f[i+1][j]*(n-i-j+1)*i

      then the final answer is f[0][0]+..+f[0][n]

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

        ok thank you

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

        Nice explanation. I was very close, and I loved it

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

        What do you mean by "there are (n — i — j + 1) places to put that token"? I think that if i = 1 and j = 0, we can only place it in one spot—so why are you multiplying by n?

        Also, I understand that a[i] can be between 1 and i, but doesn't it matter where I place it? Why are you multiplying directly by i?

        • »
          »
          »
          »
          »
          10 months ago, hide # ^ |
          Rev. 2  
          Vote: I like it 0 Vote: I do not like it
          1. i=1 and j=0 means you didn't let any i in 2-n to be already paired so that all i in 1-n can be paired with token 1, it's of n-i-j+1 choices. n-i is i+1 to n, j is the places already being paired, +1 is i itself

          2. Because no matter which number you write in ai it has this certain way to pair so it means there are i ways this certain way to contribute to the final answer That's like for each pairing ways I calculate the number of corresponding a[] and get the sum, so one a[] can be calculated many times

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

            Thanks for your explanation! Could you explain why a[i] must be positive when taking the i-th token?

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

        Thanks man !

        Just loved your explanation

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

    I solved D but E felt to me much more difficult (just at first glance), what is your solution to it please ?

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

    I suppose the *800 part is let p_i be A_i bitwise OR A_i-1, and then the problem has nothing else to do with A_i afterwards.

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

is it a norm now that B should be the trickiest problem of the contest

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

Just another trash round.

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

Nice problems! Enjoyed D specially. contest was more about math but :(

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

should have attend biweekly instead

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

1 word: Trash

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

EdgecaseForces Round

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

I am getting atleast -200 lmao

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

is B pure math or am i missing any observations?

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

    triangle inequality for me

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

    You can always choose a direction that reduces the distance to however much you want for example you are at $$$(0, 0)$$$ and want to go to $$$(5, 0)$$$, $$$a = [3, 4]$$$, you can always use your first move to go to a point having where the distance between it and $$$(5, 0)$$$ is $$$4$$$, so as long as the distance doesn't exceed the sum of $$$a$$$ there always a solution

    unless there is a number in $$$a$$$ larger than the rest, this will make the minimum distance you can move $$$2 * max - sum$$$

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

What's the idea for D

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

    Reverse the problem. Don't ask which token can I place at a_i, but where can each token go. Token i can only go to some place >= i. Then, think about how many of those places might already be occupied.

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

      they are multplying by all positions ahead of i that are not zero, but does not it depend on what the number on those positions was used, maybe that pos has a number which does not allow it to pick up till this location

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

        I don't know what you mean by "they". What I did was make a dp of length n and dp[i] representing ways when i tokens have been removed. Now for each token j, I know if i tokens are removed j is the I+1st token removed and the available space for this jth token is (n-j)-i as exactly i of the places after j should be occupied.

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

horrible contest

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

Going to get my first negative, TwT. I hate Bit!

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

WHY DO I SUCK AT THIS

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

I would really like to know what those who say before the competition ((( as a tester it is a very good competition ))) really do? div3 has become very easy div2 has become very difficult and question B is becoming more unsolvable The questions are all mathematical and it has been centuries since a question about graph has come up

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

I demand the removal of the law that reduces question scores over time.

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

Today's contest was exceptionally hard for me. After spending 50 minutes on D, I instinctively knew that I was not going to solve it today. Will look into the editorial afterwards.

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

why the hell was D harder than most ~2400 problems for me

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

Misread problem D and solved to find distinct removal configurations.

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

I had fear of C now I have fear of B :)

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

I think D is about *2400

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

Good round! Enjoyed problems A-D. Especially loves that all of them are more mathematical + you can't solve them "by-AC" — as for me it's very good when problem demands proof of solution.

But, as for me, there is a much gap between C & D ( 7340 & 980 ). As for me it's not very good and for people around 1400-1800 it will be better be one more problem between them.

Anyway, great round!

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

I got stuck on C :(

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

Does anyone see that bond_at_codeforces (top 34 on the rankings) is an alien / cheater? 26 seconds between submission of prob A and prob B is insane

Also, how does this guy do 4 problems in under 3 minutes??

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

I didn't noticed the "lexicographically smallest" part of the C and kept wondering for 20 mins about the uniqueness of the solution .

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

B>C

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

what is the problem with my code? in test case 2 it says wrong but locally i get the right ans.

void solve(){
    ll a,b,x,y;
    cin>> a >> b >> x >> y;
    ll sum=0;

    if(a == b){
        cout << 0;
        return;
    }
    else if(a > b){
        if((a%2 == 1) && (abs(a-b) == 1) ){
            cout<< y << endl;
            return;
        }
        else cout << -1 << endl;
    }
    else if(a < b){
        if(x>y){
            while(a<b){
                if(a%2==0){
                    sum += x;
                    a++;
                } 
                else {
                    sum += y;
                    a++;
                }
            }
        }
        else if(x<=y){
            while(a<b){
                sum += x;
                a++;
            }
        } 
    cout << sum << endl;
    }[problem:2119A]

}

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

    cout << 0 << endl; please

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

    If the current value of a is even then you can perform both operations to get an increment of 1 (Lowest order bit is 0 so XOR_ing with 1 is same as +1) so the loop should look like :

     if(x>y){
                while(a<b){
                    if(a%2==0){
                        sum += y;
                        a++;
                    } 
                    else {
                        sum += x;
                        a++;
                    }
                }
            }
    

    There is a logical mistake as well since you cannot use the XOR operation to increment for Odd number and hence you perform +1 operation when current value is odd At which point you entire logic (for a<b branch) could be reduced to :

    while (a < b)
            {
                if (a % 2 == 0)
                {
                    cost += min(x, y);
                }
                else
                {
                    cost += x;
                }
                a++;
            }
    
  • »
    »
    10 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    You mistakenly added x during the XOR operation and y during the addition operation.

»
10 months ago, hide # |
 
Vote: I like it +43 Vote: I do not like it
»
10 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

When is editorial coming out?

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

E is too hard

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

performance was somewhat subpar but the music was awesome :D

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

I solved A and C but have absolutely no idea about B (Maths especially Geometry is really weak). Nothing. Can someone please provide me a hint by hint solution for it, it will be really helpful. Thanks !!

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

    Up Up

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

    The worst way to get closer to the point is to go on the opposite direction. If a move is the highest one, and it is more than the distance, you can go at most on the opposite direction, and then you have to go back straight with all the other moves. So each move should be less or equal than the sum of the other moves + the distance between the two points. If a move is less than or equal than the sum of the others + the distance, there are infinite ways to combine the moves to get to the final point

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

    its just triangle inequality but generalized for any N-sided figure

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

    Here you go

    Hint 1
    Hint 2
    Hint 3
  • »
    »
    10 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    There are 2 cases.distance to target is too far, or distance to target is too close.

    Too far is easy, too close is the triangle inequality

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

    hi

    Let $$$P_1$$$ be the first point and $$$P_2$$$ be the second.

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

    Let's define the point $$$P$$$ as $$$P(p_x, p_y)$$$.

    Hint 1
    Proof of hint 1
    Hint 2
    Answer to hint 2
    Hint 3
  • »
    »
    10 months ago, hide # ^ |
    Rev. 4  
    Vote: I like it 0 Vote: I do not like it

    My Solution got accepted. Thank you everyone, reading all the different approaches and hints definitely helped build the thinking required for such problems. One major issue I was facing was treating squared distances the same way as normal ones, but I was wrong:

    Polygon inequality is not true if all distances are squared, a1^2 + a2^2 + ... + an^2 + Correction Term >= 4*distPQ*distPQ -> Is True a1^2 + a2^2 + ... + an^2 > 2*distPQ*distPQ -> Not necessarily true due to the missing correction term.

    The floating point numbers work but yes I also don`t have the habit of using floating points so not sure if a solution with them is good or not. Thank you others who have provided solutions without floating points.

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

editorial ?

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

When will rating change will take place???

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

Math mains: A, B, and C are trivial! Everyone else: This contest was trash

Anyways, A: its just +1 but look for A = B+1 and odd edge case B: look for distances edge case and triangle inequality C: odds and evens and just replace 1s with 0s for even N

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

Someone streamed solutions here during contest https://www.youtube.com/live/kgB5w4AxdFk?si=kGOMS9BQXLKaYYIV

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

solved B but I have a feeling my solution is incorrect, consider this test case:

1
3
1 1 1 11
2 2 7

shouldn't this be YES? rotate the first 2 segments by x where 4cos(x)=3?

edit: nvm i do get YES, i was running the wrong code lol

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

that was my first contest ever, and daamn I was STUCK af

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

YuJiahe well i submiited same code which got wrong before 4 times doing just minimal changes and it got skipped bro...what is this ,it is just ruining someone's hardwork.

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

I have some questions about problem B when calculate the mindist. Why just when maximum * 2 < sum, mindist will be 0. I try to solve it by DP, but it was hard for me.

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

user:Yujihae well i submiited same code which got wrong before 4 times doing just minimal changes and it got skipped bro...what is this ,it is just ruining someone's hardwork.

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

Hello Everyone,

Is it due to rounding errors while calculating square root in Problem B that the approach doesn't work ?

Although I learned to never use sqrt on mathematical questions :))

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

I anyone is also pissed off by B and waiting for the editorial, here's the thing.

Idea: if it's possible to build the polygon with N+1 sides [a1, ... , an, d], where d = dist(x, y), then YES, NO otherwise.

Condition — there's no a single side which exceeds the length of all the others (kinda same thing as for possible triangle check).

Implementing straightaway d=sqrt() didn't seem to work (IMO due to precision issues), so

  • consider D = d * d, s = sum(a[i]), S = s * s
  • check S < D
  • consider mx = max(a[i]), MX = mx * mx, r, = s - mx, R = r * r
  • check mx > r + d --> mx - r > d --> (mx - r)^2 > D --> MX + R - 2*mx*r > D
  • »
    »
    10 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    mx - r > d --> (mx - r)^2 > D

    mx - r > d </- (mx - r)^2 > D

    The second might be true but, at the same time, the first might not be true.

    If our goal/desire/designation is to check mx - r > d we might choose to use from abundance of information of a particular situation, in particular, that d > 0. So if mx - r > d to happen --> mx - r > 0 must happen.

    mx - r > d <--> (mx - r > 0 and (mx - r)^2 > D)

    Statements are interchangeable (in this universe).

    In more general case, that is with less information which force us to operate in general terms, there is this:

    a > b <--> (a > 0 and b > 0 and a^2 > b^2 or a < 0 and b < 0 and a^2 < b^2 or a > 0 and b < 0).

    // ImPoSe TaRiFfs hoooooGE

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

    it does work with sqrt but it seems like what we need to consider is that it might be not a polygon in a strict sense (two-dimensional shape formed by connecting three or more line segments (sides) end-to-end), this could be just a line and in this case a1 + a2 + a3 +..+aN-1 could be equal to aN wherease in polygon case it must > aN for all sides(only then you can build a polygon). This tripped me up during contest as i considered only the condition with > and not =.

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

My solution for D.Token Removing with modulus functions defined in my template gives time limit exceeded

327642840

but replacing them with normal modulus operations it get accepted

327643413

is the time limit too strict or am i missing something (like modulo operations time complexity when modulus is non-prime)?

pls suggest me most efficient way to perform modulo operations

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

Enjoyed it

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

whoa!! I am awake next morning to upsolve D.. but no editorial.. please update

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

Well I'm quite a new competitor.Who could teach me how to read tutorial?

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

    you are using words like quite and could .. then you have good english .. so you can read the english part...

    but because editorial on codeforces are short.. it is difficult to understand the full logic sometimes...

    if it is a recent contest I generally comment on the contest announcement or editoral post and ask people to help me understand it ..

    or if it is a an old question .. I try to paste the editorial to chatgpt and ask it to explain it to me.

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

It was a nightmare..!

»
10 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it
bool fn(vector<ll> sides) {
    ll totalSum = accumulate(all(sides), 0LL);
    ll maxi= *max_element(all(sides));
    totalSum -= maxi;
    if (maxi > totalSum) {
        return 0;
    }
    return 1;
}

void solve() {
    int n;
    cin >> n;
    ll a, b, x, y;
    cin >> a >> b >> x >> y;

    ll distSq = (a - x) * (a - x) + (b - y) * (b - y);

    vector<ll> sides(n);
    for (int i = 0; i < n; ++i) {
        cin >> sides[i];
        sides[i] *= sides[i];
    }

    if(n==1){
        if (sides[0] == distSq) {
            cout << "YES\n";
        } else {
            cout << "NO\n";
        }
        return;
    }

    sides.push_back(distSq);
    if (fn(sides)) {
        cout << "YES\n";
    } else {
        cout << "NO\n";
    }
}

help me <3

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

CutieSmileHaruka, why no editorial yet?

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

How to E?

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

Nice music

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

a very good solution of the contest: solution for F

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

Editorial ?

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

May I ask when would the tutorial be released

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

I am unable debug why it showing WA-6 327713353

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

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

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

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

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

Problem D and E is too hard.

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

I cannot see other people's code in the open hack stage of div3, and it shows N/A. How can I solve this problem? Is it a blind hack? In addition, I successfully became a green name after two div2 games, but now I still cannot see other people's solutions. How can I solve this problem? Or what specific requirements must be met to be allowed to see the code? Do I need to participate in a certain number of games or reach a certain rating?

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

Dear Codeforces team,

I would like to sincerely apologize for the situation regarding my submission for problem 2119D (submission ID: 327573902).

During the contest, I was physically present with my friend. We were solving the problems side by side, and I did not realize that this kind of collaboration, even without any intention to cheat, is considered a serious violation of Codeforces rules.

I now fully understand that any similarity between submissions — intentional or not — is not allowed, and I take full responsibility for this misunderstanding. I assure you this will not happen again, and I will be much more careful to follow all contest rules strictly in the future.

I kindly ask for leniency and hope you will consider this an unintentional first-time mistake.

Thank you for your understanding and for maintaining the integrity of the platform.

Best regards, [Artinzer0]

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

Hello Codeforces team,

I received a plagiarism warning for my solution 327591317 to problem 2119D, allegedly matching user GOW1455. I want to sincerely clarify that I did not cheat or share my code with anyone. I wrote the solution independently using VSCode on my personal computer.My VSCode proof

I later found out that the other user is from my college, but I don’t know them personally and had no interaction with them during or before the contest. I did not use any public IDEs (like Ideone), did not screen-share, and did not post my code anywhere.

I understand that unintentional similarities can occur, especially among students with similar backgrounds or problem-solving strategies. However, I assure you I participated honestly, and any similarity is purely coincidental.

I kindly request a manual review of my submission. I am also open to providing any additional information if required. Thank you for your time and understanding.

Best regards, ShaikJameelUrRahaman.

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

    @MikeMirzayanov Could you please take a look at my appeal above? I’ve explained the situation in good faith and would really appreciate a manual review of my submission. Thank you!

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

Username: Sachin250902 Submission ID: 327611833

I just received a message that my solution for problem 2119C coincides with other users. I want to clarify that I did not share my code with anyone, nor did I copy it from someone. I have no idea how others got similar code.

I might have written a common or simple solution that others also used, or it's possible my code was copied without my knowledge. I did not upload it to any public site or share it intentionally.

I kindly request you to reconsider the situation. I accept the rules and will make sure this doesn’t happen again. Thank you for your time

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

Hello Codeforces team,

I sincerely apologize for my actions during Round 1035.

During the contest, I watched a livestream on YouTube and ended up using part of the solution shown there in my submission. I now realize that this was a clear violation of the contest rules, and I take full responsibility for my mistake.

At the time, I underestimated how serious this was. I now fully understand the importance of fair competition and the integrity of this platform.

Please consider this my honest apology. I promise that this will never happen again. I truly want to learn and improve through Codeforces, and I hope to be given another chance to participate fairly.

Thank you for your understanding.

Best regards,
kytrieu

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

Hey Codeforces team,

I got a warning on my submission 327620327 for problem 2119C, and I just wanted to say that I wrote the code completely on my own. I didn’t copy or share it with anyone, and I’m honestly surprised it turned out similar to others — it must’ve been a coincidence.

I’ve been putting a lot of effort into learning and improving through these contests, and I’ve always tried to follow the rules. It would really mean a lot if you could take another look at it.

I know I still have a long way to go, but I genuinely want to grow in the right way. Please don’t let this one misunderstanding affect the hard work I’ve been doing.

Thanks for your time and understanding. (PranshuSharma357)

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

Subject: Request for Re-evaluation of Plagiarism Flag – Submission ID 327579970 for the problem 2119B and Submission ID 327582445 for the problem 2119C Dear Codeforces Team,

I’m writing to address a plagiarism notification I received regarding my submission (ID: 327579970) for Problem 2119B and my submission (ID: 327582445) for Problem 2119C. It has been flagged for matching with another user's solution. and I would like to firmly state that I worked on the problem independently without any external assistance.

I wrote my solution in VSCode on my personal machine, and at no point did I share my code, use any online IDEs, or make my work publicly accessible. I also did not communicate or collaborate with any other participant during the contest.

I understand that coincidences in logic or structure can sometimes occur, especially when many participants arrive at similar approaches to solve a problem. That said, I want to emphasize that my work was done with complete integrity.

vs code proof https://drive.google.com/file/d/1zOIuiPii-byAZJ9Qkant6ORZZgYdVYzP/view?usp=sharing https://drive.google.com/file/d/1tevAi3hpCEN1o_6ckvdg2dCNqdS3lIwv/view?usp=sharing

I’m more than willing to provide screenshots, logs, or any other proof needed to support my case. I accept the rules and make sure that this does not happens again

Thank you for your time and attention.

Sincerely,

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

Hey Codeforces team,

I received a message today that my solution 327601871 for the problem 2119C, coincides with other's solutions. I have not shared my code with anyone. I have explained my solution in details in this submission, how i approached it (328534134).

I do not have online compiler history but I can prove that i have not violated any rules. In just previous problem, i submitted wrong solution 3 times, because of pow() function instead of doing x*x. Also, it took me nearly one hour for me to solve a 1500 ratings problem (B at 20:38 and C at 21:24), which should not been taken if i was cheating.

I only have these Circumstantial evidence to prove my innocence. If, I have unintentionally submitted a very common looking solution, I sincerely apologize. But I would like to say that it took me 1 year and 400+ LC problem to reach pupil at CF, if i wanted to cheat i would have achieved it under 40 problems.

Please team Codeforces, take a look at it.

Thank you.

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

Hello,

My solution to Problem A 327536304 was recently skipped due to alleged similarity with other submissions. I would like to clarify that I used Dijkstra's algorithm purely because the constraints were very small (n ≤ 100), and I couldn’t come up with the intended solution in the first couple of minutes, as I usually do for Div 2A problems. The approach worked within the limits, so I went ahead with it.

I’ve looked at some of the other flagged solutions, and the only commonality is the use of Dijkstra's algorithm, a well-known and standard technique. There’s no unusual similarity in code structure or implementation details beyond that.

I've been participating in contests regularly for months, and I would never consider cheating on a Div 2A problem. This contest was particularly meaningful to me, as it pushed me to Candidate Master for the first time.

I respectfully request that you review my submission again and lift the skipped status.

Thank you.

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

Hello Codeforces team,

I have received the notification that my solution for Problem 2119A coincided with other submissions in this round.

I want to clarify that I did not intentionally share my code with anyone, nor did I copy it from anyone else. I understand that my solution matching others so closely may still be considered a violation of the rules.

I fully respect the rules of fair competition, and I apologize for any inconvenience caused. I will make sure to be more careful in the future to avoid any similar issues.

Thank you for your understanding and for your hard work organizing these contests.

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

Hi, I'm appealing the flag on solution 327610026 (problem 2119C). I regularly use Ideone without knowing that the default setting makes code public, which unintentionally allowed others to see and copy it.I can also provide with the logic of my code .I didn’t share links or collaborate—I simply didn't realize I needed to manually switch it to private. Today after getting an alert, i realised about this feature... I sincerely apologize for the unintentional leak. This was not deliberate plagiarism. i wont repeat this mistake next contest.

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

Dear Codeforces Team,

I recently received a plagiarism notification regarding my submission 327600525 for Problem 2119D. The report mentions that my code significantly coincides with several other submissions. I want to clarify that I am genuinely surprised and distressed by this notification, as I have neither shared my code with anyone nor copied from any external source during or after the contest.

I wrote the solution entirely on my own during the contest. I did not use any online collaboration tools, public IDEs, or code-sharing platforms like Ideone, Pastebin, GitHub, etc., in public mode. I also did not communicate or collaborate with anyone during the contest. I have taken every possible step to protect the integrity of my submission.

I understand that Codeforces uses robust tools to detect similarities, and I respect the platform's efforts to maintain fairness. However, in this case, I kindly request a re-evaluation of the context of my submission. I have no idea how my solution ended up resembling so many others, and I can only assume that perhaps a common implementation strategy, standard algorithm, or widespread idea led to this overlap.

As someone who values the learning and challenge aspect of competitive programming, I have always strived to follow the rules sincerely. This incident has left me quite disheartened, but I am fully willing to cooperate if further clarification or proof is required from my side.

I respectfully request that you consider my explanation and intent, and I sincerely hope for a fair and just review.

Thank you for your time and the effort you put into keeping Codeforces fair for all.

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

Subject: Clarification on Submission 327600945 (Problem 2119A)

Hello, I received a plagiarism warning for my submission 327600945 for Problem A (Add or XOR) from Round 1035. I want to clarify that I wrote the code completely on my own using a standard Dijkstra-based approach, modeling each value as a node in a graph and using weighted edges for the two operations. I did not copy from anyone, and I did not share my code. I also did not use any public IDE like Ideone or Replit during the contest. This is my first time encountering such an issue, and I take the rules very seriously. I kindly request you to review my case. Thank you for your time and consideration.

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

Hi, my solution for problem 2119C (submission 327613006) was flagged for plagiarism. I want to clarify that I wrote the code myself and did not copy from anyone. I do not know Herikpatel02 nor did I share my code with anyone. If there is any similarity, it may be due to a common algorithm or template. I request a review of the decision. Thank you.

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

Hi Codeforces Team,

My submission 327537417 for problem 2119A was flagged due to similarity with others. I submitted the same logic earlier on CodeChef (ID: 1165443773, submitted ~1 month ago). The problems were different, but the approach overlapped naturally. I wrote and adapted it privately using my own code, no sharing or public paste sites.

Here’s the CodeChef link for reference: https://www.codechef.com/viewsolution/1165443773

Thank you for reviewing this. I’m happy to provide more details if needed.