Problem B in Round #758 (Div.1 + Div. 2) using Topological Sort ?

Правка en2, от GlydonNeedsDedication, 2021-12-12 16:11:50

I saw this Solution of Problem B by maroonrk using Topological sort in contest Round #758 (Div.1 + Div. 2)
Can anybody explains the intuition please?

Теги query, discussion

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский GlydonNeedsDedication 2021-12-12 16:11:50 9
en1 Английский GlydonNeedsDedication 2021-12-12 16:10:41 438 Initial revision (published)