TLE USING VECTOR BUT NOT WHILE USING ARRAY

Правка en1, от 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)

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Rahul3006 2022-12-07 14:52:00 386 Initial revision (published)