cannot_make_triangle = True
while cannot_make_triangle:
a = np.random.randint(low = -100, high = 101, size = 3)
b = np.random.randint(low = -100, high = 101, size = 3)
c = np.random.randint(low = -100, high = 101, size = 3)
A = a - b
B = a - c
C = b - c
if A[0]**2 + A[1]**2 + A[2]**2 ==0:
continue
if B[0]**2 + B[1]**2 + B[2]**2 ==0:
continue
if C[0]**2 + C[1]**2 + C[2]**2 ==0:
continue
if (A[0]/B[0] == A[1]/B[1] and A[1]/B[1] == A[2]/B[2]):
continue
#B[i]가 0일 수 있음.
print(a)
print(b)
print(c)
cannot_make_triangle = False
a = np.random.randint(low = 1, high = 101, size = (10,10))
b = np.random.randint(low = 1, high = 101, size = (10,10))
print(a)
print(b)
c = a+b
print(c)
print(c.shape)