Ответ:
.
Объяснение:
# Задача А
n, k = map(int, input().split())
mas = list(map(int, input().split()))
leave = False
for i in range(len(mas)):
for j in range(i, len(mas)):
if mas[i] + mas[j] == k:
print(i, j)
leave = True
break
if leave:
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
.
Объяснение:
# Задача А
n, k = map(int, input().split())
mas = list(map(int, input().split()))
leave = False
for i in range(len(mas)):
for j in range(i, len(mas)):
if mas[i] + mas[j] == k:
print(i, j)
leave = True
break
if leave:
break