a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
i = 1
l = 0
while i <= 1001:
if i!=e:
if (a*i**3+b*i**2+c*i+d)/(i-e)==0:
l += 1
i += 1
print(l)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
i = 1
l = 0
while i <= 1001:
if i!=e:
if (a*i**3+b*i**2+c*i+d)/(i-e)==0:
l += 1
i += 1
print(l)