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

Revision en1, by pimenta, 2017-10-28 19:29:27


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. Lang. By When Δ Comment
en1 English pimenta 2017-10-28 19:29:27 356 Initial revision (published)