Python 3.9
Объяснение:
c, d = map(int, input("Input c d: ").split())
a=int(c/c)
b=int(d/c)
dem=int(d/c)
if c*d<2000000000:
if d%c==0:
print(a*c, b*c)
for i in range(dem):
b=int(d/c)
for j in range(dem,0,-1):
if a<=b:
if a*b==dem:
if b%a!=0:
print(a*c, b*c)
b=b-1
else:
break
a=a+1
else:
print("Пара не существует")
a = int(input())
for i in range(a):
b = input()
c = 0
d = True
e = 0
f = False
g = False
h = '\''
for j in b:
if j == '#' and not f:
g = True
break
elif j != ' ':
if d:
print(' ' * c, end='')
elif c > 0:
print(' ', end='')
c = 0
print(j, end='')
if(j == '\"' or j == '\'') and e % 2 == 0:
if f and j == h:
f = False
else:
f = True
h = j
if f:
d = True
else:
d = False
if j == '\\':
e += 1
else:
e = 0
else:
c += 1
r = j == ' '
if g and c > 1:
print(' ', end='')
if i < a - 1:
print()
1
Объяснение: