```lua
function ConvertConfigToSegmentConfig(config)
local segmentConfig = {}
for i = 1, #config do
local segment = {
name = config[i].Name,
min = config[i].Score
}
-- 设置max为下一行的Score,最后一行max为nil或保持原值
if config[i + 1] then
segment.max = config[i + 1].Score
end
table.insert(segmentConfig, segment)
end
return segmentConfig
end
```