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

Автор KAN, 5 месяцев назад, По-английски

Hi Codeforces!

On Dec/06/2025 11:15 (Moscow time) we will hold Codeforces Round 1069 (Div. 1) and Codeforces Round 1069 (Div. 2). Note the unusual starting time!

The harder problems of this round are based on the problems from the Final round of Yandex Cup 2025, Algorithms track, that will be held at the same time.

The problems are authored by v_vsg, heesooyaam, teraqqq, LeoPro, isaf27, elshiko, Flyce with guest problems from napstablook, sunkuangzheng, and great help from Vladithur, Dominater069, and tourist.

I'd like to thank Um_nik, Akulyat, okwedook, Merkurev, conqueror_of_tourist, Dominater069, cadmiumky, OG_Maksimchick4, Iguanado for testing the round, and MikeMirzayanov for the Polygon and Codeforces systems.

Because the official Yandex Cup Finals ends later than the round on Codeforces, the upsolving, solutions, and test cases will be closed until the end of the onsite contest, roughly 3 hours after the end of the Codeforces round. It is also forbidden to discuss the problems publicly until the end of the onsite round. Any comments here concerning the problems will be removed.

P.S. Same as with many rounds based on onsite contests, you can expect that the difficulty curve may be different from the one typical for Codeforces rounds. This is mostly connected with the limited amount of testing we can do to avoid problem leakage, and with the limited choice of problems. Nevertheless, I believe that it's better to have a round than not have one, and I hope you'll enjoy the problems!

Good luck!

Scoring distribution: you'll see in the contest.

UPD: there is live stream with problem discussions and comments here: https://www.youtube.com/watch?v=6R7iwYAXKLY

UPD2: Editorial.

  • Проголосовать: нравится
  • -611
  • Проголосовать: не нравится

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

Suggestion: delay the round slightly compared to the official contest. I'm totally not saying this because it'd start at 9 AM here and I wanna sleep more.

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

Good Fast again

_Robi is slow

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

Do you guys know that KAN literally means Ears in our language.

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

--CommentDeleted--

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

Could you please elaborate on what you mean by "different difficulty curve"?

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

I believe that it's better to have a round than not have one.

Goodbye 2023 :<

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

oh codeforces round 10sixty nine :skull:

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

This will be my second contest. In my first contest, I was unable to solve a single question.

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

I got 542 rating through my first test,and I hope I and everyone can get a higher rating!!

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

Is it only I who feels B is tougher than C?

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

should do more unusual start time!

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

As a tester, I enjoyed the round!

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

Hope to increase my rating:)

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

what's score distribution sir ?

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

Perfect time for me.

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

Is it rated contest?

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

When will the score distribution be announced

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

What a nice time for asian!

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

I want to share something i feel that most of the contest that participated in the unusual time of codeforces is hard and less in rating points. do any one feel the same ?

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

Score Distribution when ?

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

Am I trippin, or was it scheduled for 15:35 instead of 9:15? Unlucky contest miss :/

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

I think I found a cheater?(maybe)

SHATTA has 'wonderful' submissions.

But he is Unrated.

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

3rd question is easier than 2nd according to me.

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

curious about div1 F

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

Goodbye 2023 revisited? I’m not saying the issues are the same, but the general contest quality seems similar. The scoreboard shows this in many ways…

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

Please avoid discussing the problems in public, including but not limited to this blog, until 13:05 UTC.

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

Bad round with reversed difficulty order and a problem solvable by AI.

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

please ban this blatantly shameful cheater, once the contest is over.

flexing on linkedin

flexing on linkedin part2

his codeforces account

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

difficulty order disaster

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

Too many cheaters today, solved for 2D exceeds 1B.

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

    First, that's not even true: 567 people in div 1 solved the problem vs 436 in div 2. 436 < 567.

    Second, that does not prove cheating. There are nearly 8 times as many participants in div 2 so everything else being equal you would expect higher absolute number of solutions.

    In relative terms, 83.6% of div 1 contestants solved the problem vs only 7.6% of div 2 contestants.

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

"You better not be speedforces" The codeforces round 1069:

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

The best part of this blog will be all the people not discussing problems in comments!

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

i really enjoyed the contest..B>>C>A..difficulty order

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

speedforces

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

It hurts when B is tougher than C.

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

Thought I think this comment maybe downvote a lot,I'm wondering where is the editorial.

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

Way too many cheaters in Div2.

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

