python float vs int


[1]

  [1]: https://imgur.com/a/vxBpgV8

with refer to above image (please click the link). if i am using 1 instead of 1.0, i get time limit excess. Why this happen?