Coding Task: Determine Beautiful Arrangement of Poles
Problem Statement
You are given the heights of three poles, denoted as a, b, and c meters, arranged from left to right. The arrangement of the poles is considered beautiful if the tops of the poles lie on the same line. This condition can be mathematically expressed as:
[ b - a = c - b ]
Your task is to determine whether the arrangement of the poles is beautiful based on the given heights.
Input Format
The input consists of three integers:
a (height of the first pole)
b (height of the second pole)
c (height of the third pole)
All heights are in meters and can be positive, negative, or zero.
Output Format
Output a single line with:
"Yes" if the arrangement is beautiful.
"No" if the arrangement is not beautiful.
Examples
Example 1
Input:
text
1 2 3
Output:
text
Yes
Example 2
Input:
text
3 2 1
Output:
text
Yes
Example 3
Input:
text
1 3 2
Output:
text
No
Solution
Please place your solution in the /app/ directory. You can use the programming language of your choice, ensuring it meets the input/output specifications outlined above.
Important: place your implementation at /app/solution.py so the verifier can run it.