MOUFLESS's blog

By MOUFLESS, 11 months ago, In English

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:

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

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

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

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

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

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

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

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

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

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

OMG C1/2/3 in this round

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

as a tester, this contest is amazing.

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

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 months ago, hide # |
 
Vote: I like it +6 Vote: I do not like it

Nice to See arabic people Create Constest .

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

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

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

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

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

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

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 months ago, hide # |
 
Vote: I like it +6 Vote: I do not like it

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

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

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

as a tester , the problems were really high quality!

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

As a tester, Maxx "C" is balanced.

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

As a participant I predict spending 2hrs on C.

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

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

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 months ago, hide # |
 
Vote: I like it +8 Vote: I do not like it

Me to the authors to get the solutions

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

Pretty Interesting Score Distribution.

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

I think it will be a great contest

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

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

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

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

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

Yeah I'm already out of competition

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

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

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

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 months ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

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

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

Hope to have fun!

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

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

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

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

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

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

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

Should I participate?

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

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 months ago, hide # |
 
Vote: I like it +23 Vote: I do not like it

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

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

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

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

Hoping that problems will be easy

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

As a tester, I enjoyed the contest.

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

OMG feels so nostalgic

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

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

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

Mirror Force — always ready for a surprise move

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

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 months ago, hide # |
 
Vote: I like it -16 Vote: I do not like it

how can i farm positive contribution im getting negative everytime

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

second syrian contest wow!!

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

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

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

Hope it will be great as you guys!

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

INTERESTING! I AM EXCITED.

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

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

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

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

Swapping C1 with C3 is the trickiest move ever!

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

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

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

What is this card thing? I dont understand.

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

    Its a card game YU-GI-OU it comes from a comic and now become a famous game

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

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

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

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

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

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

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

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

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

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 months ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

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

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

I wish all participants success.

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

hope everyone to have a great contest

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

I'm The Forbidden one himself.

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

The Dark Armed Dragon is so cool!

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

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

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

Pupil?

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

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

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

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

hard A

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

You poor girl...

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

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

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

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 months ago, hide # ^ |
    Rev. 2  
    Vote: I like it 0 Vote: I do not like it

    Usually try to solve the harder version of the problem then the code for easy and hard will be same.

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

    They aren't connected, but the only observation you need for C2 is that multiplying by 9 does nice things to the digit sum.

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

    Multiply by 9, take sum of digits twice (now you always get 9) and then add n-9.

    I didn't really understand what they were looking for with 7 operations tbh.

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

      My solution for C1 took the sum of digits twice (it is now guaranteed that x<=16), then added -8, -4, -2, and -1 in succession. At the end of all that, you have 1, so you just add n-1.

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

      how do we know it will only take 2 operations to reduce to 9 and not 3 ?

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

        9x has at most 10 digits, so S(9x) <= 90.

        Also S(9x) is a multiple of 9, so it's one of 9, 18, 27, ..., 90, all of which have digit sum 9.

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

    If u solve C1, Change mul 9 into mul 99 then u can solve C2

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

    It either you're lucky to recall quickly that S(x) === x mod 9 or no.

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

Was F using dinic's algo?

Something like this (its in go lang)

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

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 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

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

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

      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 months ago, hide # ^ |
    Rev. 2  
    Vote: I like it +3 Vote: I do not like it
    Spoiler
  • »
    »
    11 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    multiply by 999999999

    then the sum of digits will be for sure 81;

    so then digits and add n-81

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

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

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

        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 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Why this solution for C1 is giving command limit exceeded ?

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

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

    When you have determined that x is equal to n , output a line in the following format: "!" — where the jury will output a "1" if n is equal to x, and "-1" otherwise.

    You forgot to read this response.

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

    After cout<<"!", you should cin>>, because it will return whether your answer is right.

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

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

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

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 months ago, hide # |
 
Vote: I like it +6 Vote: I do not like it

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

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

Should've slept in today.

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

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 months ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

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

