Why is this code giving TLE?

Revision en2, by nipungupta37, 2020-04-16 17:29:36

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

question link... https://codeforces.net/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)