Codeforces Round 963 Solution Discussion | ABCDF1E

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ก.ย. 2024

ความคิดเห็น • 24

  • @LakshyaIIITD
    @LakshyaIIITD หลายเดือนก่อน +3

    The way you reduce Problem D into DP was amazing

  • @aniketshishodia1814
    @aniketshishodia1814 หลายเดือนก่อน +3

    Thank you sir , following you from last month for upsolving and seeing my ability to think grow. 💝

  • @sdmfslkdm
    @sdmfslkdm หลายเดือนก่อน

    this is like so great , explaining the doubts , keep doing it .

  • @Rajajikahook1010
    @Rajajikahook1010 หลายเดือนก่อน

    bhaiya..aapko hi follow krra hu cp me improve krne ke liye.. bas kabhi rukna mat,, you'll suerly succed in life i pray

  • @k3d4rcodes45
    @k3d4rcodes45 หลายเดือนก่อน

    Very minimal wm , love it

  • @tervicke487
    @tervicke487 หลายเดือนก่อน

    41:50 just for info , changes[x+4*k]++ and changes[x+5*k]-- isnt neccessary needed . if the answer exists it would have been found in either [x,2k) or [2k,3k) or [3k,4k) .

    • @mowafkmha4505
      @mowafkmha4505 หลายเดือนก่อน

      it can be only the first cycle if we make max= (max +k-1)

  • @collegeexplorer1374
    @collegeexplorer1374 หลายเดือนก่อน

    Small Doubt : We are adding mp[ { x + dx , y + dx } ] in our answer and we are assuming dx with always increase by same amount, which might not be true.
    Consider: Width = 3 and s = "RR" , dx = 2 after one string execution then it becomes "RL" as we reach the right end of box, so dx after executing both strings is = #R - #L = 3 - 2 = 1 , But as per the logic you explained it will be 2 + 2 ( dx after executing one string two times ) = 4 which mismatches, please clarify🥲

    • @aryanc403
      @aryanc403  หลายเดือนก่อน +1

      If we look at the modified string, then we will be at X=0, when difference is 0, and X=W when difference is X, we will never have negative difference or > W difference.
      My claim was if we ignore changes and just look at original difference, then ....... are necessary and sufficient condifitions.
      Which is value mod 2W should be 0 for origin and W for X=W.

  • @sdmfslkdm
    @sdmfslkdm หลายเดือนก่อน

    can anyone like explain me that how are we making sure that only ( n - 1 ) % k + 1 , elements are being picked ?

  • @priyanshusharma2310
    @priyanshusharma2310 หลายเดือนก่อน

    Keep up the good work!

  • @kaustubhgaikwad2562
    @kaustubhgaikwad2562 หลายเดือนก่อน +2

    Sir bohot cheating hoo rahi hai CF pe

  • @GaneshPendem
    @GaneshPendem หลายเดือนก่อน

    Sir, how did you get idea for counting maximum number by dividing into row and coloumn

  • @suprith777
    @suprith777 หลายเดือนก่อน

    I didn't get why in the first place 0,1 array is needed?

  • @JayKhanderay-rk6gd
    @JayKhanderay-rk6gd หลายเดือนก่อน

    Hi bhai in the parity question. I Almost solved the question just 3rd and 4th test case is not passing there idk know why? First and second test case passed but third and 4th not passed I don't know why. I am adding two elements if they are even and odd. And if as per given conditions a(I)

    • @VivekRaj-vu9zn
      @VivekRaj-vu9zn หลายเดือนก่อน

      paste the code here, either the logic would be wrong or you might not have taken into account the large numbers that are generally present in testcase 4,5,..... (instead of int, you have to declare long long int). if you paste the code here then maybe i will be able to help you.
      p.s. i am just a random coder came across your comment, here to seek help in upsolving unsolved problems from contest myself.

    • @JayKhanderay-rk6gd
      @JayKhanderay-rk6gd หลายเดือนก่อน

      If (nums[I]%2! =nums[j]%2)
      If(nums[I]

    • @VivekRaj-vu9zn
      @VivekRaj-vu9zn หลายเดือนก่อน

      @@JayKhanderay-rk6gd this logic is incomplete, needs more thinking from your end, watch the editorial and learn the correct logic and then code yourself and then submit on codeforces👍👍

    • @JayKhanderay-rk6gd
      @JayKhanderay-rk6gd หลายเดือนก่อน

      @@VivekRaj-vu9zn how? The logic is incomplete?

    • @VivekRaj-vu9zn
      @VivekRaj-vu9zn หลายเดือนก่อน

      @@JayKhanderay-rk6gd watch the editorial and know the difference

  • @parvjain3250
    @parvjain3250 หลายเดือนก่อน

    Abe. Randomly feed people tu recommend ho gaya. Kaisa hai?

    • @aryanc403
      @aryanc403  หลายเดือนก่อน

      Bhai mai badiya hu. Tum batao kya haal chaal?

  • @rishabhnegi1937
    @rishabhnegi1937 20 วันที่ผ่านมา

    Worst explanation

  • @user-yo7sg2ei7b
    @user-yo7sg2ei7b หลายเดือนก่อน

    why my answer is wrong please tell me
    #include
    using namespace std;
    #include
    #include
    #include
    #include
    #include
    #include
    #include
    #include
    #include
    long long solve(vector&temp){
    priority_queue mini;
    priority_queue maxi;
    for(int i = 0; in;
    for(int i = 0; i>a;
    vector temp;
    for(int j = 0; j>b;
    temp.push_back(b);
    }
    for(int i = 0; i