Find product of eigenvalues of n*n magic matrix.
Example
n=3
Matrix= [ 8 1 6; 3 5 7; 4 9 2]
result=-360
Hello, Andriy Kavetsky. The tolerance in test 2 of the Test Suite is quite strange. As written, it seems that a result that is 1000 times larger than the true answer would be accepted as adequate. See Problem 44690 & Problem 44691 for some alternative cues. Also, it is recommended that at least four cases be provided in a Test Suite, though more are often necessary to prevent hard-coded workarounds. —DIV
Project Euler: Problem 1, Multiples of 3 and 5
1063 Solvers
262 Solvers
179 Solvers
309 Solvers
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
197 Solvers