1 / 4
Sep 2015
7 years later

this is not a valid testcase its given that the common ratio or common difference is non zero integer.

Input

Your program will be tested on one or more test cases. Each case is specified on a single line with three integers (−10, 000 < a1, a2, a3 < 10, 000) where a1, a2, and a3 are distinct.

The last case is followed by a line with three zeros.

The last case is followed by a line with three zeros