I have maximum $1000$ items to be distributed among $3$ students Each student has a priority of $40$%, $30$% and $30$% respectively.
I am distributing $100$ items initially in the first round
In the second round $500$ items
In the third round $400$ items
I need to keep the priorities $40$%, $30$% and $30$% in each round
Even if there is a round in which I distribute $1$ item I need to keep the priorities $40$%, $30$% and $40$%: how to achieve this ?
Fix a rota that repeats every 10 items and meets your 40-30-30 rule - for example $ABCABCABCA$.
First $5$ items are distributed as $ABCAB$ so $A$ and $B$ have $2$ items and $C$ has $1$.
Next $8$ items are distributed as $CABCAABC$ so now $A$ has $5$ items, $B$ and $C$ have $4$.
After $20$ items are distributed $A$ has $8$, $B$ and $C$ have $6$, and this is exactly a 40-30-30 split. An exact 40-30-30 split is only possible when the total number of items distributed is a mulitple of 10.