Lambda Functions lead to TLE!

Правка en2, от Mr.Whitebird, 2024-04-07 18:10:59

The only difference between the two submissions is using a lambda function vs a global function. Lambda functions made the runtime around 7 times slower.

What do you think this is because?

AC: 255501228

TLE: 255500672

so should we always prefer global functions over lambdas then?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Mr.Whitebird 2024-04-07 18:10:59 11
en1 Английский Mr.Whitebird 2024-04-07 18:06:26 337 Initial revision (published)