[HELP] Edu round 86 Problem E

Правка en1, от adityagamer, 2024-01-20 19:39:47

Whats wrong with my solution for problem E : https://codeforces.me/contest/1342/problem/E?

Let c = n-k. Number of ways such that c columns are filled = (Number of ways such that <= c columns are filled) — (Number of ways such that <= c-1 columns are filled)

So formula is $$$ \binom{n}{c}c^n - \binom{n}{c-1}(c-1)^n $$$

Теги help

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский adityagamer 2024-01-20 19:39:47 362 Initial revision (published)