Codeforces Round 953 (Div 2) | Video Solutions - A to E | by Abhinav Kumar | TLE Eliminators

Sdílet
Vložit
  • čas přidán 28. 07. 2024
  • Here are the video solutions in the form of a post-contest discussion for problems A, B, C, D, E of Codeforces Round 953 (Div 2). The live discussion was done with students of TLE Eliminators, this is the recording of the same. We hope this will be useful for you in up-solving this contest.
    📢Check out handpicked problems by Priyansh himself, on our CP-31 sheet: www.tle-eliminators.com/cp-sheet
    Solution Codes:
    Problem A: codeforces.com/contest/1978/s...
    Problem B: codeforces.com/contest/1978/s...
    Problem C: codeforces.com/contest/1978/s...
    Problem D: codeforces.com/contest/1978/s...
    Problem E: codeforces.com/contest/1978/s...
    Be sure to check out TLE Eliminators.
    Website: www.tle-eliminators.com/
    Instagram: / tle_eliminators
    Linkedin: / tle-eliminators
    Twitter: / tle_eliminators
    TLE Community Discord Server: / discord
    Timestamps:-
    0:00 Problem A
    8:30 Problem B
    25:00 Problem C
    50:34 Problem D
    1:19:03 Problem E

Komentáře • 33

  • @TLE_Eliminators
    @TLE_Eliminators  Před měsícem +1

    Please fill the feedback form: forms.gle/z8u7vtMJUXQFhKKy8

  • @laxmanchoudhary4450
    @laxmanchoudhary4450 Před měsícem +3

    the way of his teaching and his sound is great.

  • @kondekarvaishnavi2348
    @kondekarvaishnavi2348 Před měsícem +1

    Just listening the idea a lttle bit I can able to implement whole code. That how his intitution made. Thanks abhi

  • @aankie
    @aankie Před měsícem +2

    This guy just nailed a div 2 comtest like div 4

  • @manishkumar-uw5mw
    @manishkumar-uw5mw Před měsícem +2

    abhinanv your explanation is amazing. Keep it up.

  • @pushkarraj4640
    @pushkarraj4640 Před měsícem +2

    In E, no need of running for loop from l to l+1, only checking for l+1 suffices the condition, because for i==l if s[i]=='0', req[i].first can never lie in l to r

  • @sabaokangan
    @sabaokangan Před měsícem +1

    You and @nicspyy are the only masters that can demystify Division 2 Codeforce Challenges for dummies like me ❤ from NY

  • @blackjackal9506
    @blackjackal9506 Před měsícem +1

    Hi Bhaiya, when is the next batch for level 1 starting?

  • @ankit21309
    @ankit21309 Před měsícem +1

    what generation mic are you using?

  • @SelvaArumugam-xq5mf
    @SelvaArumugam-xq5mf Před měsícem +1

    What was all that about E the way Abhinav explained it made it sooo easy

  • @vijaysakthivel4966
    @vijaysakthivel4966 Před měsícem +1

    Batch 10.0 enrollment when?

  • @Homelander_30
    @Homelander_30 Před měsícem

    When will next batch starts.badly needed.

  • @zeyadelsayed9820
    @zeyadelsayed9820 Před měsícem +1

    hello, thank you for your incredible efforts in CP. I would to inform you that there is a problem in CP-31 sheet as all the problems disappeared and showing that there is an error in fetching problems

    • @mohamedtamer9041
      @mohamedtamer9041 Před měsícem

      Me too, I hope fix this problem as soon as possible

    • @zeyadelsayed9820
      @zeyadelsayed9820 Před měsícem

      @@mohamedtamer9041 جرب تمسح الcookies اللي في الموقع و جرب تاني
      انا عملتها اشتغلت معايا

  • @devisriprasad119
    @devisriprasad119 Před měsícem

    for B i have done turnary search

  • @RAJANNIRANJANhbtu
    @RAJANNIRANJANhbtu Před měsícem

    In D's first test case (2,0,3), if 3rd candidate (3) is max, why does it needs to remove 2 more candidates for making him win ? and if that's the case then in last test case, 4th candidate (3) would have needed 3 candidates to win not 0.

    • @abhinavkumariitism
      @abhinavkumariitism Před měsícem

      I think u didn't understand the problem statement well. Please read it again or rewatch the explanation.
      here, in the 1st test case, there is also "c=1", which means that "1 person" who is undecided would vote for the candidate with lowest number (i.e. candidate 1), so votes of 1 also becomes 3, and he being lower numbered would win (not 3).
      while in the last test case, c=0.. so there is no undecided people.. so candidate 4 wins having most votes(and lowest no. among tied people).

  • @dank7044
    @dank7044 Před měsícem

    The logic to E about we only needing to check l,l+1 and r-1,r is not clear

  • @aryanrawat3494
    @aryanrawat3494 Před měsícem

    🔥 🔥

  • @BcdBcd-cd2kg
    @BcdBcd-cd2kg Před měsícem

    why is the audio so bad

  • @ankitghosh9873
    @ankitghosh9873 Před měsícem

    if(b-a>=n-1){
    int ans=b*(b+1)/2 - (b-n)*(b-n+1)/2;
    cout

    • @ym-kg7so
      @ym-kg7so Před měsícem

      It's nothing but addition of b to b-n+1

    • @ankitghosh9873
      @ankitghosh9873 Před měsícem

      @@ym-kg7so not that wanna ask why we re doing this b-a>=a what is the intuition

    • @ym-kg7so
      @ym-kg7so Před měsícem

      @@ankitghosh9873 if diff between b and a is greater than or equal to n then it's better to take b , b-1 , ....b-n+1(all are greater than a). If the diff between b and a is less than n you take all elements between b to a and rest all elements as a to maximize.

    • @ankitghosh9873
      @ankitghosh9873 Před měsícem +1

      @@ym-kg7so Got it,thanks buddy.

  • @Rlxn5
    @Rlxn5 Před měsícem

    how you took int K , it is 10^12

    • @harshitshukla1974
      @harshitshukla1974 Před měsícem

      you can define "int" as "long long" using #define

    • @Rlxn5
      @Rlxn5 Před měsícem

      @@harshitshukla1974 may be he is using it like that 😮‍💨

    • @abhinavkumariitism
      @abhinavkumariitism Před měsícem

      ​@@Rlxn5yepp.. i've done that only.

  • @user-mz8sv3cl6c
    @user-mz8sv3cl6c Před měsícem

    #include
    using namespace std;
    #define int long long
    void solve(){
    int n,k; cin>>n>>k;
    vector v(n);
    for(int i=0;i

    • @abhinavkumariitism
      @abhinavkumariitism Před měsícem +1

      *if(v[l] + (k/2) > n)* should be replced by *if(v[l] + (k/2) > n-l)*

    • @user-mz8sv3cl6c
      @user-mz8sv3cl6c Před měsícem +2

      @@abhinavkumariitism thanks bro it got accepted