Advertisement
prabhavms

Q2(cyclesheet 6)

Dec 27th, 2021
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. heads = int(input())
  2. legs = int(input())
  3. def puzzle(a,b):
  4.     w = heads*2
  5.     x = legs - w
  6.     y = x // 2
  7.     z = heads - y
  8.    
  9.     print(y)
  10.     print(z)
  11. puzzle(heads,legs)
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement