does using tuples makes code slow(while structs are faster ?)

Правка en1, от unt311, 2021-04-25 21:42:19

I applied mo's algorithm the recent cut and stick problem

My code takes 2823 ms While, to my surprise this takes 1326(its codeNcode's submission).

Both do almost the same thing, I don't see any difference other than using structs over tuples.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский unt311 2021-04-25 21:42:19 485 Initial revision (published)