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