Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

lamda_cdm's blog

By lamda_cdm, history, 21 month(s) ago, In English

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 - Подвешенные сердца

Thanks in advance

Full text and comments »

  • Vote: I like it
  • +4
  • Vote: I do not like it