Sammmmmmm's blog

By Sammmmmmm, history, 5 months ago, In English

Given R red balls, B blue balls, and G green balls. Count ways to arrange them so that there are exactly k pair RB (red ball is

in front of blue ball).

K <= min(R, B) R, B, G, K <= 1e6

Thanks!

  • Vote: I like it
  • +8
  • Vote: I do not like it