#abc197e. [abc197_e]Traveler

[abc197_e]Traveler

现在有 nn 个球,每个球的位置在 xix_i 上,并且编号为 cic_i,你现在从 00 出发,并且每秒只能走一步,并且单调不减得收集所有的球,现在让你求最短时间。