http://codeforces.me/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.
| № | Пользователь | Рейтинг |
|---|---|---|
| 1 | Benq | 3676 |
| 2 | Kevin114514 | 3657 |
| 3 | jiangly | 3638 |
| 4 | turmax | 3442 |
| 5 | tourist | 3380 |
| 6 | Um_nik | 3353 |
| 7 | strapple | 3350 |
| 8 | squareOf105 | 3346 |
| 9 | heuristica | 3322 |
| 10 | maroonrk | 3310 |
| Страны | Города | Организации | Всё → |
| № | Пользователь | Вклад |
|---|---|---|
| 1 | Qingyu | 158 |
| 2 | nik_exists | 151 |
| 3 | maspy | 150 |
| 4 | AmShZ | 144 |
| 5 | Um_nik | 143 |
| 6 | Errichto | 139 |
| 7 | adamant | 137 |
| 8 | BledDest | 133 |
| 8 | maroonrk | 133 |
| 10 | Proof_by_QED | 131 |
http://codeforces.me/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.
http://codeforces.me/problemset/problem/446/A
Can anyone help with the approach to this problem. Read the tutorial but wasn't able to get the idea.
| Название |
|---|


