Nil_paracetamol's blog

By Nil_paracetamol, history, 2 years ago, In English
  • Vote: I like it
  • +14
  • Vote: I do not like it

By Nil_paracetamol, history, 4 years ago, In English

Problem Link

My solution

I've tried all test cases from uDebug and some random test case but could not find out wrong answer.

Is there any corner cases, which i've been not taking?

Full text and comments »

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

By Nil_paracetamol, history, 4 years ago, In English

problem

I've used dfs, but it is giving me WA. Where i need to do correction? My solution

Full text and comments »

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

By Nil_paracetamol, history, 4 years ago, In English
By Nil_paracetamol, history, 4 years ago, In English
  • Vote: I like it
  • +2
  • Vote: I do not like it