I AM VERY BUSY spoj:-https://www.spoj.com/problems/BUSYMAN/

Y cant i take my starting count as 1 and end time as the end of 1st event after sorting.
like this :-https://ide.codingblocks.com/s/34926
and then run the loop from index 1.
Its giving WA
The correct sol is to take end as -1.and count as 0 then start from 0 index

You sure? 'cause this is my accepted solution

2 Likes

i did slight mistake while submitting the code it should not have been worked but it showed that 5th test case is wrong…like it stopped on the 5th case so i thought i m missing some corner.
but its totally fine now.Spent a lot of time thinking that case though :smile:
Thanks for your quick response as usual

1 Like