COVID19B - Editorial

This post was flagged by the community and is temporarily hidden.

Good question tho !

Note: order in which I represent speed array will show their relative positions
consider the person with speed 3 is infected
t=0 speed array= 2 3* 1
t=1 speed array= 2 1* 3*
t=2 speed array= 2/1* 3*

Can anyone please help me with what’s wrong with this code
https://www.codechef.com/viewsolution/46634584

Can you please help me with what’s wrong with this code
https://www.codechef.com/viewsolution/46634584

Can you kindly help me with what’s wrong with this code
https://www.codechef.com/viewsolution/46634584

[C++] AC Answer without using maps or bubble sort

For this test case:
1
4
2 4 0 2
Expected output is given as 2 4 , but I am getting 2 3 . Can anyone verify how we can get 4. I am not able to work out all athletes getting infected…