copied code get Time limit exceeded on test 7 question 429B

Revision en1, by hosseinmp, 2017-08-28 13:56:54

Hi I solved the question but get time limit many times. so I saw my friends code and it was the same some so I copied his code to test and I saw the I get time limit again here is his submit his code that I submit Can anyone help me?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English hosseinmp 2017-08-28 14:05:23 247
en2 English hosseinmp 2017-08-28 14:01:27 11
en1 English hosseinmp 2017-08-28 13:56:54 410 Initial revision (published)