Why is this code giving TLE?

Revision en1, by nipungupta37, 2020-04-16 17:29:14

https://mirror.codeforces.com/contest/1251/submission/76981021 can someone tell why this code is giving TLE? the complexity seems fine to me?

question link...https://mirror.codeforces.com/problemset/problem/1251/C

Tags #help

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English nipungupta37 2020-04-16 17:29:36 1 Tiny change: 'on link...https://co' -> 'on link... https://co'
en1 English nipungupta37 2020-04-16 17:29:14 232 Initial revision (published)