Computer Science, asked by yoginibp1999, 5 months ago

Collect Resources
S1
arus
Q1
Problem Description
Q2
Q3
There is a rectangular field with two types of resources viz, resource A and resource B. At each cell in the field, both of the resources
can be present. There are two types of factories which can collect resource A and B. If resource A is collected in a factory then
resource B is lost and vice versa. Now, these two factories are located perpendicular to each other ie the factory collecting resource A
is at the top ( north) of the rectangular field and the factory collecting resource B is to the left (west) of the rectangular field. The
resources have to be brought to the factory only straight path without taking any turns. This implies that if there is any south-north
conveyor belt in the cell, but the cell north of it contains an east-west conveyor belt, then all resources transported on the south
north conveyor belt will be lost.
You have to design a conveyor belt system that maximizes the total amount of minerals mined, ie the sum of the amount of resouros
A transported to the top and the sum of the amount of resource B transported to the left. You are given a 2-D matriz A and B of the
same size denoting the amount of resource of the corresponding type in that cell,
Since the answer can be large, return it modulo 10° +7
24
2.5
Problem Constraints
1 <= A= BI<= 10% program in any language

Answers

Answered by sarasyed12
0

ajei is not opening is a gas which I think would work sheet nhi hai ab lessons and all of the time you are intelligent people who share similar in the quiz answers for you jest is a convict

Similar questions