Codeforces Round 955 Video Editorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024

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

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

    Cool editorial, wanna see these videos becoming regular

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

    bro pls your videos are wonderfool so can you do editorial in each contest. it will be very good for you and for you subscribers : )
    Who is agree like pls ; )

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

    Great video. But it did sound like you were feeling sleepy during recording. Nonetheless I really look forward to another one from you.
    PS: I subscribed.

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

    i think we need to put if (prefix[x] - prefix[i] = l)
    another and condition in if to ge t correct ans.

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

      hi, we don't need the prefix[x] - prefix[i] >= l part because the lower_bound function already makes sure this is true

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

      @@BoraDemirtas ok thanks man

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

    orz, thank you for your effort.
    how much time did it took you.
    Does the process of making this kind of editorial get faster after each iteration?

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

      1. this one took 12ish hours
      2. last one took 25ish hours but i haven't made enough to conclusively say anything

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

    cool explanation bro

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

    How did you come up with the diff = y - x%y;

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

      we will do the division operation when x is divisible by y
      we want to figure out how many times we will increment x before it is divisible by y
      currently the remainder is = x%y
      if we add diff + x%y to get our new remainder after incrementing x by diff times , we get:
      y - x%y + x%y = y
      and trivially y is divisible by y

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

    nice explanations in very short time
    Thanks

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

    This is *really* cool, Manim editorials are like the highest quality haha.

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

    :D Thank youu

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

    Thanks a lot for this.

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

    For this problem I think greedy approach Is more intuitive than Dynamic Programming Approach. Well Nice Explanation

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

    5:43 could you please help, didn't understand what we did with the lower bound function here

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

      it returns the first index that an array is greater than or equal to a specified value

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

    thankyou

  • @Idk-os4ix
    @Idk-os4ix 3 หลายเดือนก่อน

    int n,l,r;
    cin>>n>>l>>r;
    vectora(n);
    for(auto &ele:a)
    cin>>ele;
    long long sum = 0;
    int ans = 0;
    for(int i=0;i= l && sum r){
    if(a[i]>= l && a[i]

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

      Hey ! My logic was also the same and my code was also failing :( ! Have u got the reason that why it is failing?