Блог пользователя Riyuzak251097

Автор Riyuzak251097, история, 4 года назад, По-английски

I am trying to solve problem 1228 D. i had made a solution by traversing the edges of the graph and alloting elements to respective sets on basis of availability.. My solution did not get accepted for the case when i did not check for m != s1*s2 + s2*s3 + s1*s3 where s1,s2,s3 represent sizes of the sets.. can someone tell me why i need to check this condition and tell me the case where my solution fails if i dont check this condition

Accepted

Wrong Answer on TC 12

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится