Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

tcs question

v=int(input())
w=int(input())
if (w&1)==1 or w<2 or w<=v:
    print("INVALID INPUT")
else:
    x=((4*v) -w)//2
    print("TW={0} FW={1}".format(x,v-x))
Source by prepinsta.com #
 
PREVIOUS NEXT
Tagged: #tcs #question
ADD COMMENT
Topic
Name
5+1 =