This ruby code is equivalent to the code in previous post
N = 13; k = N-1; r = (1..k).to_a ; e = [r.first, r.last];
r.each{a print(r.map{b e.include?(b*a%N)?"1 ":" "},"\n")}
yuki programming - Rem tene, verba sequentur
This ruby code is equivalent to the code in previous post
N = 13; k = N-1; r = (1..k).to_a ; e = [r.first, r.last];
r.each{a print(r.map{b e.include?(b*a%N)?"1 ":" "},"\n")}
Etichette: ruby
Nessun commento:
Posta un commento