5x optimization???

Revision en1, by __.__, 2019-06-24 15:22:47

I was solving this problem and after I solved it by myself I decided to implement editorial's solution. Strangely my first submission was really slow 55982450, but after changing the order of dimensions it got 5x faster 55999256.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English __.__ 2019-06-24 15:22:47 322 Initial revision (published)