atcoder beginner contest 172 #c — Tsundoku

Revision en1, by obocheton, 2020-07-01 16:17:14

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?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English obocheton 2020-07-01 16:17:14 379 Initial revision (published)