#C3850. Building Value Calculation
Building Value Calculation
Building Value Calculation
You are given three integers x, y and k. These represent the coordinates of a building and the number of update cycles respectively. In each update cycle, the building's value increases by the sum of points from all eight neighboring buildings. Hence, after k cycles, the building's value is computed by the formula:
\( V = 8 \times k \)
Note that the coordinates x and y are provided for contextual purposes and do not affect the calculation. Your task is to compute and output the final building value using the given formula.
inputFormat
The input consists of a single line containing three space-separated integers: x, y, and k, where k represents the number of update cycles.
outputFormat
Output a single integer representing the building's value after k update cycles based on the formula \( V = 8 \times k \).
## sample0 0 0
0