atcoder beginner contest 172 #c — Tsundoku
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?
CodeChef Starters 136 Solution Discussion
CF Edu Round 166 Solution Discussion