Link for the problem http://rosalind.info/problems/ini2/
Given: Two positive integers
a
andb
, each less than 1000.
Return: The integer corresponding to the square of the hypotenuse of the right triangle whose legs have lengthsa
andb
For example, for a, b = 3,4
return 25
The dataset is always different for every trial.
a=859
b=938
print( a**2 + b**2 )
I've tried this code on my computer, and it worked. But Rosalind won't take it. What might be wrong in this code?