diff --git a/content/combinatorial/multinomial.h b/content/combinatorial/multinomial.h index 99d397d7c..292522bb3 100644 --- a/content/combinatorial/multinomial.h +++ b/content/combinatorial/multinomial.h @@ -9,7 +9,6 @@ ll multinomial(vi& v) { ll c = 1, m = v.empty() ? 1 : v[0]; - rep(i,1,sz(v)) rep(j,0,v[i]) - c = c * ++m / (j+1); + rep(i,1,sz(v)) rep(j,0,v[i]) c = c * ++m / (j+1); return c; }