http://www.spoj.com/problems/ROOTCIPH/
for i in range(t):
s=raw_input()
str=s.split(' ')
a=int(str[0])
b=int(str[1])
c=int(str[2])
print(a*a-2*b)
Code
t=int(input())for i in range(t):
s=raw_input()
str=s.split(' ')
a=int(str[0])
b=int(str[1])
c=int(str[2])
print(a*a-2*b)
No comments:
Post a Comment