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

Revision en1, by 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.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English unt311 2021-04-25 21:42:19 485 Initial revision (published)