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

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

Hello, Codeforces!

We gladly invite you to participate in Codeforces Round 1058 (Div. 1, Div. 2), which will be held on Oct/12/2025 17:35 (Moscow time)! You will be given $$$\mathbf{2.5}$$$ hours to solve $$$\mathbf{6}$$$ or $$$\mathbf{7}$$$ problems (depending on your division). One problem will be divided into two subtasks.

The problems were authored by wuhudsm, Proof_by_QED and chromate00. We have put so much effort (and time) into this contest, and we hope you will enjoy it!

Do note that for both divisions, at least one of the problems will be interactive. So if you are unfamiliar with them, please read the guide for interactive problems and get yourself ready.

Our team would like to thank the following people:

And now, the score distribution.

Division 1:

A B C D E F
$$$750$$$ $$$1500$$$ $$$1500$$$ $$$(1500+1750)$$$ $$$3000$$$ $$$3500$$$
Division 2:
A B C D E F G
$$$500$$$ $$$1000$$$ $$$1250$$$ $$$1750$$$ $$$2500$$$ $$$2500$$$ $$$(2500+2750)$$$

Good luck, and I hope you find enlightment from the problemset!

And a personal note:

UPD: Editorial is uploaded here.

Also UPD by chromate00: I sincerely apologize about the weak pretests of problem 1B/2E. I have greatly underestimated the runtime and memory usage of the worst solutions, while still wanting to be generous about slower solutions. This has led to weak tests during contest. Deeply sorry about the bad contest experiences affected by this.

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

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

Let's participate and get some — ve delta :(.

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

As a participant, 6-7 problems

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

As a tester, shaw

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

I don't see __baozii__. :(

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

Um_nik for shortly taking a look at the problemset;

When you are forced to thank someone, but really don't want to =)

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

As a tester, the contest is excellent — the authors have put in tremendous effort to deliver a great experience. Participation is highly encouraged!

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

Hoping for the best!

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

In today's contest I forgot to register And I don't like to create 2 files

So instead of creating 2 files I created an single file with

Void solve Void solve1

And used the one based on question used accordingly

However I realised in rooms if someone saw my code for B and C was visible

So will it get me banned or make the person who copied my code ban

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

It was a great contest. Thank you authors for giving effort and time for usssss

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

As a tester, I want to participate!!!

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

As a tester, I love this contest and hope you enjoy it too!

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

As a participant, I hope to reach CM :)

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

“ One of the authors is personally working on an anti-cheat engine for Competitive Programming contests. If you cheat in this round, there might be a possibility that he might happily use you as training data without your consent. It's not like a 100% probability, but just so you know...”??? ChatGPT 1000?

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

As a participant, Good luck to Everyone.

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

Every Cheater Should Cheat in this contest! lol

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

hope i will comeback to specialist

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

67 mentioned

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

We NEED to know that sir Um_nik only shortly took a look at the problemset ToT

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

How many problems...

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

Salam Aleykum

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

Huge thanks to the authors and testers for preparing this round! The problemset looks challenging and well-balanced — really excited to participate and learn from it!

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

Try CF Submitter : https://marketplace.visualstudio.com/items?itemName=DevXSayan.cf-submitter - Fetch all the problems of a contest inside vscode, run test cases, and submit in one click, all without leaving vscode

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

As a beginner, I want to participate in this contest.

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

Wish me luck, I will follow rainboy footsteps in this contest.

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

As someone who hates cheating on the platform. I believe that using submissions without consent for training a model to detect cheat is not fine but a great initiative

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

As a tester, I am late.

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

Rated?

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

Tomorrow is my 20th birthday. I really hope I can reach LGM tonight.

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

where's the editorial?

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

I hope not to choke on C today

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

All the best to everyone who are participating

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

