Roti prata spoj


what is wrong with this?

@Shreya-Gupta-2383169445069382 what is the question that you are solving because in the content I can see the book allocation problem but in your code it’s quite different problem that you are solving.

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.

Can u please tell how u arrived at p=p+ floor(sqrt(1+ (8*time/a[i]))-1);?