infile = open('INPUT.TXT') outfile = open('OUTPUT.TXT', 'w') line = [int(x) for x in infile.readline().split()] a, b, c, d = line for x in range(-100, 101): if a*x**3 + b*x*x + c*x + d == 0: outfile.write(str(x) + ' ') print x infile.close() outfile.close()
Немає коментарів:
Дописати коментар