Linear solution runs in 156 ms in C++11 and 3000 ms (TLE) in Golang

Правка en1, от pimenta, 2017-10-28 19:29:27

Hi,

I've wrote a solution for problem 883K - Road Widening in C++11 and Golang. C++11 runs in 156 ms, but Golang gets TLE (3000 ms).

C++11: 31844450

Golang: 31844038

Why? Did I do something wrong in the Golang implementation, increasing the time complexity?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский pimenta 2017-10-28 19:29:27 356 Initial revision (published)