Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = int(input())
- b = int(input())
- l = int(input())
- ans= l%((a+b)*2)
- k=-1
- while (ans>0):
- if (k%2==0):
- ans -= a
- else:
- ans-=b
- k+=1
- if (k==0):
- print('BOTTOM')
- elif (k==1):
- print('RIGHT')
- elif (k==1):
- print('TOP')
- else:
- print('LEFT')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement