Why the former one runs slower than the latter?

Revision en1, by A_Little_BadBoy, 2025-02-22 11:35:34

Recently I've been struggling with 2057E1 - Another Exercise on Graphs (Easy Version). The former solution (307244066) runs in 2400ms, yet the latter one (307245861) finishes the task in only 800ms. I'm really confused by this since the implementation of them are just the same. Could anyone help? Thanks!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English A_Little_BadBoy 2025-02-22 11:35:34 345 Initial revision (published)