introart's blog

By introart, history, 2 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

»
2 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?

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

KrisjanisP Can you please help?