Description: There is a bridge over the river, after a major flood, the bridge was washed away n pieces of wood, leaving the stent standing in the middle of a water. Now go to the other end of the bridge
Snacks, so you need to buy wood repair the bridge.
Bridge a total d stents, each requiring a length of wood on the stand 1. The boss lazy wood shop, he did not want to cut each board a length
He is willing to give you up to m blocks of wood.
Do you know the number of wood missing bracket, you have to buy wood for bridges as short as possible, because the rest of the money you can buy to eat.
To Search:
File list (Check if you may need any files):
xiuqiao.cpp