Det4x4/JuliaZ
Det4x4/abatueva
n1def det_3(row1, row2, row3):n1def count_det3_3(row1, row2, row3):
2    return row1[0] * row2[1] * row3[2] + row1[1] * row2[2] * row3[0] + row1[2] * row2[0] * row3[1] - row1[2] * row2[1] * row3[0] - row1[1] * row2[0] * row3[2] - row1[0] * row2[2] * row3[1]2    return row1[0] * row2[1] * row3[2] + row1[1] * row2[2] * row3[0] + row1[2] * row2[0] * row3[1] - row1[2] * row2[1] * row3[0] - row1[1] * row2[0] * row3[2] - row1[0] * row2[2] * row3[1]
33
n4def det4(row1, row2, row3, row4):n4def count_det4_4(row1, row2, row3, row4):
5    return row1[0] * det_3(row2[1:], row3[1:], row4[1:]) - row2[0] * det_3(row1[1:], row3[1:], row4[1:]) + row3[0] * det_3(row1[1:], row2[1:], row4[1:]) - row4[0] * det_3(row1[1:], row2[1:], row3[1:])5    return row1[0] * count_det3_3(row2[1:], row3[1:], row4[1:]) - row2[0] * count_det3_3(row1[1:], row3[1:], row4[1:]) + row3[0] * count_det3_3(row1[1:], row2[1:], row4[1:]) - row4[0] * count_det3_3(row1[1:], row2[1:], row3[1:])
6(row1, row2, row3, row4) = eval(input())6(row1, row2, row3, row4) = eval(input())
t7print(det4(row1, row2, row3, row4))t7print(count_det4_4(row1, row2, row3, row4))
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op