Hey everyone! Before the round starts, I just wanted to say a big thank you to the amazing authors, testers, and coordinators of Codeforces Round 1058 (Div. 1 + Div. 2)! People sometimes forget how much work goes into a single round — the authors spend months (sometimes even years) polishing ideas, fixing edge cases, balancing difficulty, and making sure every problem works smoothly. It’s crazy how much effort goes into something that we get to enjoy in just a couple of hours. Massive respect to them for that Really excited (and a little nervous ) for today’s round. Hoping for a fun problemset, a little rating boost, and maybe — just maybe — my long-awaited promotion to Pupil (then Specialist… and boa boa boa ). Good luck to everyone participating! No matter how it goes, let’s enjoy the contest and appreciate the people who make it possible. See you all on the leaderboard — a happy participant ready to fight with the problems

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

I know this is not the place to write something like this, but I also don't know where else to :)

I think it will be really cool if you can see next to your username what is the estimated place for you in the competition, it will give people a target and give you a little hint if ranking changes takes a while

What are your thoughts? I don't know who you should tag in this @headquarters ?

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

Good luck tonight!

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

Let me guess Div2E/Div1B is interactive

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

unban dvb1r, he isnt cheater

in this round he could up 1900, but he was banned!

check his submuttions, he isnt cheater!

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

Can banned users get a reason for the ban? I believe Maria_Chudinova wasn't cheating, but the account was banned, and the user didn't even know the specific reason.

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

I'm dead

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

Bad contest for me

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

Why idelness limit on pretest 1? Pls help(NEVER MIND)

https://mirror.codeforces.com/contest/2160/submission/343399848

  • »
    »
    6 месяцев назад, скрыть # ^ |
     
    Проголосовать: нравится +10 Проголосовать: не нравится
                cout << "? " << i << ' ';
                for(int j=1; j<=cnt; j++)
                    cout << aux5[j] << ' ';
                cout << '\n';
                cout.flush();
    

    Here you outputed cnt intgers but i before it. The judger thought you were to print i intgers.

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

D1 were absolute cinema. Dom with hacks. Rainboy to 4th in last 20 minutes!!!

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

Appeal to the organizers Please unban dvb1r, he's not a cheater. Why was he banned?

Look at his solutions; there's nothing illegal or copied, all the code is his own. This person has never cheated and has always been committed to the integrity of competitions. We demand the entire community unban our friend. I've been personally following his progress for a long time and know he couldn't have cheated.

Unban dvb1r, he didn't deserve the ban. Check his code manually and see for yourself.

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

could have been my recent best performance but integer overflow in div2B ... read input as int32 array instead of int64 ... aaaaahhhhh!!!!!

But still did well and hoping for +ve delta.

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

