Greedy problem busy man problem

https://ide.codingblocks.com/s/46191

Question : https://www.spoj.com/problems/BUSYMAN/
It is showing TLE . Please check the error . I have used greedy technique.

Add the problem link.

Instead of Scanner use BufferedReader for fast input.

1 Like

thank you so much mam