You have a hospital with an MXN number of rooms. Suddenly bacterial infection occurs in one room and its start spreading in North-South West, East direction and only to its adjacent room which is opened and how long would IT rake for the bacteria to be spread to the entire hospital Input Format First-line contains two integers, M, N Space-separated giving the sire of the hospital in terms of the number of rows and columns respectively The next Mines, where ith line containing N characters each room of which is either or e giving the status of the The next line contains two Integers XY, space-separated, giving the coordinates of the first room that occurs bacteria. Output Format A single integer indicating the number of minutes taken for the bacteria to be spread to the entire hospital Constraints: 3SMS20 3 sN 20 Sample input: 34 COC 0000 12 Sample Output: 4
Answers
Answered by
1
Answer:
A nosocomial infection is contracted because of an infection or toxin that exists in a certain location, such as a hospital. People now use nosocomial infections interchangeably with the terms health-care associated infections (HAIs) and hospital-acquired infections. For a HAI, the infection must not be present before someone has been under medical care.
One of the most common wards where HAIs occur is the intensive care unit (ICU), where doctors treat serious diseases. About 1 in 10 of the people admitted to a hospital will contract a HAI. They’re also associated with significant morbidity, mortality, and hospital costs.
Similar questions