Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. floors = int(input())
  2. rooms = int(input())
  3.  
  4. for x1 in range(floors, 0, -1):
  5. for x2 in range(0, rooms):
  6. if x1 == floors:
  7. print(f"L{x1}{x2}")
  8. if x1 % 2 == 0 and x1 < floors:
  9. print(f"O{x1}{x2}")
  10. elif x1 % 2 == 1 and x1 < floors:
  11. print(f"A{x1}{x2}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement