回複:just delete that sentence
OK.Optimal policy:
1)If you sell y carts ,no $100,you buy all ,get the $100,and close door,OR sell all.
F(y)=[100xy+(100-y)(x*y+100)]/100.
y=(100x-100)/2x,you get Max.
2)If you sell y carts ,no $100,you buy till get $100,and then sell "0" all.OR sell all.
F(y)=[100xy+(100-y)(x*y+100)+(100-y)/2]/100
y=(100x-100)/2x,(Max)though y is the same,but gain is more.
Good luck.