Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = int(input())
- b = int(input())
- max_passes = int(input())
- is_greater_than_AB = False
- is_greater_than_counter = False
- passes_counter = 0
- A = 35
- B = 64
- #for A in range(35, 55 + 1):
- # if is_greater_than_AB or is_greater_than_counter:
- # break
- # for B in range(64, 96 + 1):
- # if is_greater_than_AB or is_greater_than_counter:
- # break
- for x in range(1, a + 1):
- if is_greater_than_AB or is_greater_than_counter:
- break
- for y in range(1, b + 1):
- passes_counter += 1
- print(f"{chr(A)}{chr(B)}{x}{y}{chr(B)}{chr(A)}|", end="")
- if passes_counter > (a + b):
- is_greater_than_AB = True
- break
- elif passes_counter >= max_passes:
- is_greater_than_counter = True
- break
- A += 1
- B += 1
- if A > 55:
- A = 35
- if B > 96:
- B = 64
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement