getting wrong answer in abc172c — Tsundoku.
my logic is that taking topmost book from two stack which has less required time to read. I greedily repeated this step untill both list are empty or time slot is available.
why my approach is wrong?
I was trying this problem CSES 1084.
I greedily choose the lowest sized valid apartment for every applicant (sorted both lists ascendingly).
But it turns out to be a wrong approach.
Why my approach is wrong?