TLE USING VECTOR BUT NOT WHILE USING ARRAY

Revision en1, by Rahul3006, 2022-12-07 14:52:00

Problem Link

using vector to solve the problem lands me to TLE but the same logic used by the array got accepted. WHY?

SOLN (by vector): (https://codeforces.com/problemset/submission/1747/184215576). SOLN (by array): (https://codeforces.com/problemset/submission/1747/184217645)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Rahul3006 2022-12-07 14:52:00 386 Initial revision (published)