Search
 
SCRIPT & CODE EXAMPLE
 

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))
Comment

PREVIOUS NEXT
Code Example
Python :: python merge two byte files 
Python :: get length of a tuple in python 
Python :: telephone number word generator python 
Python :: python discover methods of object/module 
Python :: set environment variable heroku django 
Python :: ex: python arraay 
Python :: jupyter notebook print string with variables 
Python :: search number is complete or no python 
Python :: delete csr python 
Python :: hexing floats 
Python :: len range 
Python :: torch.tensor.expand 
Python :: violajones python opencv 
Python :: pyspark pivot max aggregation 
Python :: python structure like c 
Python :: how to convert 2 dimensional in 1 dimensional array 
Python :: where are spacy models stored 
Python :: insert in a sorted list python 
Python :: run a python file from another python file 
Python :: how to change directory in python 
Python :: re.split 
Python :: how to add a key in python dictionary 
Python :: python order list of dictionaries by value 
Python :: how to find the indexes of a substring in a string in python 
Python :: function in function python 
Python :: TypeError: expected str, bytes or os.PathLike object, not list 
Python :: How to use path in Django Python 
Python :: python permission denied 
Python :: python dictionary if not found 
Python :: python round 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =