HI-ARC=?
Time limit1sMemory limit1024 MB
The task reads five integers H, I, A, R, C and prints H times I minus A times R times C.
- Level
Easy1 of 10
- Topics
- Implementation, Math
- Solved
- No attempts yet
Problem
The HI-ARC Club enjoys a unique tradition of expressing everyday sentences as formulas. The HI-ARC formula is a special formula recently developed by the club, and it is evaluated with the following rules.
- The product of and is the first term.
- The product of , , and is the second term.
- The result is the first term minus the second term.
When a number for each letter is given, print the result.
Input
The first line contains the values for in that order, separated by spaces (, and are integers).
Output
Print the result of evaluating the formula.