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

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

Ready to Duel?

If yes, FetFot, Intellegent, and I are glad to invite you to Codeforces Round 1025 (Div. 2), which will be held on May/17/2025 17:35 (Moscow time).

This round will be rated for participants with rating lower than 2100. We will also be glad to see the participants with a higher rating to participate in our round unofficially!

You will be given 6 problems (with at least one interactive problem and one problem that has 3 versions) and 2 hours and 15 minutes to solve them. Also you can read about interactive problems here.

Please take a look at the score distribution; it may help you during the contest. Additionally, make sure to read all the problems.

We would like to thank:

The score distribution will be as follows:

$$$ 500 - 1000 - (1250 - 750 - 500) - 1750 - 2500 - 3000 $$$

To make this blog special, I'd love to share a picture of one of my favorite Yu-Gi-Oh! cards. It would be exciting if you could do the same and share your favorite card in the comments! Together, we can create a nice deck to play with.

UPD 1: Editorial has been posted. Check it out!

UPD 2: Congratulations to the top duelists!

All participants:

  1. maspy
  2. kotatsugame
  3. arvindf232
  4. antontrygubO_o
  5. StarSilk

Rated only:

  1. lunyi
  2. jiazhichen844
  3. _WD_
  4. Zeyush
  5. SudoXue

First duelist to beat challenge:

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

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

It's a pity that I couldn't make time to participate in such a Yu-Gi-Oh! themed CF Round.

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

finally old score distribution has been restored, orzz to everyone involved in the conduction of this round...

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

Two Syrian contests in one year... You love to see it.

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

Satyam343, so we gonna hit a median related problem! Aren't we ?!

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

OMG C1/2/3 in this round

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

as a tester, this contest is amazing.

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

Another Syrian contest, let's gooo <3

I hope to perform well, the contest will start after an hour and 35 minutes of the end of APIO ^_^

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

Nice to See arabic people Create Constest .

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

As a monkey tester, I recommend eating bananas to beat these high quality problems.

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

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

am i good enough? but i am from a warrior race!!!!!

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

As a tester I suggested to have exactly $$$x$$$ subtasks on one problem.

The value of $$$x$$$ will be informally announced after the contest.

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

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

as a tester, I just ate a mcspicy and it was pretty good

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

as a tester , the problems were really high quality!

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

As a tester, Maxx "C" is balanced.

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

As a participant I predict spending 2hrs on C.

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

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

As a tester, the problems are very great, and I can't recommend the contest enough.

Oh, and my favourite Yu-Gi-Oh card is:

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

Me to the authors to get the solutions

I activated a spell card
»
11 месяцев назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

Pretty Interesting Score Distribution.

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

I think it will be a great contest

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

I've never seen three versions of a problem before. It looks interesting!

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

Why "Codeforces Round (Div. 2)" in contest page

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

Yeah I'm already out of competition

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

As a tester, I recommend eating at Malak Al Tawouk before participating to boost your performance.

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

It has been 7 months since we've previously had a problem with 3 subtasks (the previous one was Codeforces Round 977 (Div. 2, на основе COMPFEST 16 - Final Round))

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

Score distribution looks lowkey scary, will i be CM after this one ?

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

Hope to have fun!

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

If I don't see a clear mind reference I'll be disappointed.

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

Whoa.. I am confused by the score.. Should I do div2D Or div2C-2 first.. Oh no!!!

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

That means, C is a 2500-points problem??? OMG... ...

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

Should I participate?

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

I enjoy taking risks, so I'll go with this one

As a tester, I believe this contest is totally worth the risk and participation

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

As a tester, I will never forget this problem set!

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

As an imposter, I mean author, MOUFLESS is now officially striped like a penguin.

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

Hoping that problems will be easy

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

As a tester, I enjoyed the contest.

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

OMG feels so nostalgic

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

that means C3 and C2 are easier than B ? or just because they are other versions of C, they had less score ?

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

Mirror Force — always ready for a surprise move

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

Unfortunately I only play the Digimon TCG. I feel like you need a whole dictionary for the damage step for Yu-Gi-Oh

Favorite Digimon Card
Favorite Yu-Gi-Oh card (started with tribirds)
»
11 месяцев назад, скрыть # |
 
