COURSE-AUG10

Problem: http://ww2.codechef.com/AUG10/problems/COURSE

A correct solution: http://ww2.codechef.com/viewsolution/298347

Can someone tell me what is being done in the step Ti=max(T,), t[i]=min(t[i],Ti);
I have read the editorial and tried to implement it but nowhere did i use this step which is there in all other correct solutions. Please explain.

Here is my WA solution: http://ww2.codechef.com/viewsolution/2075275