»
11 months ago, hide # |
 
Vote: I like it +6 Vote: I do not like it
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 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Very very nice problemset

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

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 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    I was doing digit three times for more than an hour.

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

      Same. It feels like wasted more than 1 hour of life. C2 solution is even worse.

      Bullshit C problem in my opinion.

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

        I regret wasting time on C, should have just skipped straight to D.

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

    we can digit 3 times, then multiply by 9 and digit again, now x is 9, then add n-x.

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

    I wasted 40 minutes because my brain told me 9*9 = 89

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

    I was doing digit three times at first, but I realized that whatever value we tried is at most guaranteed to eliminate $$$\lfloor n/2 \rfloor$$$ possibilities (assuming you were adding negative numbers like I did), so I knew there was no fixing it since we start with $$$9$$$ possibilities.

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

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

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

    thats camel casing which not AI....

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

      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 months ago, hide # ^ |
         
        Vote: I like it 0 Vote: I do not like it

        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 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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 months ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

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 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    I did same. But it's wrong, we don't always want to cut the max area

    Test for this case- n = 50 m = 1000

    a = 1 b = 50

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

      I copy the AC solution, then test this. My answer for this is correct.

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

        Mine also got wrong answer for test case 1516. The input is 18 15 4 3, my answer is 8 Whereas jury is expecting 7. I did dry run on paper but always result comes 8. How come the jury expecting result 7?

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

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

320133076

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

    if x=4,then your x will never be 1 but instead it will remain 2

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

      there is a while loop inside the for loop if it is divisible it will again do it until the response is false from the ask function

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

      BLACKCOFFEE-420 it can convert any number to [2,9] to 1 in at max 4 operation

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

        it can't imagine a number 8,then for 3 times ask will get execute for first quesry output=1,x=4,counter=3 second query output=1,x=2,counter=2 third query output=1,x=1,counter=1 fourth query output=0,x=1,counter=1 now for p=3, it will again ask div 3,it will give zero so it won't execute command after && now for p=5, it will again ask div 5,it will give zero so it won't execute command after && now for p=7, it will again ask div 7,it will give zero so it won't execute command after && no of queries for digit=2,ask=7,mul=1,tot=10

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

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

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

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

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

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

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

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

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

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 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

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

    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 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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 months ago, hide # |
 
Vote: I like it -55 Vote: I do not like it

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

The last one was even worse by the way.

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

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 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

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

as a participant. i got cooked

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

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

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

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 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it
    ========== [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 months ago, hide # ^ |
       
      Vote: I like it 0 Vote: I do not like it

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

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

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

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

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

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

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

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

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 months ago, hide # |
 
Vote: I like it +8 Vote: I do not like it

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

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

I'm Happy

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

Gonna play saber fighting for a lifetime!

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

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

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

problem C is very nice

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

C is so adhoc XD

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

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 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    A multiset is not definitionally sorted, although the C++ implementation is.

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

I enjoyed this problems

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

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

    It was supposed to be the arrival cyberse but the image isn't loading

    So sad that I wasnt able to live participate in a Yu-Gi-Oh themed div

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

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

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

nice contest!!!!

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

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

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

Rating Estimations:

A — 800

B — 1200

C1 — 1400

C2 — 1500

C3 — 2400

D — 1900

E — 2300

F — 3400

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

Interaforces nooo

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

why are the solutions of other participants not availaible??

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

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 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

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

Rip in interactive

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

How to become a Cyan tester ?

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

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

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

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

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

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

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

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

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

My favourite yu-gi-oh card is doomking baledroch

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

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 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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 months ago, hide # ^ |
    Rev. 2  
    Vote: I like it 0 Vote: I do not like it

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

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

      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 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    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 months ago, hide # ^ |
    Rev. 3  
    Vote: I like it 0 Vote: I do not like it

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

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

      damnn thats freaking true

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

      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 months ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

where did my rating go?

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

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