Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- count_floors = int(input())
- count_rooms = int(input())
- # Последен етаж
- for room in range(0, count_rooms):
- print(f'L{count_floors}{room} ', end='')
- print()
- for floor in range(count_floors - 1, 0, -1):
- if floor % 2: # Нечетни етажи
- for room in range(0, count_rooms):
- print(f'A{floor}{room} ', end='')
- print()
- else:
- for room in range(0, count_rooms):
- print(f'O{floor}{room} ', end='')
- print()
Add Comment
Please, Sign In to add comment