time limit exceed

How to reduce time limit in java programming?

Find a better algorithm. Complete search and greedy alike algorithm rarely work for Codechef problems.

//