[help] can't find the reason for TLE

Revision en1, by Lakshi4h, 2021-02-19 04:08:55

This is my code to solve 229B - Planets

my code

107892710

But it get TLE on test 66. It's just a dijsktra with a simple modification. I can't figure out a way to make this any more faster.

Here's another code i found from top of the standings. It's almost the same as mine but passes in a very small time. I've been comparing two codes but have no idea for a reason for TLE.

2276080

Can someone help me figure out the problem?

Thank you.

Tags help, tle, dijsktra, graph

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Lakshi4h 2021-02-19 04:08:55 1896 Initial revision (published)