Проголосовать: нравится -16 Проголосовать: не нравится

how can i farm positive contribution im getting negative everytime

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

second syrian contest wow!!

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

The best strategy would be to move to D after C1 or at most C2.. Is that so ??

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

Hope it will be great as you guys!

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

INTERESTING! I AM EXCITED.

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

Three attacks, one on C1, the second on C2 and the third on C3 :)

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

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

Swapping C1 with C3 is the trickiest move ever!

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

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

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

What is this card thing? I dont understand.

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

I Played This Deck 7 YEARS!! I LOVE Mathmech!!!

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

In the contest email Rust is not listed as allowed language. Any particular reason? :(

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

As a tester, i did not do jack sh**

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

How does 3 different version of the problem work. Should we like give 3 submissions ??

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

What a fantastic theme to choose from! I feel so bad that I couldn't participate, however, I want to show my support for such an interesting idea

Here is one of my favorite cards, as requested in the post :)

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

It's a pity that I couldn't make time to participate in such a Yu-Gi-Oh! themed CF Round.

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

I wish all participants success.

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

hope everyone to have a great contest

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

I'm The Forbidden one himself.

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

The Dark Armed Dragon is so cool!

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

I hope I manage to solve all the 3 variations of problem C.

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

Pupil?

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

Excited for this Yu-Gi-Oh! themed round—may the heart of the cards guide us to positive delta!

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

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

hard A

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

You poor girl...

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

I do not like interactive problems. I mean what is the motivation behind them ? Does they represent any real world problem ?

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

How did SO MANY people (I'm talking 1000+) solve C2 immediately after solving C1? Is there an easy trick to doing it in 4 commands after getting it in 7? I solved C1 relatively early on and couldn't solve C2. I don't get it -- can someone please enlighten me?

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

Was F using dinic's algo?

Something like this (its in go lang)

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

tf do you mean you can get 100 in 3 operations...??

Can somebody please describe strategy for making x = 100 in 3 moves for any x?

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

    you can multiply x to a number first (rather than calling digit) to force the sum of digits to be a constant

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

      Thanks. I did try that but when checking that S(999999999*x) = const, i was checking a random segment [rng, rng+10^6], but forgot to take rng%10^9..... lol

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

    multiply by 999999999

    then the sum of digits will be for sure 81;

    so then digits and add n-81

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

      did you derive this during the contest ? How to approach such derivation in future ?

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

        This was quite a non-standard task so there isn't any formal way of doing it.

        Listing down ideas help like(this is what i thought of):

        3 times "digits" and get a single digit number

        division is not very useful

        there are just 9 numbers what can multiplication do?

        then you notice that multiplying by 9 keeps digits same(i thought of 11 and many other numbers too)!

        this was sufficient for C1 then for C2 you realize multiply by 9 then "digits" twice will give 9 again so a 4 step solution!

        this is how far i got in the contest(i did not participate but solved the problems separately) later is saw jiangly's code and saw the 999999999 thing and it did feel like a continuation of what i did for C1 and C2. Maybe i was just too lucky not going for the reduction by 8-4-2 path (it just didn't click then)

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

Why this solution for C1 is giving command limit exceeded ?

https://mirror.codeforces.com/contest/2109/submission/320122515

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

I like E very much <3. Also, C3 is very cute lol

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

On C2 I had the biggest brainfart in my last few years. I literally was able to come up with the idea of making $$$x = 9$$$ in just three turns and for some reason wanted to make it $$$x = 1$$$ to be able to multiply it by $$$n$$$ (which is impossible, since only one turn left) and completely forgot about the option of adding $$$n - 9$$$.

The problems are great though.

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

