monera's blog

By monera, 10 years ago, In English

http://codeforces.net/problemset/problem/339/C

Can anyone suggest methods on how to solve such problems using dfs. I am not able to get the idea how to implement dfs to get the solution to such problems.

Full text and comments »

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

By monera, 10 years ago, In English

http://codeforces.net/problemset/problem/446/A

Can anyone help with the approach to this problem. Read the tutorial but wasn't able to get the idea.

Full text and comments »

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