Ответ:
X, N, K = map(int, input().split())
a = []
for i in range(N):
a.append(X)
X += 1
print(*a)
i = 0
summ = 23213123
for k in range(len(a)):
a[k] = str(a[k])
for _ in a:
for p in _:
summ += int(p)
if summ == K:
i += 1
summ = 0
print(i)
Объяснение:
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
X, N, K = map(int, input().split())
a = []
for i in range(N):
a.append(X)
X += 1
print(*a)
i = 0
summ = 23213123
for k in range(len(a)):
a[k] = str(a[k])
for _ in a:
for p in _:
summ += int(p)
if summ == K:
i += 1
summ = 0
print(i)
Объяснение: