diff options
Diffstat (limited to 'content/math/binomial1.cpp')
| -rw-r--r-- | content/math/binomial1.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/math/binomial1.cpp b/content/math/binomial1.cpp index dab20b3..34f13ed 100644 --- a/content/math/binomial1.cpp +++ b/content/math/binomial1.cpp @@ -1,7 +1,7 @@ -ll calc_binom(ll n, ll k) { +ll binom(ll n, ll k) { if (k > n) return 0; ll r = 1; - for (ll d = 1; d <= k; d++) {// Reihenfolge => Teilbarkeit + for (ll d = 1; d <= k; d++) { // Reihenfolge => Teilbarkeit r *= n--, r /= d; } return r; |
