Congratulations Participants! You have successfully helped Cibin to tackle his problem of Computer Networks. Kudos to our top 5 programmers of #SRM05 :
I do feel something is wrong in #1.
It says "after every 150m, there is a need of repeater".
So for some value like, say, 312, it should need 2 repeaters. But the solution (and most of the AC responses) checks just for distance > 150 and subtract only 1 from availableRepeaters.
Yup @Ka0S, we're sorry for the mistake in the problem description. It was supposed to be after 150 ms not after every 150 ms. We will not consider the problem SRM05A during rating calculation for the participants who got WA
Supported by our Coding Partner