Not able to solve a single problem feeling low.........:(

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

Should've slept in today.

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

how to solve D/D/D ?I was thinking of finding maximum odd/even we can get from multiset then if distance is even and <=maxeven its true else we can check if we can make it jump to some other node that has answer statisfied???

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

I wanted to name our ICPC team "Decode Talkers" but they refused xD

»
11 месяцев назад, скрыть # |
 
Проголосовать: нравится +6 Проголосовать: не нравится
int n; cin >> n;
        auto query = [&](string oprn, int val) {
            if (oprn == "digit") cout << oprn << endl;
            else cout << oprn << " " << val << endl;
            cout.flush();
            string res; cin >> res;
            return res;
        };
 
        query("mul", 9);
        query("digit", -1);
        query("digit", -1);
        query("add", n - 9);
        cout << "!" << endl;
        cout.flush();

WHY THE F8CK THIS IS GIVING WRONG ANSWER FOR C1. Is there any slight mistake which i can't see because i think my logic is correct... anyone help. It was the worst contest for me i suppose.

320120108

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

Very very nice problemset

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

In C1, if you do three times digit command, you are probably screwed for entire contest trying to fix your Binary Search .

I Can't understand, why such trick ( simple trick, just do 2 times digit, and reduce 8-4-2-1 ) question. Why not allow Binary Search to pass !!

C1 and C2 both are trick based questions... WHY !! At least let one of them be logic based ...

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

Akash_184's code style is beautiful with super long AI style variable names.

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

    thats camel casing which not AI....

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

      Yes I can see that sometimes you use big camel style and it's ok. But your coding style changed on E here. Where is your file_i_o function and solve? Besides, the variable names are too long for cp. Do you agree?

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

        i used big variable names in this code to avoid the confusion of too many variables. I agree big variables are not good cf. Thats onto you if you want to use those functions.

        DUDE CHILL......

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

oops i typed max instead of min somewhere on D and didn't find out until right after contest ended

rip demotion unfortunate

C2 was cute, I liked it, even though it took me a while, it felt nice to get

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

Can someone explain, why my approach is wrong problem B? At first, i try cut max square from initial position. Then change board size, in loop take as mid = {n/2, m/2}. Submission

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

Can someone help me with what is wrong with my logic for C1 or anything wrong with the interaction format?

320133076

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

Passed example input/output on problem E just 5minutes after the contest ends. What a pity.

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

I didn't notice $$$x \le 10^9$$$ and used C2's method to solve C1 :(

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

Can anyone help me with c1?, I don't know why in the case n=5, x = 1234 fails

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

That was so fun! I loved that it was about YU-GI-OH (brought back so many memories )

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

Hello, what is the solution for B? I did greedy by reducing the rectangle with by the slice that cuts the most area each time, and placing the monster in the middle of the grid each time, but I got WA on pretest 2.

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

what is blue testing? yellow testing? red testing? What does it means? why different testers for different colors?

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

    Testing from different ranks basically, colour represents ranks and each rank is invited to test so there is kinda like a survey conducted between different skill levelled people.

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

Can anyone pls explain what i did wrong here. My logic was to update x to the sum of its digit two times which will convert it to a number [1,9] then in 4 operations I can convert any number from [1,9] to 1 and in last operation multiply it by n

void solve(){
        ll n;cin>>n;
        cout<<"digit"<<endl<<flush;
        cout<<"digit"<<endl<<flush;
        vi prime={2,3,5,7};
        int curr=0;
        int res;
        for(int i=0;i<4;i++){
            cout<<"div "<<prime[curr]<<endl<<flush;
            cin>>res;
            if(res==0){
                if(curr<4) curr++;
            }
        }

        cout<<"mul "<<n<<endl<<flush;
        cout<<"!"<<endl<<flush;
        cin>>res;
    }
     
    int main(){
        int t=1;
        cin>>t;
        while(t--){
            solve();
        }
        return 0;
    }
»
11 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

C просто имба) прям порадовал раунд, спасибо FetFot, Intellegent и MOUFLESS!

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

I hope it's the last syrian contest ever :)

The last one was even worse by the way.

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

C3 is based on a conclusion that:

A number multiply $$$999...999$$$ which the number of $$$9$$$ is no less than the number of the first number's digit, the digit sum of the result always equals $$$9 \times \text{the number of 9}$$$.

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

What was the intended TC for Problem E ?? Was O(N * K^2) expected to pass ??

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

as a participant. i got cooked

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

“This approach is interesting because it optimizes the DP state!”

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

Since, system test is pending, can anyone please check my approach for d?

  1. Find dp[i][p] = length of shortest path from 1..i having parity p. (using bfs)
  2. Let even=sum of all even numbers in A, even_odd=largest sum of a set of even number of odd numbers in A, and odd_odd=largest sum of a set of odd number of odd numbers in A.
  3. ans[i]=(even+even_odd>=dp[i][0] || even+odd_odd>=dp[i][1].
»
11 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Can someone please help me out that why does this code fails,it relies on making 1<=x<=9 by using three x digit calls,then using binary search on[1,9] where if returned value is 1 then start=mid+1,end which is then made as [1,end-mid] and [1,mid] otherwise .It has been called twice making x =1 or 2 ,now by this it is ensured that end-start==2,so i now print add(N-1) whatsoever.

Spoiler
  • »
    »
    11 месяцев назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится
    ========== [N = 1, x = 56382953] ==========
    digit [56382953]
    digit [41]
    digit [5]
    add -5 [5]
    add -2 [5]
    add -1 [3]
    add 0 [2]
    Expected 1, found 2
    ========== [N = 1, x = 19583024] ==========
    digit [19583024]
    digit [32]
    digit [5]
    add -5 [5]
    add -2 [5]
    add -1 [3]
    add 0 [2]
    Expected 1, found 2
    

    (The number in square brackets is the value of x before being modified by that query)

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

      Thanks alot but How did you come with this debugging testcase.I mean is there a resource where i can read about this?

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

        I wrote an interactor during the contest to debug, and made a testcase with random inputs (but N = 1)

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

          Any reading resource regarding that,I want to learn how to make one for future

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

            Sorry, I don't have any resources regarding this, but this is the grader I wrote:

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

What is solution for B? I came up that best option for second player is move monster to center, but it gets wa2 or i didn't consider some small detail...

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

As a participant, I solved C3 but I will get negative delta because of B :(

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

I'm Happy

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

Gonna play saber fighting for a lifetime!

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

guys, I participated in the competition, I solved some problems, they were judged and accepted, but there was no score, is this normal?

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

problem C is very nice

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

C is so adhoc XD

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

In problem D, you said A is a multiset. But in the hidden test cases, A is not always sorted. The problem statement should have been more clear.

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

I enjoyed this problems

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

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

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

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

nice contest!!!!

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

WOW! My "Rating" become 4000! (You) (doge...

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

Rating Estimations:

A — 800

B — 1200

C1 — 1400

C2 — 1500

C3 — 2400

D — 1900

E — 2300

F — 3400

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

Interaforces nooo

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

why are the solutions of other participants not availaible??

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

MOUFLESS FetFot Intellegent

Hey yesterday i participated in codeforces round 1025 div 2 and made only one submisson on question 1 and got wrong answer on test case 1, but still my rating is decreased can you look after this matter and revert back the changes?

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

This was one of the best divisions I've ever participated in Codeforces. I really loved the layout of C, even though I only solved the easy version.

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

Why is C3 more difficult than D? Therefore, it should be at least rated higher. I hope that the order of difficult questions will be reviewed?!

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

After a long time, we saw some beautiful questions! Especially C1, C2, C3.

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

Rip in interactive

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

How to become a Cyan tester ?

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

I am not able to see submission of other user,can anyone tell me after what time I can see?

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

Problem setter for this contest needs to be appreciated. Upvotes on this blog proves it.

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

My favourite yu-gi-oh card is doomking baledroch https://i.postimg.cc/qqVtgcZZ/Screenshot-2025-05-19-13-24-39.png

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

For me "D" is easier version of cses newly added https://cses.fi/problemset/task/3357/

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

My favourite yu-gi-oh card is doomking baledroch

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

Hello Codeforces Team,

I recently received a message stating that my solution (submission 320104858) for problem 2109A significantly coincides with another participant's solution (user: S0h4m). I want to clarify that I did not engage in any unfair practices, nor did I intentionally or unintentionally share my solution with anyone.

If there is any similarity, it may be purely coincidental or due to the standard nature of the problem and approach. I did not use any public online IDEs or forums to share my code during or after the contest. I am fully committed to fair competition and understand the seriousness of Codeforces' rules.

Please let me know if there is anything I can do to further clarify my position or provide evidence. I hope this issue can be reviewed once again.

Thank you for your time and consideration.

Best regards, sumitksr[contest:1025]

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

Hello Codeforces team,

I am writing regarding my submission 320102352 for problem 2109B, which was flagged for similarity with submission 320067262. I would like to clarify that I did not share my solution with anyone, nor did I copy it knowingly.

The similarity might be due to the use of a common method of calculating log2 using __builtin_clzll, which I learned it form editorials online. The grid-based calculation approach is also a natural solution structure for this kind of problem and i am using this template of cp since last 1-2 months across all the platforms, and i am very bothered after seeing this, even i dont know the individual by which my code is matching.

If any unintentional leakage occurred (e.g., through online IDEs), I apologize and will take care to avoid such situations in the future.

Please consider this explanation and let me know if any further clarification is needed.

Thank you.

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

    bcuz you cheated and thats why you got skipped and you are out_of_competition. buitlin clz isnt problem problem.

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

      i am not cheated, in any contest till date, even i dont know who is that individual by which my submission is matching if my goal is to cheat in the contest then i have already solved more than 1 problem in all the contest you can check my profile it is the first time i have ever solved 2 problems from div 2.

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

Subject: Appeal for Submission 320130836 — False Plagiarism Alert Dear Codeforces Administration, I am user fengxiabcd, writing to appeal the plagiarism alert for my submission 320130836 in Problem 2109D. The system flagged similarity with user mahskas_17's submission 320128554, but I assure you this is a coincidence arising from independent problem-solving with a common approach. Key Points: Common Algorithmic ApproachThe solution relies on widely used techniques in competitive programming: BFS (Breadth-First Search) for calculating shortest paths, a fundamental method in grid traversal problems. Parity Check to determine reachability by adjusting steps while maintaining even/odd distance properties, a classic approach in parity-based problems.This strategy is natural for the problem’s constraints and widely adopted by independent solvers. Independent Code ImplementationWhile there may be superficial style similarities, the actual variable and function names are almost entirely different, reflecting independent coding habits rather than copying. Timeline and Impossibility of PlagiarismI submitted my code within 1 minute of mahskas_17’s submission. Plagiarism would have required completing extensive modifications in mere seconds, which is technically impossible: Analyzing and understanding foreign code logic, Rewriting all variable/function names, Debugging my own code issues (e.g., fixing long long type errors).The sheer volume of changes needed contradicts the time constraints, proving the code was independently developed. Request: I kindly request a review of the code’s naming conventions and problem-solving logic to confirm the similarity stems from common algorithms, not rule violations. I am committed to Codeforces’ integrity and can provide further evidence if needed. Thank you for your attention. Sincerely,fengxiabcd Email: 2191436583@qq.com

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

To MOUFLESS

thank you for taking my rating moufless because now im saved from bullying

anyways i still wwant to tell you that with proofs i can tell i did'nt cheated

i have video of me solving that question

and i wrote that code live

on youtube

and it is clearly visible that in my live stream i did'nt use ai

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

    Catching cheaters is not my concern. If you want to present your proof, you can talk to someone who has strong permissions and access at CF.

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

    which stream? which video? i wanna see!!!!!! just standart indian guy still yapping that he didnt cheat

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

      damnn thats freaking true

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

      borther i'm second handle of swarya i want to tell you respected brother please dont report me i know that in question no. D you are seeing some comments they are written by me as i promised i have video of me solving and submitting every code do you want that i will quickly upload it on my channel just tell me and in the remaining 3 questions A,B,C i have'nt written any comment and i also used funny names in them

      but this time i really doesnt did any kind of cheating trust me and if you have some other suspects then please wait

      and bro dont worry

      i have left my chatting habit already

      and in this contest im fully ready

      just tell every kind of proof you want

      im not chattting with other account cause it is gone into read-only mode because of downvotes

      and bro actually just for your info i know a yt channel who has leaked every single solution in c++ language

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

where did my rating go?

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

Can anyone explain in problem C1 instead of subtracting 8-4-2-1, if I subtract 5-3-1-1, why does it give WA on test case 3. Both these patterns will reduce any single digit number to 1, then why does it fails? My submisison: link