atcoder beginner contest 172 #c — Tsundoku

Правка en1, от 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?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский obocheton 2020-07-01 16:17:14 379 Initial revision (published)