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