Lyubohd

06. Building

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