Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
298 B
2
Indexable
Never
n = int(input())
l = int(input())

for s1 in range(1, n):
  for s2 in range(1, n):
    for s3 in range(1, l + 1):
      for s4 in range(1, l + 1):
        for s5 in range(1, n + 1):
          if s5 > s1 and s5 > s2:
            print(f"{s1}{s2}{chr(96 + s3)}{chr(96 + s4)}{s5}", end=" ")