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

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

I am trying to solve 1358C - Celex Update . Here is my submission 81604588 but getting runtime error. how can i fix this?

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

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

First of all, the answer is not $$$^{N}C_M$$$ as you think. You might want to think again or check the editorial.
Secondly, factorial grows faster than exponential, so it won't fit the integer limit or even long long after a small n. The submission shows the exception and the line number so you can try replacing the int by long long but I'm pretty sure it still won't help.