From 6f748935a457ed4a3d572f983967682e5a5a08fb Mon Sep 17 00:00:00 2001 From: leonnicolas Date: Thu, 6 Feb 2020 16:02:32 +0100 Subject: [PATCH] initial commit :) --- main.go | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 main.go 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