Please read the new rule regarding the restriction on the use of AI tools. ×

Problem with python??

Revision en2, by duongtnhat, 2016-05-06 08:46:40

17754492 Here is my solution for 670D1 - Magic Powder - 1

I dont know why it catch time limit exceeded on test 148. And then, I try g = l + (r-l+1) / 2, it is accepted? (g is midle in binary search), Im a newbie in python, and sorry for my bad in English

Tags coding, python 2, #contest

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English duongtnhat 2016-05-06 08:46:40 504
en1 English duongtnhat 2016-05-06 08:43:42 742 Initial revision (published)