Please read the new rule regarding the restriction on the use of AI tools. ×

Contest #2 editorial

Revision en8, by hundera, 2024-05-01 17:45:43

A.Party

We can notice that the Level of the Employee matters for it to have dinner with the others. Which is basically his level in the graph which decides this. So what we can do is to construct the graph with keeping track of the indegree of the node and doing BFS starting from the nodes which have 0 indegree because they are the top level managers and collecting all of them who have the same level to one place.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en15 English hundera 2024-05-08 08:48:54 6 (published)
en14 English hundera 2024-05-08 08:48:29 3465
en13 English hundera 2024-05-08 08:39:47 2650
en12 English hundera 2024-05-08 08:02:31 2830
en11 English hundera 2024-05-01 18:02:21 1278
en10 English hundera 2024-05-01 17:48:27 1306
en9 English hundera 2024-05-01 17:46:46 39
en8 English hundera 2024-05-01 17:45:43 422
en7 English hundera 2024-05-01 17:41:39 1253
en6 English hundera 2024-05-01 17:41:05 2
en5 English hundera 2024-05-01 17:40:42 1258 Tiny change: '# [A.Party' -> '### [A.Party'
en4 English hundera 2024-05-01 17:40:23 2 Tiny change: '# [A.Party' -> '### [A.Party'
en3 English hundera 2024-05-01 17:40:13 1252
en2 English hundera 2024-05-01 17:39:42 1328
en1 English tesfaymebre 2024-04-26 20:01:42 32 Initial revision (saved to drafts)