📜  列表理解 python 3 hackerrank 解决方案 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:39.346000             🧑  作者: Mango

代码示例1
x, y, z, n = int(input()), int(input()), int(input()), int(input())
print ([[a,b,c] for a in range(0,x+1) for b in range(0,y+1) for c in range(0,z+1) if a + b + c != n ])