my solution and the AC solution both use unordered_set and the same way in bfs my sol : https://ideone.com/yKneg6 AC sol : https://ideone.com/3TBB8n thanks in advance!
can somebody explain why my solution got TLE on some case: https://cses.fi/problemset/task/1670/
my solution and the AC solution both use unordered_set and the same way in bfs my sol : https://ideone.com/yKneg6 AC sol : https://ideone.com/3TBB8n thanks in advance!
Rev. | Lang. | By | When | Δ | Comment | |
---|---|---|---|---|---|---|
en1 |
![]() |
thaonguyendethuongvai | 2024-12-24 01:41:03 | 268 | Initial revision (published) |