1 3 7 19,
2 3,
2 5,
4 4 4.
This is one of the input of the problem.
I understand the fist line is c1,c2,c3,c4,second line is n,m.But i am confused about the third and fourth lines.Its the number of times ramu is going to use the rickshaw number i. So in the above input 2 5 are what?please dont help with the solution I just want to understand the inputs.
Doubt regarding the input of the problem
Help Ramu question,the problem requires 4 lines of input I am not understanding the 3rd and 4th line of the sample inputs.
hey @Nitin-Bhattacharyya-2319140631658033 it is very simple
suppose the input is :
1 3 7 19
2 3
2 5
4 4 4
in this the second line of input is to take input for the number of rickshaws and cabs
and according to this input Ramu is going to use 2 rickshaws and 3 cabs
in the third line we have to take input for the number of times ramu is goin to use rickshaw and the array in which we will take input will define that how many times the ith rickshaaw ramu will use
lets suppose in the given input ramu is going to use 2 rickshaws and therefore we have 2 rickshaws and the array contains that ramu will use first rickshaw for 2 times and second rickshaw for 5 times .
in the same way he will use cab 3 times and according to the array for cabs in the 4th line of input .
he can use first ,second and third cab 4 times .
if you feel that your doubt is cleared please mark this doubt as resolved and hit the like button.
Happy Learning !!
Thanks for helping out. I will mark it as resolved.