Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- floors = int(input())
- rooms = int(input())
- for x1 in range(floors, 0, -1):
- for x2 in range(0, rooms):
- if x1 == floors:
- print(f"L{x1}{x2}")
- if x1 % 2 == 0 and x1 < floors:
- print(f"O{x1}{x2}")
- elif x1 % 2 == 1 and x1 < floors:
- print(f"A{x1}{x2}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement