Comments
0

Thats a good point to consider,but still i think my code won't work. Cause i specifically increased only 2. That means the locations added can never be more than 2 at a time for a single case of difference

0

Well they specified minimum distance. So it should cover the points in between. I submitted considering to be exactly d but then i realized that all ppints should be there for large difference

0

I think there was a mistake in my source code for problem A. But my solution got accepted. Here is the link to my solution: http://mirror.codeforces.com/contest/1004/submission/40001844 If i input 4 as hotel number and 2 as difference and 1 2 4 and 40 as the hotel locations,should there not be all locations in between 6 and 38 and the additional 2 locations for two ends? i think my solution did not cover this part. I hope it can be checked and clarified. Thanks