How to solve this problem?

Revision en1, by Radebush, 2018-10-18 08:30:28

I recently spotted this problem of IOI 2018. I couldn't come up with a proper approach. Only thing that I know is the solution is associated with graph. Can you please help me to solve this problem?

https://ioi2018.jp/wp-content/tasks/contest1/werewolf.pdf

Tags #ioi2018, werewolf, solution

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Radebush 2018-10-18 08:30:28 285 Initial revision (published)