Can anybody help me to figure out the reason why getting TLE DESPITE USING DFS Iterative Version Problem : https://cses.fi/problemset/task/1666/ My Solution :https://cses.fi/problemset/result/1699864/ It will be great if you can point out
№ | Пользователь | Рейтинг |
---|---|---|
1 | tourist | 3947 |
2 | jiangly | 3734 |
3 | Radewoosh | 3646 |
4 | jqdai0815 | 3620 |
4 | Benq | 3620 |
6 | orzdevinwang | 3612 |
7 | ecnerwala | 3581 |
8 | Geothermal | 3569 |
8 | cnnfls_csy | 3569 |
10 | ksun48 | 3479 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | awoo | 162 |
2 | maomao90 | 160 |
3 | nor | 156 |
3 | cry | 156 |
5 | atcoder_official | 155 |
5 | -is-this-fft- | 155 |
7 | maroonrk | 154 |
7 | adamant | 154 |
9 | Petr | 146 |
10 | djm03178 | 145 |
Can anybody help me to figure out the reason why getting TLE DESPITE USING DFS Iterative Version Problem : https://cses.fi/problemset/task/1666/ My Solution :https://cses.fi/problemset/result/1699864/ It will be great if you can point out
Название |
---|
something is wrong with the judge, I did an iterative dfs version and it fails with TLE.
judge is ok, just resubmitted my solution and passed without any problems, you either have infinite loop or just something very slow
are you using Java? could you share your solution in Java if you don't mind
C++
use a DSU (https://cses.fi/paste/ad7ee952ea5aaab613b947/)
i cannot see your submission :/ (click "Share code to others" on your result page)