You are viewing a single comment's thread. Return to all comments →
for i in range(int(input())): m,n,f=int(input()),int(input()),0 arr=list(map(int,input().split())) for j in range(n): if f==1:break for k in range(n): if arr[j]+arr[k]==m and j!=k : print(j+1,k+1) f=1
Ice Cream Parlor
You are viewing a single comment's thread. Return to all comments →
Python 3 :-)