Efficient solution gets TLE.

Revision en1, by pranav232323, 2021-01-17 22:21:14

Hey guys,

The following submission keeps getting TLE even though it has the same time complexity as the official solution ($$$\mathcal{O}(n)$$$)

Submission: https://codeforces.com/contest/1430/submission/104613827

Problem: https://codeforces.com/problemset/problem/1430/C

Any ideas about what's going on?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English pranav232323 2021-01-17 22:21:14 340 Initial revision (published)