T.T I should have tried E1 man, just wasted my time on D thinking its some greedy as DP n*k*k will not pass. Then I realized we can optimize as N is 1e5 but max we can increase Ai <360 times. Could not code in time. Also, C is easier than B and even A. Its just lengthy to code than A/B.

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

Spent my whole effort to solve four problems, failed to beat who only submitted F. =(

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

how to solve D1C?

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

Why was "Impossible" case-sensitive in 2C? I got WA test 1 by outputting "IMPOSSIBLE".

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

upd: sorry for not reading the announcement carefully...

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

why was my submission skipped ? i didnt cheat

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

I honestly dint understand the wording of E1 in div2. What do u mean by uniform and distinct colours of pebbles ?

Also is it only me or was the difficulty of A-D all over the place? Like the order and level were different?

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

    You sure you understood [A-D]? Your submissions seem to be are AI generated

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

    Advice: next time you solve problems with AI, remember to remove the input validation lines, like

    if (!(cin >> n >> k)) return;
    

    in Your Submission for example. Because no fucking way you be like "Oh, I gotta make sure that the input is as described as in the input section." while you're in the middle of a live contest.

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

      I am gonna be honest,I prefer doing this:

      if(!(cin >> number)) { cout << "Invalid ; cin.clear(); cin.ignore(10000, '\n'); }

      Are you saying i dont need mem safety in codeforces? Cauz i felt uneasy taking direct inputs while solving casually. Could u pls also tell more things that happen differently?? I saw a bunch of ppl submiting high density code rather than safely on yt, should i start doing that?

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

        Chill out man, no one's falling for that.

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

        Even if you did it for memory safety, sure, lets go with that, can you please explain how in cf div 2 1069 you solved D before C? why did you skip C when it is a rather trivial solution compared to B and definitely much easier than D.

        Furthermore, why did you decide to comment so much in D from codeforces div 2 1068 — "Taigas carry chains" the time difference between C and D submission there is 30 minutes, where did you find the time to explain all your code and program a worthy solution at the same time?

        I appreciate your future response. Thank you

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

        Why do you ask me lol, Ask ChatGPT as you usually do.

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

Is it rated?

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

352230443

someone please tell me what did I do wrong in B ?

my logic -- numbers in this order: 1 2 4 5 6 8 9 10 11 12 13 14 16 17 18 19 20...... 30 32 33......62 64.... (removed 2^k-1)

if we take XOR of these numbers it would be always non zero so i partitioned the array into three parts [1....l-1] [l....r] [r+1....n] lets call them A B and C

in A and C , i wrote these numbers ,starting from 4 ,independently in increasing fashion (these wont cross 1e6)

in B for half of the numbers i wrote that sequence starting from 4 , and then those half again so that the XOR becomes 0 for [l...r] and !=0 for any other interval in B

EDIT: if B is odd , which would be >=3 , there i wrote it this way , [3 4 5 6 ..... 1 2 4 5 6.....] so basically as length -3 is even ,I handled that even part , by inserting 3 and 1,2 before each of the half-sequence starts

now in to a[l-1] in A and a[r+1] in C, I added a very big 2^k (1<<27 and 1<<28) (those would be around 1e8 )so that again XOR of any interval other than B remains !=0

Please point out the mistake , thanks in advanced, I am going downhill way too quick

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

    what if region B has an odd length? you algorithm implies that the length of B is even (or am i missing something?)

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

      yes so if B is odd , which would be >=3 i have handled it as well , there i wrote it this way , [3 4 5 6 ..... 1 2 4 5 6.....] so basically as length -3 is even ,I handled that even part , by inserting 3 and 1,2 before each of the half-sequence starts

      forgot to write it in description ,thanks for pointing out

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

    From what I'm understanding in your description of your algorithm, you're doing the following:

    A — You start at 4, entering increasing numbers. C — You start at 4 again, entering increasing numbers.

    Assuming your construction of B is valid, and my understanding is correct; what happens when |A| == |C|, where |x| is the size of section x?

    What you get is XOR(A) = XOR(C)

    Hence, if you XOR the entire array, which is a subarray of itself, you get the following situation.

    XOR(A) ^ XOR(B) ^ XOR(C) = XOR(A) ^ 0 ^ XOR(C) = XOR(A) ^ XOR(A) = 0

    Hence, in these edge cases, your algorithm fails.

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

    lets consider the scenario, l,,x,,,r, r+1...y..C, so there will be the case where x..r,r+1..y will be zero, i.e (x,y) will become zero, you have missed the overlapping case for between B and c.

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

    I think i found the mistake, it is when you take a part of the second half of B and the last term from the first part, like if n = 16 l = 1 r = 16, then your code outputs 4 5 6 8 9 10 11 12 4 5 6 8 9 10 11 12, but the array 12 4 5 6 8 9 10 has xor 0

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

      oh thankyou so much!

      could you also tell your approach to problem B , I spent a lot of time over it , just to get a wrong solution ;(

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

        when working with xor in ranges is always useful to think about the prefix xor, let pref[i] be the prefix xor of the array up to i with pref[0] = 0 then a subarray a[l:r] has xor pref[l-1]^pref[r]. Try constructing the prefix xor first. This is enough as a hint I think, if you want a full explanation of my solution just ask.

        In many problems with xor in subarrays is often much simpler to only think about the prefix xor.

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

are today div(1+2) ques are same as yandex cup 2025 finals?

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

Why do you keep calling every damn thing a mosaic?

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

is this contest rated?

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

Why are users still not allowed to submit their code after this contest has ended for such a long time???

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

when will the rating changes come?

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

why their is 5 implemenation tag on 1069 A ?

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

Bad round. Anyone with a basic understanding of polynomials can solve F in less than 20 minutes. However, D and E are sufficiently difficult given the contest's results. I think C is also a boring problem.

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

GPT solved last div 1 task :)

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

How to solve D1B?

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

    Okay, I understood, when read some submission. (The editorial doesn't have something meaningful.)

    The first relatively obvious thing we need to do is to leave only prefix maximums. Let's have pairs, where second element is the position of this maximum (in $$$0$$$-indexation). $$$a = [2, 5, 4, 7, 3] - \gt d = [(2, 0), (5, 1), (7, 3)]$$$.

    Let's have a straightforward dp. $$$dp[pos][last][sum]$$$ is the maximum profit, when we took first $$$pos$$$ numbers (in array $$$d$$$), the maximum assigned number yet is $$$last$$$, and in total we assigned $$$sum$$$. But we will act, as the array has size $$$n$$$, we just didn't assign anything to the rest positions. (For example, when we assigned first value $$$x$$$ to some $$$pos$$$, then the current answer will be $$$(n - d[pos].second) \cdot x$$$, since all positions to the right will have $$$x$$$ as prefix maximum.)

    The first solution is to try to iterate on position $$$pos$$$, on previous $$$last$$$, on previous $$$sum$$$ and the number $$$next$$$, which we will assign to $$$pos$$$. Then the transition is $$$dp[pos][next][sum + next] =_{max} dp[pos - 1][last][sum] + (n - d[pos].second) \cdot (next - last)$$$. ($$$next - last$$$ means, that for numbers to the right the prefix maximum changed from $$$last$$$ to $$$next$$$.) This is $$$O(k^4)$$$.

    This is where I finished with no more ideas.

    And the very interesting trick from the submission mentioned. The value $$$next$$$ is not always $$$0$$$ or $$$d[pos].first$$$, so we have to iterate all possible $$$next$$$. But, it has to be greater, than all previous $$$next$$$ taken. We can't add one more dimension for tracking the last $$$next$$$ taken. But let's do the following: $$$a = [2, 5, 4, 7, 3] - \gt d = [(1, 0), (2, 0), (3, 1), (4, 1), (5, 1), (6, 3), (7, 3)]$$$. Now let's take only $$$next = 0$$$ and $$$next = d[pos].first$$$ (no more iterating on $$$next$$$). And this is $$$O(n^3)$$$.

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

I made a submission to 2D almost at the last second, only to realize that I accidentally swapped the some of the array names. It got accepted after the fix, and now I'm sad.

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

It seems that many participants used LLM to solve the problem, so it still be rated ?

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

Trash round with boring C and F and unreasonable order of problems.

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

waiting for

UPD3 : Round will be unrated

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

Q: is it rated?

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

Can anyone help me figure out how I can memoize my solution to avoid TLE ? https://mirror.codeforces.com/contest/2175/submission/352235026

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

is this contest rated or unrated?

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

Is this contest rated or not?

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

hey ! can anyone confirm was this contest unrated?

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

Isn't it taking so long to give the ratings?

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

so uh I was cyan for 24 hours

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

I think that sneaky $$$\sum n \leq 10^6$$$ in d1c2 is a bad practice for a subtask problem

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

    Why is it sneaky? The intended solution is $$$O(N)$$$ so it's not a tight constraint and if you have a suboptimal solution with a higher constant factor, TLE is a reasonable verdict.

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

      It was sneaky only because C1 had the same upper bound for $$$n$$$ and $$$\sum n$$$. Why not just $$$n \leq 10^6$$$ in C2?

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

        There are many, many problems that have different bounds and many that have the same bounds. You have no more reason to miss it here than to miss it in a large % of all the problems you solve. And like I said, even if you missed it, an optimal solution or one that's slightly suboptimal but with a good constant factor will still pass. It's not something that affects you unless you get sloppy with multiple things at once.

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

          I have no problem with different bounds generally. But I would expect the bold caption "The difference between the versions" to actually mention all the differences. Mu nlog actually barely passed and it took me a minute to make linear on the contest.

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

    The $$$\sum n \le 5 \cdot 10^5$$$ and $$$\sum k \le 1800$$$ in d1b are more sneaky.

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

Why weren't the cheaters banned? Please try to keep the round rated.

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

I believe that it's better to have a round than not have one.

Well, maybe not — given the number of cheaters, the strange Div. 1 problem arrangement, and C1/2 being much harder than they should’ve been. :(

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

небольшая опечатка в C2: 3 целых числа n, m и r должно быть 3 целых числа n, m и p

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

Hack #1160191 got Unexpected verdict in Codeforces Round 1069 (Div. 1).

The test case is:

5
200000 10000000 999999937
200000 9999999 999999937
200000 9999990 999999937
200000 9999997 999999937
200000 9999998 999999937

Update: It has been fixed.

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

Will the cheaters (including those who used AI) be removed from the standings?

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

Hello Team, I received a plagiarism warning for problem E in Codeforces Round 1069 (Div.2). I solved the problem entirely by myself and did not share my code with anyone. I believe the similarity was due to a standard approach used by many participants. please recheck again.

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

Subject: Appeal regarding plagiarism flag on submission 352206874 (Problem 2175E1) — Global Rank 18 Hello. I received an automatic plagiarism warning for my submission 352206874 in problem 2175E1. I want to clarify that I did not copy anyone’s solution and I did not share my code with any participant. I also do not know the users whose solutions were matched with mine. I reached Global Rank 18, and I was fully focused on solving quickly. Because of that, my solution is short, direct, and uses a very common modular-arithmetic structure (binary exponentiation, modular inverse, prefix powers, double loops with symmetric bounds). Such patterns are standard for this type of problem, so accidental similarity is possible. Below is my exact original submission for manual review:

using namespace std;

long long pw(long long a, long long b, long long c) {
    long long d = 1;
    a %= c;
    while (b > 0) {
        if (b % 2 == 1) d = (d * a) % c;
        a = (a * a) % c;
        b /= 2;
    }
    return d;
}

void slv() {
    int ab;
    long long bc, cd;
    if (!(cin >> ab >> bc >> cd)) return;

    long long de = pw(bc, cd - 2, cd);
    
    vector<long long> ef(ab + 1);
    ef[0] = 1;
    for (int i = 1; i <= ab; ++i) {
        ef[i] = (ef[i - 1] * de) % cd;
    }

    long long fg = 0;
    long long gh = 0;

    for (int hi = 1; hi <= ab; ++hi) {
        int ij = min(hi - 1, ab - hi);
        
        long long jk = 0;
        long long kl = 0;
        
        for (int lm = 0; lm <= ij; ++lm) {
            long long mn = ef[lm]; 
            jk = (jk + mn) % cd;
            
            long long no = (2 * lm + 1);
            kl = (kl + mn * no) % cd;
        }
        
        fg = (fg + jk) % cd;
        
        long long pq = (kl - (jk * jk) % cd + cd) % cd;
        gh = (gh + pq) % cd;
    }

    for (int hi = 1; hi < ab; ++hi) {
        int ij = min(hi, ab - hi);
        
        long long jk = 0;
        long long kl = 0;
        
        for (int lm = 1; lm <= ij; ++lm) {
            long long mn = ef[lm];
            jk = (jk + mn) % cd;
            
            long long no = (2 * lm - 1);
            kl = (kl + mn * no) % cd;
        }
        
        fg = (fg + jk) % cd;
        long long pq = (kl - (jk * jk) % cd + cd) % cd;
        gh = (gh + pq) % cd;
    }

    long long qr = (fg * fg) % cd;
    qr = (qr + gh) % cd;
    
    cout << qr << "\n";
}

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int t;
    if (cin >> t) {
        while (t--) {
            slv();
        }
    }
    return 0;
}

My code uses a consistent naming style (ab, bc, cd, de, ef…), symmetric loop structure, and a specific way of computing (kl — jk*jk + cd) % cd. These are my personal patterns, not shared with anyone. I can also provide my original local file timestamps or editor history if required. I kindly request a manual review of submission 352206874.
Thank you for your time. — Nakshatra_21

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

    going to 1700+ in just 4 contests. man you must be something "if (!(cin >> ab >> bc >> cd)) return;" take a look at this and say it is not AI generated

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

      I wrote the code myself. Short variable names don’t make something “AI-generated”; they just make it faster to type under time pressure. The logic, the inverse computation, the power table, and the symmetric loops are exactly how I solved it during the contest. Anyone can accuse, but I’ve already provided a full appeal and I can show timestamps/editor history if needed. I trust the coordinators to review facts, not assumptions.

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

        this was not about your obfuscated variable names, but clear AI generated input reading style. "if (!(cin >> ab >> bc >> cd)) return;" and quit fooling around. in just 3 contests you went from newbie to expert.

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

        explain this you bloody lying idiot : you cheated from here, 352227762

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

          You’re accusing without even checking basic facts. The submission you linked was made after mine, so it’s impossible for me to copy from it. Decide first what you’re accusing me of — AI use or copying someone else — because you’re contradicting yourself. My solution matches my own coding style and I’ve already provided a full appeal. The coordinators will judge based on evidence, not your random insults.

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

            both have same code, it now shows that you both used AI. only AI uses : "if (!(cin >> ab >> bc >> cd)) return;" .

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

            just accept it. don't lie. your templates do not even match in same contest problems and also obfuscating using "ab", "bc", "cd", "de".... did not help you. so stop fooling around. your previous contest submissions are also AI generated. . explain these AI generated codes of you — 351203742 — here you did not remove AI comments which clearly showsbc = n, cd = k, de = a, ef = b etc and this 351201345, why don't you just stop cheating ? post this thread if you are bragging about reaching expert (by cheating) in just 4 contests. ab, bc, cd, de .. xy, yz nice obfuscation strategy.

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

              You’re mixing up accusations without understanding anything. First it was “AI”, then it was “copying someone”, now it’s “variable names”. At least decide what your story is before spamming nonsense. The submission you linked was made after mine, so copying it is literally impossible. And my previous submissions use the same style because — surprise — that’s actually my style. You are trying to force a conclusion without a single consistent fact. I’ve already submitted a full appeal with all details. The coordinators will decide based on evidence, not on whatever theory you invent every 5 minutes

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

Hello, I am requesting clarification regarding a plagiarism flag.

Handle: yashcoder123 Contest: Codeforces Round #1069 (Div. 2) Problem: 2175E2 Submission ID: 352221532

I received a warning that my solution coincides with several others. I wrote my code independently and did not share it with anyone. I believe the similarity might be due to common templates / similar logic used by many participants.

Thank you.

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

https://mirror.codeforces.com/contest/2175/submission/352221009

Why wasn't this cheater removed from the scoreboard?

He even achieved Rank 49 in Div.2!

Too many cheaters and Nobody disqualify them!

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

Hello Codeforces Admins(@KAN,@MikeMirzayanov), I am writing regarding my skipped submission "https://mirror.codeforces.com/contest/2175/submission/352219881" for the problem 2175D in the contest Codeforces round 1069 (Div2),beacuse of which whole contest was skipped. After reviewing the matching submissions , i think i have done "unintentional leakage", though i did not copy from others and one of two users "elon_fan" has committed that he has cheated. During the contest, i wrote my solution in online compiler OneCompiler. I was unaware that these platforms index code publicaly by default. I believe that this caused my code to be leaked and found by others, resulting in matches. I apologize for this oversight and violation of rules if any done by me. I will from now use local IDE that i have (Clion). I respectfully ask that you consider this explanation. I did not intend to cheat, but i accept responsibility for using an insecure tool.

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

Hello,

I would like to clarify the situation regarding my submission 352216919 for problem 2175E1.

Due to the unusual timing of this contest, I participated in Division 2 quite late. Under time pressure, I referred to a publicly available resource to correctly implement modular exponentiation for large numbers in C++. Specifically, I used the following reference:

https://stackoverflow.com/questions/2207006/modular-exponentiation-for-high-numbers-in-c

I did not copy any code from other participants. Any similarity with submissions from other users is purely coincidental and arises from using a standard, public implementation. Notably, my submission was made before Hemanth2005 's submission, which shows that the similarity could not have arisen from copying them. I rewrote the solution in my own style, and I did not access anyone else’s submissions.

I hope this clarifies that my work was independent, and I request reconsideration of the flag on my submission. Please let me know if any further details are needed.

Thank you for your understanding.