Runtime error in question "boredom" (455A)

Revision en3, by vasanthaganesh, 2016-01-20 17:42:55

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

language: python 2.7

submission: 15453370

Hello guys! I have encountered a very peculiar situation wherein my code works properly for 11 testcases but on the 12th testcase I get a runtime error.Please do look into the source code and suggest corrections.

Tags dynamic programming, runtime error

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English vasanthaganesh 2016-01-20 17:42:55 216 updated blog text
en2 English vasanthaganesh 2016-01-20 16:32:56 424 code was not displayed properly, so i linked the submission
en1 English vasanthaganesh 2016-01-20 16:10:42 546 Initial revision (published)