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