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