went very BAD :(

how do you minimize a 2d range quickly.!

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

interactive problems are a disaster for me.

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

if it werent for a[i] <= 10^9 in C i would have gotten gm Fuck ts im so pissed off

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

Fun challenge: solve C (div 1) if all coefficients, including $$$a_0$$$, must be at most $$$n$$$ (this is what I misled myself to believing into)

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

    (this is what I misled myself to believing into)

    Huh? but it's true.

    (in the sense that the answer is zero if any $$$a_i \gt n$$$)

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

    yeah $$$a[0]$$$ can be greater than $$$n$$$.

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

    I'm not kidding btw, I believe my last submission correctly solves this version, except for a bug I know (although this wouldn't be div1C)

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

      what is the intended complexity for your this version ? (I believe in this case we would need to find subset of size k , with sum <= n ?)

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

        $$$n\log{n}$$$, but maybe with a big constant

        UPD: I've realized I had another mistake, which may or may not be fixable

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

          Hello, I made the same mistake during the contest. By the time I realized my error, it was already too late. lol

          I can only solve this “wrong” problem in $$$O(n \sqrt n)$$$. Could you share how you solved it in O(n log n)?

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

            My mistake was that I thought that the number of involutions on $$$n$$$ elements satisfied the recurrence relation $$$f(n) = f(n - 1) + f(n - 2)$$$ just because I forgot to finish writing this in my code (and didn't even think about it as something well known). Therefore, I thought, $$$f(n)$$$ is some Fibonacci number. If we extend the field $$$\mathbb{F}_{10^9+7}$$$ with the element $$$i = \sqrt{5}$$$, then each element in the new field $$$\mathbb{F}_{10^9+7}(i)$$$ is represented as $$$a + bi$$$, and the $$$n$$$-th Fibonacci number is something like the "imaginary part" of $$$\varphi^n$$$ where $$$\varphi = \frac{1 + \sqrt{5}}{2}$$$.

            Therefore, I thought, if $$$a_1$$$, $$$\ldots$$$, $$$a_k$$$ are the indices where we could place zeroes, then we could find the first $$$n$$$ coefficients of $$$\displaystyle\prod_{i=1}^k(1 + \varphi^{-1}x^{a_i})$$$ and solve the problem from there (by summing some first coefficients of the result and multiplying them by $$$\varphi^{n+1}$$$ or something). That product can be found by first determining its (formal) logarithm, which is done naively in $$$\sum n/a_i = O(n\log n)$$$ and then formal $$$\text{exp}$$$, which is another $$$O(n\log n)$$$.

            However, if the number of involutions is not a power of anything cheap, like a field extension element or maybe some matrix, then idk

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

noooooooo i forgot to check that a_i were <= n for problem f :(

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

I was able to think of correct solution for A (div. 2) in 5 minutes and it was too obvious.. I was like are the authors trying to troll.. then I went on looking for a proof and voila 20 minutes gone.. and what did I find out? my instinct was right.. I am so dumb

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

Subtle foreshadowing:

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

Cool C! $$$a_0$$$ brings some extra cases that seem a bit artificial but it probably makes the problem less OEIS-able.

I dont understand the reason for having 25e4 in B instead of 1e5 because, well, it is $$$O(n\cdot m \cdot \min(n, m))$$$ anyway, right? And kind of the same memory, clear that constant factor is bad. For me sets werent working on the go so i had to do some stupid rewrites for 20 mins.

What is D1? Problem looks like a classic "dp with super-dooper search" (have records list, recalc dp over first K, last K and random K elements), but doesnt seem to fit (i tried!). Some submissions seem to do some searches (i tried ternary, doesnt work).

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

why is there Idleness Limit on test1 div2 problem D? I tried endl, fflush(stdout), cout.flush() and none of it worked also tried combining it https://mirror.codeforces.com/contest/2160/submission/343400658

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

Good round, good problems.

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

ok, now let's wait for more and more FSTs rising in 1B/2E

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

How to solve Div2 D? What's wrong with my submission 343369699?

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

    You do 4n queries, to bring it down to 3n you can change the second run to query all indexes you found during the first run + one that's still unknown

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

    you have to ignore some indices while reverse way

    like if array is 1 1 2 2

    in first way you will figure ? 1 ? 2 in 2n queries

    but reverse way also you make 2n queries.. which is 4n .. but only 3n queries allowed

    you have to skip indices you have figured in first passes like in this case you should query only 1 and 2 while coming back

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

is there some cool Data structure ( maybe segment tree stuff ) based answer for div2E .. minimum enclosing rectangle problem ?

I did some complicated range storing things in every row and then kind of traverse backwards to accumulate their effects.. but got stuck in implementation and couldn't reach correct final answer ..although with my storage I might MLE

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

Is hack case on Div.1 B added to system test?

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

d is genuinely the coolest interactive problem i have ever seen

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

Does the system test for problem B include the largest case — that is, H = W = 500 and all G_{i, j} = 1?

When I tested it locally, it took quite a long time, but the system test ran very quickly, so I’m curious.

I think quite a few people might get TLE on this.

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

I'm wondering the round will become the one with the most FSTs in 2025 because of the pretest of d1B.

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

Good contest for me :)

Thanks for the amazing problems. Hoping to solve div2E on my own.

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

Div2E, number of FST > number of Accepted :(

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

Why doesn’t the pretest for Div.1 B include the extreme case of a 500×500 grid filled with 1? Why are the samples for Div.1 C so weak?

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

    ig everyone who failed on system tests should blame the Div.1 B problem setter for the test data, not the hackers.

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

      While I agree it is a case that should not have been omitted, I am seeing many lazy segtree solutions that would clearly fail with this test case in mind, so I don't think it is fair to fully blame the setters

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

        Why do you think so? I don't think there's a connection

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

        I just read the Editorial

        Enumerating all elements of $$$\mathbb{S}$$$ and saving it in memory might take $$$\mathcal{O}(nm \min(n,m))$$$ memory, but it may still pass if sufficiently optimized. There is a way to modify the solution to use only $$$\mathcal{O}(\min(n,m)(n+m))$$$ memory, which is left as a practice for the reader.

        It seems that the official (Div.1B) solution uses an algorithm with space complexity $$$O(nm\sqrt{nm})$$$ — while the version with $$$O(nm)$$$ space complexity is left as an exercise for the reader.

        Many contestants implemented the ( $$$O(nm\sqrt{nm})$$$ ) version and got hacked, possibly even the official solution’s memory usage cannot handle the extreme case containing a 500×500 block of 1s.

        Yeah, it’s pretty funny, isn’t it?

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

the problem C Div2 statement was very bad. where i understand the inverse of the bitmask of the number as reverse each 1's to 0's and the vise versa. until see the message that refer that the reverse mean reverse the order of digits. i think if it was more accurate i will solve it very faster!

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

    I can understand your point !!!

    but what would question mean in that case .. you can only make 1111....111 with that definition of reverse right ??

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

    Zeyad_Ammar Well, how do you reverse an array of integers $$$[1, 3, 6, 8]$$$?

    And when the problem says, let "$$$f(x)$$$ be the positive integer formed by reversing the binary representation of $$$x$$$ without leading zeroes", what should that mean?

    Also, if you ACTUALLY thought what you meant, then $$$x \oplus f(x)$$$ would always be a number of $$$111....11$$$ (number of bits in $$$x$$$), so unless the number $$$n$$$ consists of all $$$1$$$, it's immediately "NO", and "YES" otherwise. Clearly that should not be the problem which is solvable in 2 minutes.

    Having said that, I agree that authors could have picked a different $$$x$$$ for the example. But then again, they didn't expect anyone to misinterpret the word "reverse", and I can't blame them. It was pretty obvious, I'm afraid.

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

How was even a basic n=m=500 all 1 test not added to 1B pretests?

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

pVbNilD.md.png

Did the author make a mistake in the generator of 1B/2E?? I can't understand what he wanted by generating the data with so many 0s...

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

I think problem B should have more memory or be way smaller than 1024 mb. I thought that $$$O(n*m*min(n,m))$$$ would fit in 1024mb (and it almost does), and that was the reason for 1024 — it didn't make any other sense to me.

Most solutions that got MLE probably get AC for 200-500mb more (or a few constant optimizations).

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

    Well, the problem is that the max test wasn't at the pretests, so the MLE could be not seen during the contest. If the ML could be changed now — well, may be some solutions (including my own) could pass the tests. Still, the same problem is with TLE etc., so the main cause is the max test being absent in the pretests.

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

    Changing few ints to short ints makes $$$O(n*m*min(n,m))$$$ pass.

    This problem with the current setup is absurd to me.

    Anyways, congrats to all of you who thought of MLE (even though it's so high) and made constant optimizations :)

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

    Fun fact — I got 1.4s and 405Mb on pretests, that is more than two times less than the limits, still getting the ML on full tests. I am interested — is it OK, will the round be rated and / or the limits for the problem B — changed?

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

Passed the pretests on div 2 E but got TLE on system testing :(

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

Can someone explain the logic behind div2B?

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

I got wa on test 21 on 1C. could anyone help?

submission

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

Can someone tell solution for Div2E? I have tried using segment tree to update the minimum areas of ranges and at last computed for every element. It takes O(n^2*m*log(n^2)) for n<=m and fails on test 24.

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

I got kind of trolled in 1C because I thought polynomials of degree $$$n$$$ were also polynomials of degree $$$n + 1$$$, and panicked at the end upon realizing I had to force $$$a_n$$$ to be nonzero :(

Edit: I realize it's in the problem statement but I probably read it more sloppily than usual because I had to take a shit LOL, and I don't think I ever read the beginning of the problem statement again after returning from the toilet

Edit2: And the reason I had to take a shit despite shitting before bed last night is probably due to eating a massive cheesesteak hero for lunch yesterday. It wasn't even that good by cheesesteak standards imo...

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

I have a doubt in Problem C

Here is my code

void solve()
{
    ll n; cin>>n;
    
    bitset<32> s(n);
    ll l=0,h=0,cnt=0;
    for(ll bit=0;bit<32;bit++)
    {
        if(s[bit]==1)
        {
            l=bit;
            break;
        }
    }
    for(ll bit=0;bit<32;bit++)
    {
        if(s[bit]==1)
        {
            h=bit;
            cnt++;
        }
    }
    if(cnt&1)
    {
        cout<<"NO"<<nl;
        return;
    }
    while(l<=h)
    {
        if(s[l]==s[h])
        {
            l++;
            h--;
        }
        else
        {
            cout<<"NO"<<nl;
            return;
        }
    }
    cout<<"YES"<<nl;
 
}

This code got Accepted.

But in the loop for(ll bit=0;bit<32;bit++) if i change it to for(ll bit=0;bit<=32;bit++) this is giving me wrong output. Can any one explain why?

Accepted: 343408321 Wrong Answer: 343409594 Difference: Screenshot

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

Why is there another system test? Have up-hacks been added?

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

My code got rejudged again and TLE after the announcement of "The system testing and rejudges are done."????

Please give me a reason for this chromate00

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

    We are looking into this with admins. Probably a package was built during rejudge and some submissions got rejudged on uphack tests. Do not worry, it may take some time, but the in-contest submissions' verdicts will not be based on uphack data after it gets fixed.

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

In Div2 C What is the valid x for n=13 Because I couldn't find any but in the testcases it says YES for n=13

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

got wa on A just due by not reading problem correctly, I thought that it was written array is sorted already in input, as when it isn't sorted it is not mentioned generally in problems, well I am noob too

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

Where rating?

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

is it rated?

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

Can I reverse 01000 and get 00010? For the problem div2C? chromate00

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

Great contest! Achieved my first live hack (used the 500x500 all 1s test case) which was really exciting. All that hacking practice in educational/3/4 rounds is starting to pay off!

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

I misunderstood div2 D and thought we had to query a range of indices..

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

gotta say i really liked this contest , a really mind changing problem set indeed.

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

THE pretest of Div2E is so weak.

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

yo guys what's contribution and can you help me to increase it?

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

Someone please explain to me this , i am new to codeforces . I could only solve 2A yesterday ,and it passed all the prestests . But now it shows my solution was not accepted .

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

As a participate, I will follow it.

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

unban joacru, he isnt cheater He has never cheated, but he was banned! Check his submissions! Proof_by_QED

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

why this announcement has so many dislikes? could anyone please explain?

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

    Pretests for Div2E and Div1B were weak, so a huge chunk of the solutions failed the system tests even though their solution worked fine on the pre-tests (e.g my solution was 2200ms on pretests, but TLEd on system tests). I'd also argue that time constraints should have been higher, but that's just me being petty.

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

joacru was unfairly banned. He teaches competitive programming in my city. Check his submissions! Proof_by_QED

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

i cheated pls ban me

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

The div1B situation is indeed unfortunate. But I bet this announcement would have a lot less down votes if everyone experienced setting a problem before. I ask that the people carrying this platform please be cut some slack.

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

Hello, I received a plagiarism warning for submissions KingSlayer073008/343311217 and anujgupta0ag/343309726. . Both of these accounts — Anuj.g and anujgupta0ag — belong to me. I accidentally submitted the same code from both accounts while testing, without realizing it violates Codeforces rules. There was no code sharing with anyone else. I understand the mistake and will only use one account (Anuj.g) for all future contests. Kindly remove or ignore the submission from (anujgupta0ag). Thank you for understanding.

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

Hello, I received a plagiarism warning for submissions KingSlayer073008/343311217 and anujgupta0ag/343309726. Both of these accounts belong to me — I accidentally submitted the same code from both accounts while testing, without realizing it violates Codeforces rules. I understand this was my mistake, and I will use only one account (Anuj.g) for future contests. Please note that Anuj.g is my main account; kindly restore or un-skip that submission, and feel free to ignore/remove the one from anujgupta0ag. Thank you for understanding.

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

Dear Codeforces Administrators, I would like to clarify regarding the similarity notice between my submission 343363815 and the other submission 343367473 .

I did not share my code with anyone, nor did I copy from any source. I wrote my own solution during the contest. However, I used an online compiler Ideone for testing, and I recently learned that such platforms can make submitted code publicly accessible by default. This might have unintentionally caused the similarity.

I take full responsibility for my own actions and will ensure that I use a local or private environment for future contests to avoid any unintentional code exposure.

Thank you for your time and understanding.

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

Attention! Your solution 343343452 for the problem 2160A significantly coincides with solutions aditya_padhi/343342157, aditya-233/343343452. Such a coincidence is a clear rules violation. Note that unintentional leakage is also a violation. For example, do not use ideone.com with the default settings (public access to your code). If you have conclusive evidence that a coincidence has occurred due to the use of a common source published before the competition, write a comment to post about the round with all the details. More information can be found at http://mirror.codeforces.com/blog/entry/8790. Such violation of the rules may be the reason for blocking your account or other penalties. In case of repeated violations, your account may be blocked.

Both accounts belong to me, I am a beginner so I don't know if it's allowed to use 2 accounts at in 1 contest, I may be wrong but this isn't cheating as I wrote code and submitted from both accounts. I will make sure this never happens again

Please remove all warnings on my account, I will make sure i will not repeat this mistakes Thanks for letting me know.

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

Dear Codeforces Team,

I am writing to formally appeal the violation against my submission 343337662 for problem 2160C.

After receiving the notification, I conducted my own investigation and made contact with the user involved. They confessed to me that they had gained access to my account and copied my solution specifically to submit it early and "go to sleep," without my knowledge or consent.

Given that I am the original author of the code and the victim of unauthorized access, I respectfully request that the violation be removed from my record. Thank you for your time and consideration.

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

Dear Codeforces Team,

I am writing to formally appeal the violation against my submission 343337662 for problem 2160C.

10.12, during the programming competition, I made a decision that I am deeply ashamed of.

It was very late, and I was extremely tired. My only thought was to finish the competition quickly so I could go to sleep. For the final problem, I load in "liuzeyu666"'s account for his code of this question. Knowing it was wrong, I gave in to temptation and copied their solution, solely to submit my entry faster and get some rest.

This action was a complete violation of the competition's spirit of fairness and the very purpose of learning. True growth comes from the independent struggle and effort to solve problems, yet I chose the easiest and most dishonest path. This was not only disrespectful to the other participants but also a profound disservice to myself.

This experience has been a significant wake-up call for me. There are no shortcuts to improving one's technical skills; honesty and hard work are the only true foundations for progress. I have learned a difficult but vital lesson and I promise that in all future endeavors, no matter how tired or pressed for time I am, I will uphold the principles of academic integrity and prove myself through my own abilities.

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

Dear Codeforces Team,

I recently received a notice stating that my submission (ID: 343381641) for problem 2160C coincides with other solutions. I would like to clarify that during the practice session, I referred to my own earlier solution to Problem 1915F, which has a similar logic and structure. That code was written for learning purposes based on the official Codeforces editorial, not from any external or unauthorized source.

The similarity likely arose because both problems share a comparable idea, and I adapted parts of my earlier code while solving 2160C in practice mode. I had no intention to violate any Codeforces rules or share my code publicly. Thank you for your understanding.

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

How to arrive at 1900?

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

作者应该不用脚造数据

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

guys is haveOlogntime a cheater, he has 3 skipped contests he ranked 20th in div 2, more recently he did question G a 3100 rated question in the last global round which was chat gptable, i doubt someone with less than 2000 rating can solve a 3100 rated question in a contest time frame as the probability is very low.(he has less than 7 2700+ solved in practice) his code does not look ai by the looks of it but i still find it very suspicious because anyone else would have contested the skip if they had genuinely done it. wanted to see how other people feel about this.