Quick actions

cmd+k|ctrl+k

Navigation

Languages

HakerRank1

Snippet info

Language

Python

Visibility

public

Author

alokhegde

Created

2020-10-07T06:38:53Z

Updated

2020-10-07T06:38:53Z

x, y, z, n = int(input()), int(input()), int(input()), int(input())
print ([[a,b,c] for a in range(x+1) for b in range(y+1) for c in range(z+1) if a + b + c != n ])
INFO