Блог пользователя valar_dohaeris

Автор valar_dohaeris, история, 8 лет назад, По-английски

How to find the number of dearrangements for value N. For smaller(N), we can use DP to find the value, but when N is large around 10^9, how do we find it efficiently? MOD = 10^9 + 7.

Полный текст и комментарии »

  • Проголосовать: нравится
  • -7
  • Проголосовать: не нравится