TLE in python on a question

Revision en1, by tan_delhi, 2020-12-21 04:39:49

Even using a hell lot of things , removing maps , and writing a code in O(n) ,etc I am getting tle , in this question https://codeforces.com/contest/1027/problem/C The code is —

https://p.ip.fi/f5fo

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English tan_delhi 2020-12-21 04:39:49 242 Initial revision (published)