MOUFLESS's blog

By MOUFLESS, 16 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

| Write comment?
»
16 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.

»
16 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...

»
16 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
»
16 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 ?!

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

OMG C1/2/3 in this round

»
16 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
»
16 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 ^_^

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

Nice to See arabic people Create Constest .

»
16 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.

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

»
16 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.

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

»
16 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

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

as a tester , the problems were really high quality!

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

As a tester, Maxx "C" is balanced.

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

As a participant I predict spending 2hrs on C.

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

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

Pretty Interesting Score Distribution.

»
16 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!

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

Yeah I'm already out of competition

»
16 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.

»
16 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, based on COMPFEST 16 - Final Round))

»
16 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 ?

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

Hope to have fun!

»
16 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.

»
16 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!!!

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

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

»
16 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

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

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

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

Hoping that problems will be easy

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

As a tester, I enjoyed the contest.

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

OMG feels so nostalgic

my favorite card
»
16 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 ?

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

Mirror Force — always ready for a surprise move

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

how can i farm positive contribution im getting negative everytime

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

second syrian contest wow!!

»
16 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 ??

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

Hope it will be great as you guys!

»
16 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 :)

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

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

Swapping C1 with C3 is the trickiest move ever!

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

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

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

What is this card thing? I dont understand.

  • »
    »
    16 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

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

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

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

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

»
16 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 ??

»
16 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 :)

»
16 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.

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

I wish all participants success.

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

The Dark Armed Dragon is so cool!

»
16 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.

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

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

hard A

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

You poor girl...

»
16 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?

  • »
    »
    16 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.

  • »
    »
    16 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.

  • »
    »
    16 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.

    • »
      »
      »
      16 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.

    • »
      »
      »
      16 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 ?

      • »
        »
        »
        »
        16 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.

  • »
    »
    16 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

  • »
    »
    16 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
»
16 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)

»
16 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?

  • »
    »
    16 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

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

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

    • »
      »
      »
      16 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 ?

      • »
        »
        »
        »
        16 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)

»
16 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://codeforces.me/contest/2109/submission/320122515

  • »
    »
    16 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.

  • »
    »
    16 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.

»
16 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

»
16 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.

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

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

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

Should've slept in today.

»
16 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???

»
16 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

»
16 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

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

Very very nice problemset

»
16 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 ...

  • »
    »
    16 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.

    • »
      »
      »
      16 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.

      • »
        »
        »
        »
        16 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.

  • »
    »
    16 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.

  • »
    »
    16 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

  • »
    »
    16 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.

»
16 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.

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

    thats camel casing which not AI....

    • »
      »
      »
      16 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
»
16 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

»
16 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

  • »
    »
    16 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

»
16 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

  • »
    »
    16 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

    • »
      »
      »
      16 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

    • »
      »
      »
      16 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

      • »
        »
        »
        »
        16 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

»
16 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.

»
16 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 :(

»
16 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
»
16 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.

»
16 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?

  • »
    »
    16 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.

»
16 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;
    }
»
16 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.

»
16 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}$$$.

»
16 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 ??

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

as a participant. i got cooked

»
16 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].
»
16 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
  • »
    »
    16 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)

    • »
      »
      »
      16 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?

      • »
        »
        »
        »
        16 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)

        • »
          »
          »
          »
          »
          16 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

          • »
            »
            »
            »
            »
            »
            16 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
»
16 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 :(

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

Gonna play saber fighting for a lifetime!

»
16 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?

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

problem C is very nice

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

C is so adhoc XD

»
16 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.

  • »
    »
    16 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.

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

  • »
    »
    16 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

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

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

»
16 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

»
16 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.

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

Rip in interactive

»
16 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.

»
15 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: [email protected]

»
15 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

  • »
    »
    15 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.

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

where did my rating go?