can somebody explain why my solution got TLE on some case: https://cses.fi/problemset/task/1670/

Revision en1, by thaonguyendethuongvai, 2024-12-24 01:41:03

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!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English thaonguyendethuongvai 2024-12-24 01:41:03 268 Initial revision (published)