Expanding Rods(LightOj-1137)
Problem statement Here we are given a solid rod of length L that expands to length L’ and creates an arch shape with the original shape of the rod. Our task is to compute the distance by which the center of the rod is displaced. The problem could be easily visualized with the given picture in the problem statement. Let’s assume the straight rod AB is placed inside a circle and the arch shaped rod AB arch is on the perimeter of this circle.