commit 6f748935a457ed4a3d572f983967682e5a5a08fb Author: leonnicolas Date: Thu Feb 6 16:02:32 2020 +0100 initial commit :) diff --git a/main.go b/main.go new file mode 100644 index 0000000..c867935 --- /dev/null +++ b/main.go @@ -0,0 +1,36 @@ +package main + +import "fmt" + +const m int64 = 10 +const mm int64 = m * m + +var random [m * m]int64 //this is only 16MB for m = 2000 +var R[m][m]int64 + +func assignRandomNumbers(a *[m*m]int64) { + for i := 0; i < len(a); i++ { + k:=int64(i+1) + if i < 55{ + a[i] = (100003-200003*k+300007*k*k*k)%1000000 - 500000 + }else{ + a[i]=(a[i-24] +a[i-55]+1000000)%1000000-500000 + } + } +} +func arrayToMatrix(ar *[m*m]int64, R *[m][m]int64 ){ + for k:=0;k