Computer Science, asked by devanshgupta08, 1 day ago

N = sorted(N)
result = 0

for i in xrange(len(N)-2):
k = len(N)-1
for j in xrange(i+1, len(N)-1):
while k>=0 and N[i]+N[j]+N[k]>T:
k-=1
result += max(k, j)-j

return result

Answers

Answered by suresh1pednekar
0

Answer:

for I in xrange (123*26×

Similar questions