desislava_topuzakova

06. Building

Oct 21st, 2020
964
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. floors = int(input())
  2. rooms_per_floor = int(input())
  3.  
  4. for floor in range(floors, 0, -1):
  5.     for room in range(0, rooms_per_floor):
  6.         if floor == floors:
  7.             print(f"L{floor}{room} ", end = "")
  8.         elif floor % 2 == 0:
  9.             print(f"O{floor}{room} ", end="")
  10.         else:
  11.             print(f"A{floor}{room} ", end ="")
  12.     print()
RAW Paste Data