296040082 Can anyone help me and tell me where in this code or perhaps this solution to question 1081D is wrong?
# | User | Rating |
---|---|---|
1 | tourist | 3985 |
2 | jiangly | 3741 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3489 |
7 | Radewoosh | 3483 |
8 | Kevin114514 | 3442 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 166 |
2 | atcoder_official | 163 |
3 | Um_nik | 162 |
3 | maomao90 | 162 |
5 | adamant | 157 |
5 | -is-this-fft- | 157 |
5 | djm03178 | 157 |
8 | awoo | 155 |
9 | TheScrasse | 154 |
10 | Dominater069 | 153 |
Name |
---|
I think you should check your DSU functions. Especially your merge function. You are returning type "bool", but you are using it as "void". Also, this solution to this question can lead to TLE.(if im wrong then sorry, I just did a rough version of your idea and I got TLE)
Thank you
Yes, I actually copied the code I had written earlier for DSU and did not convert bool to void.
I think I have found my main mistake.
Anyway, I am an idiot for posting a blog so quickly after a question has not been solved!