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

Автор lamda_cdm, история, 14 месяцев назад, По-английски

I was trying this problem. Tried a greedy solution , where I number the nodes starting from the lower level . And take every leaf node one by one . Someway it's failing . I tried making counter test cases but couldn't find a case where my solution failed. Here's my link 196466553 to the submission . Problem 1740E - Hanging Hearts

Thanks in advance

Полный текст и комментарии »

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