Euler problem number #4

前端 未结 14 1984
萌比男神i
萌比男神i 2021-01-03 11:00

Using Python, I am trying to solve problem #4 of the Project Euler problems. Can someone please tell me what I am doing incorrectly? The problem is to Find the larg

14条回答
  •  [愿得一人]
    2021-01-03 11:47

    comparing string with an integer in

    x == z*y
    

    there are also logical errors

    start in reverse order range(999, 99, -1). that'll be more efficient. remove third loop and second comparison altogether.

提交回复
热议问题