from itertools import combinations
for i in range(t):
n,m=[int(i) for i in input().split()]
for j in range(n):
for k in range(1,n+1):
for ordered_pairs in combinations(list1,k):
This is my code for “Paying up” problem statement.It was successfully running and printing output in IDE.But,throwing a “wrong answer” error during submission.Do anyone please let me know what’s wrong with my code??