#P11136. [APC001] A - CT
[APC001] A - CT
Background
Compressed Towel.
What, this is not an open contest; this is a compressed towel that becomes bigger and taller when it meets water.
Problem Description
This is a magical compressed towel that can grow without limit.
The compressed towel’s initial length, width, and height are centimeters. It meets water times. Each time it meets water, its length, width, and height each increase by centimeter. Please output the final volume of the compressed towel, in cubic centimeters.
However, someone thinks this problem is too easy, and being lazy, they threw it to you, so you need to solve it.
Input Format
Four numbers: .
Output Format
Output one number as the answer. Since the answer may be too large, output its value .
Please note the modulus used in this problem.
1 1 4 5
324
100 100 100 0
1000000
114 51 419 198
47933496
Hint
Sample Explanation
We can compute .
Sample Explanation
Please note that the compressed towel may also not meet water.
Constraints
For of the testdata, , .
Translated by ChatGPT 5