E - Random Swaps of Balls (AtCoder Beginner Contest 360)

Поделиться
HTML-код
  • Опубликовано: 26 авг 2024
  • Code: atcoder.jp/con...
    #atcoder #codechef #codeforces #arc #cp #abc #Atcoder

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

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

    Your explanations are way better than @aryanc's. Thank you for making such good explanatory videos. Keep it up!

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

    dp[i][1] = ( 1 + (n - 1) * (n - 1) ) * dp[i - 1] [1]
    can you explain why you are adding + 1 there. that part is already cover na?

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

      No (n-1)(n-1) is for choosing anything other than the current j, and 1 when getting (j,j)
      Please like, share and subscribe if it's helpful

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

      @@soumyabhattacharjee1051 subscribed sir