A,B,C,D1 | Codeforces Round 931 Solutions | Find a Mine | Yet Another Coin Problem | Too Min Too Max

Поделиться
HTML-код
  • Опубликовано: 29 окт 2024

Комментарии • 54

  • @AbhinavAwasthi
    @AbhinavAwasthi  8 месяцев назад +3

    Join Telegram: telegram.me/cpabhinav

  • @chayanghosh814
    @chayanghosh814 8 месяцев назад +9

    I don't comment much but ..
    Man ur sense of finding hidden patterns in the question is so great...... I have been following u for a while now ....u have the unique and the best way to approach problems ....U inspire me to find patterns in problems which allows me to solve a lot of them sometimes even when i see no clue....Thanks for such a massive contribution in this community and you... as well as ur explanations are highly underrated..

    • @AbhinavAwasthi
      @AbhinavAwasthi  8 месяцев назад +2

      Thanks a lot

    • @jitendrakumar-vv8ho
      @jitendrakumar-vv8ho 8 месяцев назад +2

      yeah i too agree the 2nd question approach was lit i couldn't crack it in 2 hours man

  • @VishalYadav-gk1kg
    @VishalYadav-gk1kg 6 месяцев назад +2

    Very nice explanation sir, Thank you!

  • @whoamI-ht4op
    @whoamI-ht4op 8 месяцев назад +4

    Explanation was lit🔥. And yes can you please post how to solve interactive problems.

  • @Invincible2203
    @Invincible2203 8 месяцев назад +1

    No need to use map as it will cost log(N), i have solved it in O(1), we can store n/15 in ans and n%15 in remainder and then using if else conditions check remainder is 0 or 1 or 2 ... or 14. Then we can output ans+(whatever we get after no. of coins have been minimized). But we must be careful when remainder is 5 or 8, then output will depend on n also.

    • @AbhinavAwasthi
      @AbhinavAwasthi  8 месяцев назад +1

      Yes, but for 15 values there is no effect

  • @vypw3p634
    @vypw3p634 8 месяцев назад +2

    we need more this type of interactive problems

  • @abirh7161
    @abirh7161 8 месяцев назад

    For B my solution was simple and not think too much. I run dp for n

    • @mkshuvo5141
      @mkshuvo5141 8 месяцев назад

      is that bottom up aproch

    • @abirh7161
      @abirh7161 8 месяцев назад +1

      @@mkshuvo5141 int recur(int a[],int sum,vector &dp){
      int res=INT_MAX;
      if(sum==0){
      return 0;
      }
      if(dp[sum]!=-1){return dp[sum];}
      for(int i=0;i

    • @AbhinavAwasthi
      @AbhinavAwasthi  8 месяцев назад

      Nice

  • @Mohamed_Amine_Bennacef
    @Mohamed_Amine_Bennacef Месяц назад

    Explanation is Fire

  • @103_shashvattiwari6
    @103_shashvattiwari6 7 месяцев назад

    for second question first i make the array of coins and tried with all permutation of the coins array and return minimum answer of them but it not passed the last two input 98 and the bigger one.

  • @itsmepratham2712
    @itsmepratham2712 8 месяцев назад +1

    i am prioritizing codeforces only so is it fine no? not solving on CodeChef and doing practice on cf only so is it fine?

    • @AbhinavAwasthi
      @AbhinavAwasthi  8 месяцев назад

      Any specific reason?

    • @itsmepratham2712
      @itsmepratham2712 8 месяцев назад +1

      @@AbhinavAwasthi no not any specific reason but for clarification that what questions to solve like on cf i am solving 1100 rated because I feel I am comfortable with 1000 so for the clarity purpose only

    • @AbhinavAwasthi
      @AbhinavAwasthi  8 месяцев назад

      It's fine, but you can participate in codechef contests

  • @bhargavijethva7958
    @bhargavijethva7958 8 месяцев назад +1

    Nice explanation!👏👏

  • @lemniscate23
    @lemniscate23 8 месяцев назад +1

    very nice contest and very helpful solutions....

  • @Now_I_am_all_fired_up
    @Now_I_am_all_fired_up 8 месяцев назад +5

    Sir ab mujhe lag rha hai drr kyoki last 2 contest B bikul nhi hua ..

    • @AbhinavAwasthi
      @AbhinavAwasthi  8 месяцев назад +6

      koi baat nhi, dar ke aage jeet hai, try krte raho

    • @nishcurse
      @nishcurse 8 месяцев назад +6

      same mujhko bhi yahi hua pehle b ho jata tha

    • @AbhinavAwasthi
      @AbhinavAwasthi  8 месяцев назад +2

      ​@@nishcurselast contests se thoda tough bhi aa rha hai

  • @mkshuvo5141
    @mkshuvo5141 8 месяцев назад +2

    nice thinking❤

  • @rudraprotabchowdhury5186
    @rudraprotabchowdhury5186 7 месяцев назад +1

    helpful

  • @Shobhitchoudhary321
    @Shobhitchoudhary321 8 месяцев назад +1

    Thank you sir

  • @hxgaming8886
    @hxgaming8886 8 месяцев назад +1

    good it was good

  • @sangeetsangwan2622
    @sangeetsangwan2622 7 месяцев назад +1

    sir please share the cp specialist sheet

  • @abdelhakimlamnaouar9527
    @abdelhakimlamnaouar9527 8 месяцев назад +2

    but how can we prove that the answer for problem B is optimal

    • @AbhinavAwasthi
      @AbhinavAwasthi  8 месяцев назад +1

      Because it's accepted 😂
      Actually we are trying to maximise use of 15 rupee coins and then for other cases also we have taken optimised values in map

    • @abdelhakimlamnaouar9527
      @abdelhakimlamnaouar9527 8 месяцев назад +1

      @@AbhinavAwasthi 🤣 but maybe it will be hacked, because maybe there are other cases other than 5

    • @AbhinavAwasthi
      @AbhinavAwasthi  8 месяцев назад

      It's not maybe, I have checked multiple cases

    • @AbhinavAwasthi
      @AbhinavAwasthi  8 месяцев назад

      You can try hacking maybe 😂

    • @abdelhakimlamnaouar9527
      @abdelhakimlamnaouar9527 8 месяцев назад

      🤣

  • @preetu391
    @preetu391 8 месяцев назад +1

    Helpful! 🙌

  • @anonymousanonymous7507
    @anonymousanonymous7507 8 месяцев назад +1

    HOW WILL U DO B WITH DP LIKE MINIMISING COIN OF CSES PLS SHARE CODE

    • @AbhinavAwasthi
      @AbhinavAwasthi  8 месяцев назад +1

      Can't do Bec of high constraints