P&C 2102: choosing a group

In this question, we choose a group of nn students from a set of mm students, split between schools A,BA,B and CC, with the following restrictions:

  • aa students from AA, bb students from BB and cc students from CC
  • students from BB and CC only
  • at least kk students from CC
  • at least 1 student from each school

App preview

Access the app at https://2102-gray.vercel.app.