Problem A
Political Distance
Languages
en
is
The current policy of the government can be represented by the point $(x_p, y_p)$. A voter’s ideal policy would be represented by the point $(x_v, y_v)$. The voter’s unhappiness with the current policy is measured by the distance between these two points. Many different distance metrics may be used, but we will use squared Euclidean distance here.
Input
The first line contains two integers $x_p$ and $y_p$. The second line contains two integers $x_v$ and $y_v$. All values are integers between $-10^9$ and $10^9$, inclusive on both ends.
Output
Output one integer, the voter’s unhappiness with the current policy.
Sample Input 1 | Sample Output 1 |
---|---|
-8 4 2 -6 |
200 |
Sample Input 2 | Sample Output 2 |
---|---|
20 -3 20 1 |
16 |