Not sure why I am getting TLE

Revision en1, by supermarine, 2020-12-14 16:55:55

I solved this question 1461D using a brute force method to find all valid sums in the array but one of my submission which seems correct to me doesnt seem to be working while another submission which is quite similar but just involves splitting and using it in a new vector gives a correct answer. Please help ?

Tags #tle, 1461

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English supermarine 2020-12-14 16:55:55 509 Initial revision (published)