Id1994
TitleTian Ji -- The Horse Racing
Tagsconstructive algorithms
greedy
Brief solution分别排序,分别用两个指针表示头和尾。在这些指针指向的马中作出贪心选择。
time usage:1.008560