introart's blog

By introart, history, 3 years ago, In English

I am getting TLE in this CSES problem.

My Approach
Problem

Can anyone please tell me why it is showing TLE?

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Your approach is correct, maybe the problem is your implementation, Can you share it?

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

KrisjanisP Can you please help?