Skip to content

Commit 5e5ab7d

Browse files
Update list comprehensions
1 parent d407b5d commit 5e5ab7d

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

list comprehensions

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,4 @@ Sample Output 0
2020

2121
[[0, 0, 0], [0, 0, 1], [0, 1, 0], [1, 0, 0], [1, 1, 1]]
2222
-----------------------------------------------------------------------------------------------------------------
23-
import math
24-
import sys
25-
x = int(input())
26-
y = int(input())
27-
z = int(input())
28-
n = int(input())
29-
print ([[i,j,k] for i in range (0, x+1) for j in range (0, y+1) for k in range (0, z+1) if ((i+j+k) != n)])
23+

0 commit comments

Comments
 (0)