Uva 11799

Problem Name: Horror dash

This is really an easy problem. But it is really a challenging problem to solve using so less run time. You can use solve it without any sort and array. Are you surprised? Think again, Hope you can do it only 0.001 sec run time. - ashis