HDU 1175 (bfs)