Advertisement
CR7CR7

building

Mar 17th, 2021
827
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. floors = int(input())
  2. rooms = int(input())
  3. for i in range(floors,0,-1):
  4.     for j in range(0,rooms):
  5.         if i == floors:
  6.             print("L{0}{1} ".format(i,j),end = "")
  7.         elif i % 2 == 0:
  8.             print("{O}{1} " .format(i,j),end = "")
  9.         else:
  10.             print(A"{0}{1}".format(i,j),end = "")
  11.     # TODO: print according to floor number
  12.             print("")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement