Coming_soon's blog

By Coming_soon, 9 years ago, In English

Hello.I am trying to solve the following problem, i found a code ,where it used dfs(),but i cannot understand its logic. can anyone tell me,what is the dfs() logic?. i know dfs().

problem:http://codeforces.com/contest/278/problem/B

code:http://codepad.org/gcvW73mV

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it