[UVA][bfs] 1377 - Ruler
Xiaoming wants to make a special ruler, which can directly measure
several given lengths. Xiaoming hopes to find a way, making the
scale on ruler as few as possible, while for a given length, there
exists two scales on ruler and the distance between the two scales
is equal ...