You are viewing a single comment's thread. Return to all comments →
can anyone explain which requirement is violating this code?
if name == 'main':
nk = input().split()
n = int(nk[0])
k = int(nk[1])
a = list(map(int, input().rstrip().split())) if((n>=2 and n<=100) and ( k>=1 and k<=100) ): for i in range(len(a)): if (a[i]>=1 and a[i]<=100): pass
print(len([[i,j]for i in a for j in a if (i
Seems like cookies are disabled on this browser, please enable them to open this website
Divisible Pairs Sum
You are viewing a single comment's thread. Return to all comments →
can anyone explain which requirement is violating this code?
if name == 'main':
nk = input().split()
n = int(nk[0])
k = int(nk[1])
a = list(map(int, input().rstrip().split())) if((n>=2 and n<=100) and ( k>=1 and k<=100) ): for i in range(len(a)): if (a[i]>=1 and a[i]<=100): pass
print(len([[i,j]for i in a for j in a if (i