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

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ก.ค. 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

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

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

    Please fill the feedback form: forms.gle/z8u7vtMJUXQFhKKy8

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

    the way of his teaching and his sound is great.

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

    This guy just nailed a div 2 comtest like div 4

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

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

  • @pushkarraj4640
    @pushkarraj4640 หลายเดือนก่อน +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

  • @manishkumar-uw5mw
    @manishkumar-uw5mw หลายเดือนก่อน +2

    abhinanv your explanation is amazing. Keep it up.

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

    what generation mic are you using?

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

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

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

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

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

    Batch 10.0 enrollment when?

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

    When will next batch starts.badly needed.

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

    🔥 🔥

  • @SelvaArumugam-xq5mf
    @SelvaArumugam-xq5mf หลายเดือนก่อน +1

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

  • @BcdBcd-cd2kg
    @BcdBcd-cd2kg หลายเดือนก่อน

    why is the audio so bad

  • @zeyadelsayed9820
    @zeyadelsayed9820 หลายเดือนก่อน +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 หลายเดือนก่อน

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

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

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

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

    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 หลายเดือนก่อน

      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 หลายเดือนก่อน

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

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

    for B i have done turnary search

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

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

    • @ym-kg7so
      @ym-kg7so หลายเดือนก่อน

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

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

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

    • @ym-kg7so
      @ym-kg7so หลายเดือนก่อน

      @@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 หลายเดือนก่อน +1

      @@ym-kg7so Got it,thanks buddy.

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

    how you took int K , it is 10^12

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

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

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

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

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

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

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

    #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 หลายเดือนก่อน +1

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

    • @user-mz8sv3cl6c
      @user-mz8sv3cl6c หลายเดือนก่อน +2

      @@abhinavkumariitism thanks bro it got accepted