My issue
Time limit exceeded
My code
# cook your dish here
n,k=map(int,input().split())
x=list(map(int,input().split()))
c=0
for j in range(n-1):
for p in range(j+1,n):
if k>x[j]+x[p]:
c+=1
print(c)
Problem Link: CodeChef: Practical coding for everyone