Код на питоне.
Объяснение:
with open("Input.txt") as f:
numbers = list(map(int, f.read().split()))
with open("Output.txt", 'w') as f:
f.write(str(((numbers[0] + numbers[1]) % numbers[4]) * ((numbers[2] - numbers[3]) % numbers[4])))
Код на питоне.
Объяснение:
with open("Input.txt") as f:
numbers = list(map(int, f.read().split()))
with open("Output.txt", 'w') as f:
f.write(str(((numbers[0] + numbers[1]) % numbers[4]) * ((numbers[2] - numbers[3]) % numbers[4])))