Number of pages problem

code link : https://ide.codingblocks.com/s/358604

please check into my code and suggest the changes or error, it is failing on one test case

hello @shivanshu12800
pls wait ,checking ur code

@shivanshu12800
remove if(n<m) condition and then try

why did that happen…that condition wasn’t necessory?

yeah, that condition was wrong .
answer will exist for case n<m as well (they want to minimize maximum)

Okay, that means it isn’t necessary to divide all the books among all the students…right?

yeah if books are less then we cannot divide it to all the students.
those who receive we need to tell maximum among them

Okay thank you ! I am marking it resolved