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 134 Solution Discussion (With Contest Winner)
Colin X Sam X Shayan | Easy Problems Duel | NAC Warmup #1