Skip to content

Commit

Permalink
Ups
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanRenison committed Oct 7, 2024
1 parent 2f92d79 commit 7e6a890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/combinatorial/multinomial.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +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 *= ++m / (j+1);
rep(i,1,sz(v)) rep(j,0,v[i]) c = c * ++m / (j+1);
return c;
}

0 comments on commit 7e6a890

Please sign in to comment.