t = int(input())
for i in range(t)
n,k = map(int,input().split())
li = []
for x in range(n):
for y in range(n):
for z in range(n):
if (x + y + z == n) and (0 < z <= y <= x) and (abs(x - y - z) > k):
li.append([x,y,z])
…
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)