Monday, February 25, 2013


http://www.spoj.com/problems/GEOPROB/

t=input()
for i in range(0,t):
        s=raw_input()
        str=s.split(' ')
        b=int(str[0])
        c=int(str[1])
        d=int(str[2])
       
        print (c-b)+(c-d)
http://www.spoj.com/problems/TMUL/

t=input()
for i in range(0,t):
        s=raw_input()
        str=s.split(' ')
        b=int(str[0])
        c=int(str[1])
        a=int(b*c)
        print (a)