Doubt in understanding the problem statement

A ticket for one ride on some rickshaw or cab. It costs c1 ruppees;

A ticket for an unlimited number of rides on some rickshaw or on some cab. It costs c2 ruppees;

A ticket for an unlimited number of rides on all rickshaws or all cabs. It costs c3 ruppees;

A ticket for an unlimited number of rides on all rickshaws and cabs. It costs c4 ruppees.

What these lines want to say. I am getting confused.
And please also explain me the sample input and output that how it is working?

I am unable to understand the problem.

Hey @yashsharma4304
refer to this : https://youtu.be/CKDFPzX24BY

The video is not making any clarity. Will you please explain me.

Assume rickshaw is R and cabs is C
So 1st statement means
It will cost c1 rupoes to either use R or C once

2nd statement means
Unlimited rides ticket on R or C =c2, that after paying c2 u can use either R or C unlimited times for some particular vehicle(say u paid c2 for DL …0037 so u can take multiple rides of that car)

3rd statement means
Unlimited rides ticket on R or C =c3 ,that after paying c3 u can use either R or C any vehicle unlimited times

4th statement means
U can use both R & C all vehicles

Example
If say options for R are a,b and C are x,y

Then 1) use a once or b once or x once or y once
2) use a unlimited times or b unlimited times or x unlimited times or y unlimited times
3) use both a,b unlimited times ot use both x,y unlimited times
4) use a,b,x,y unlimited times

1 Like

Ok, now I understand. Thank you for explaining me by taking an example. Great explanation. :heavy_heart_exclamation: :slightly_smiling_face: