Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import ceil
- Mala_Baza={1:"W L",2:"A L", 3:"A R", 4:"M R", 5:"W R", 0:"W L", 9:"A L", 8:"A R", 7:"M R", 6:"W R"}
- a=int(input())
- for i in range(a):
- b=input()
- if b=="1":
- print("poor conductor")
- else:
- b=int(b)-1
- print(str(ceil(b/5))+" "+Mala_Baza[b%10])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement