- #1
keemosabi
- 109
- 0
Given 1000 cows and 10 pens, you want to arrange the cows in the pens such that any number of cows from 1 to 1000 can be obtained by opening certain pens and taking all the cows in those pens. How do you arrange the cows in the pens?