Pregunta de entrevista de TuSimple

Some question using priority queue, not difficult