Sichanov

frf

Dec 5th, 2020
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. floor = int(input())
  2. rooms = int(input())
  3.  
  4. for f in range(floor, 0, -1):
  5.     for r in range(rooms):
  6.         if f == floor:
  7.             print(f'L{f}{r}', end=" ")
  8.         elif f % 2 == 0:
  9.             print(f'O{f}{r}', end=" ")
  10.         else:
  11.             print(f'A{f}{r}', end=" ")
  12.  
Advertisement
Add Comment
Please, Sign In to add comment