There's a city divided into 10x10 blocks. Each block has its own fire rate. There's also a river in the city which divides the city into 2 areas which are connected with 2 different bridges.
We want to find the best block to put our fire station in, So the chosen block should be more close to the blocks with more fire rate.
5 | 2 | 4 | 8 | 9 | 0 | 3 | 3 | 8 | 7 |
---|---|---|---|---|---|---|---|---|---|
5 | 5 | 3 | 4 | 4 | 6 | 4 | 1 | 9 | 1 |
4 | 1 | 2 | 1 | 3 | 8 | 7 | 8 | 9 | 1 |
1 | 7 | 1 | 6 | 9 | 3 | 1 | 9 | 6 | 9 |
- | = | - | - | - | - | = | - | - | - |
4 | 7 | 4 | 9 | 9 | 8 | 6 | 5 | 4 | 2 |
7 | 5 | 8 | 2 | 5 | 2 | 3 | 9 | 8 | 2 |
1 | 4 | 0 | 6 | 8 | 4 | 0 | 1 | 2 | 1 |
1 | 5 | 2 | 1 | 2 | 8 | 3 | 3 | 6 | 2 |
4 | 5 | 9 | 6 | 3 | 9 | 7 | 6 | 5 | 10 |
0 | 6 | 2 | 8 | 7 | 1 | 2 | 1 | 5 | 3 |
The - is the river and the = is the bridge.