Coronavirus Spread 2 [Doubt]

Can anyone tell me why can’t we do this question like this? I’m just trying to converge out the infected person whenever I find the neighbouring player having same position as the infected one…
Link – CodeChef: Practical coding for everyone

You are only iterating over integer values of ‘t’. The problem states that ‘t’ is a real number >= 0.

Thanks Buddy! Got it!