Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

Not really sure what is going wrong in this answer submission.

Правка en1, от levi.ackerman1732, 2020-11-22 03:52:01

Question : 787B - Not Afraid My solution : 99205991

My thought process:

We have to make sure that in every group at least one pair of Ricky & Morty of same Universe are present to prevent the destruction.

My Idea:

insert all the absolute value of members in each group to both a Set & a Vector. If the size of both of them are equal in any group would mean a possibility of destruction ("Yes") else No.

My apologies in advance if I am missing something obvious. Thank you for your time.

Теги #implementaion, #a easy question, #practice

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский levi.ackerman1732 2020-11-22 03:52:01 580 Initial revision (published)