Alien Threats

Scientists have discovered spatial zones (represented by two-dimensional arrays) where aliens have been detected. The cells of each array contain an integer value indicating the density of aliens at that specific location. Scientists need to identify certain hotspots, or "critical zones" that might indicate an increased threat to humans.

Input

A sequence of spatial zones, terminated by a zero. Each zone is indicated by:

Output

There are 3 pieces of information to be displayed:

Observation

It is mandatory to write at least one subroutine that reads an entire spatial zone. The subroutine receives a matrix by reference and fills it with values read from the input. However, it is probably convenient to create more subroutines for this problem.

Problem information

Author: PRO1 professors

Generation: 2026-01-25T19:54:39.911Z

© Jutge.org, 2006–2026.
https://jutge.org