Open Leeee1111 opened 1 week ago
target,n=map(int,input().split()) a=list(map(int,input().split())) for i in range(len(a)-1): for j in range(i,len(a)): if a[i]+a[j]==target: print(i,j,sep=" ")