Chef and Street Food problem giving WA!!!
At least give link to your submission
cin>>a>>b>>c;
e=b/(a+1);
d=max(d,e*c);
input is given in s p v format p for people and v for price you are not multiplying with price which is v you need to multiply price with p/(s+1)
thank you. I understand.
cin>>a>>b>>c;
e=c/(a+1);
d=max(d,e*b);
this my code.
Yeah, I made changes. Read the ques again and you will know your mistake. You can ask if you didn’t understood.
Sorry but i can’t find my mistake…
You should first find the number of people and then multiply it by the value. So, it should be (value) * (price / (store+1)) . Hope you understood