Problem link: https://www.codechef.com/SEPT20B/problems/COVID19B/
I am not able to figure it out where my code is giving WA.
if anyone can point out mistake in my code or atleast give some test cases where my code fails…it would be a great help.
Approach: I have stored all my velocities in a vector v and then for each velocity i am calling function “findcount” which gives me count of infected people. it counts the people with velocity greater than the infected person to its left and persons with velocity less than infected people to its right while taking care of time of infection.