TIME LIMIT EXCEEDED IN 455A BOREDOM

Revision en1, by jha_saurav, 2020-04-07 06:52:12

link to the question: http://codeforces.me/contest/455/problem/A

my submission: 75708843

The code has been written in python and dynamically programmed. But, i am getting TLE on test case 11. Please ,help in optimising the code if possible and if not; please tell why the code is getting TLE; is it because of python being a slower language or there is some issue in code?? PLEASE, HELP OUT!!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English jha_saurav 2020-04-07 06:53:40 953
en1 English jha_saurav 2020-04-07 06:52:12 437 Initial revision (published)