Providing N horses and M (M <= N) tracks, but without a timer, all you could get from one round is the order of the horses M. The question is, how many rounds at least if you want to get the title of all horses?
eg. N=3, M=3, Round=1; N=3, M=2, Round=3; N=4, M=3, Round=3;
What is Round when N = 1000, M = 3?
source share