1114F — Please, another Queries on Array?

Revision en1, by SevenDeadlySins, 2019-02-16 01:24:19

I would like to what makes these 2 solutions different for which first solution is getting TLE but second solution is able to solve the question in around 3.5 sec ? Link1 : 49967236 Link2 : 49899826

Tags 1114 f

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English SevenDeadlySins 2019-02-16 01:24:19 267 Initial revision (published)