| # | User | Rating |
|---|---|---|
| 1 | jiangly | 3810 |
| 2 | Benq | 3676 |
| 3 | Kevin114514 | 3655 |
| 4 | maroonrk | 3463 |
| 5 | strapple | 3447 |
| 6 | Um_nik | 3387 |
| 7 | heuristica | 3322 |
| 8 | turmax | 3317 |
| 9 | tourist | 3307 |
| 10 | jiangbowen | 3291 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 156 |
| 2 | nik_exists | 150 |
| 2 | maspy | 150 |
| 4 | Um_nik | 141 |
| 5 | Errichto | 139 |
| 6 | adamant | 137 |
| 7 | AmShZ | 135 |
| 8 | BledDest | 132 |
| 9 | maroonrk | 131 |
| 10 | qwexd | 129 |
|
+23
Funny that one of these bots was hacked: http://codeforces.me/contest/796/submission/26272062 |
|
0
Here's an idea: Use your BFS on a starting node. Keep track of every node you could reach on this running of the BFS (use a vector, for example). Now, for each of these nodes, you just need to check if their degree is the size of this vector -1. Do this for every non-visited node. While this condition is true, answer is YES. Otherwise, NO. |
|
0
I believe it's because the function |
| Name |
|---|


