What am i missing on this python code?

Revision en1, by Giaco, 2019-08-07 17:02:35

Hello guys, i'm practicing with python and i don't understand why this sub 58435675 on codefroces always print -1 while on ideone just works fine. Can you help me? <.<

If you have any advice on how to improve my code in python it is appreciated.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Giaco 2019-08-07 17:02:35 332 Initial revision (published)