Time Limit: 1 sec
Eric is facing a problem to solve the following equation:
A =X2 + Y2 – Z2
Can you please help Eric to solve this equation?
Input file contains a series of lines. Each line consists of three integers X (0<X<100), Y (0<Y<100) and Z (0<Z<100). Input is terminated by EOF.
For each line of input, you have to print the value of the equation in a separate line.
4 4 3
5 6 7
Inter School & College Programming Contest (ISCPC) 2015
Problem Setter: Mahbubur Rahman