I am facing this issue in many questions . The problem statement is not much clear.The input format is ambiguous and please include explanation of sample input and output so that question becomes more clear.
Statement not clear
Hello @sukhwinder9813
The problem statement is indeed not very clear.
The input is as follows:
N boards
K painters
T time (each painter takes this much amount of time to paint 1 unit of any board)
Length of N boards
Output:
Print the minimum it will take to paint all the boards if all the painters works in parallel.
Ex:-
2 (Number of boards)
2 (Number of painters)
5 (Amount of time that any painter will take to paint 1 unit of board)
1 10 (Length of boards)
Lets say, painter 1 paints board 1 and painter 2 paints board 2
Then painter 1 will finish the work in 5 units of time
while painter 2 will finish the work in 50 units of time.
So both painters will complete their work in under 50 units of time, which is the minimum time required.
If painter 1 paints both board 1 and board 2
Then it will take 55 units of time
Minimum of 50 and 55 is 50
so output 50
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.