TLE on following editorial aproach

Правка en2, от aman_naughty, 2019-06-22 10:57:29

I am following the editorial for this problem 489D - Unbearable Controversy of Being and am getting TLE on test case 7. 55729287 Can someone point out what is the difference between my implementation and Mike's.

Your text to link here...

I am also using brute force of selecting the two end nodes and then counting the number of intermediate nodes which provide path length of 2 between the selected nodes.

Anyone out there???

Теги #graphs, #contest, #help, #tle

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский aman_naughty 2019-06-22 23:36:44 42 Tiny change: 'I am follo' -> '### Your title here...I am follo'
en2 Английский aman_naughty 2019-06-22 10:57:29 23 Tiny change: 'ted nodes.' -> 'ted nodes.\n\nAnyone out there???'
en1 Английский aman_naughty 2019-06-18 23:03:03 479 Initial revision (published)