You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
row = 2981
|
|
col = 3075
|
|
|
|
i = row*(row-1)/2 + 1
|
|
i += (row..row+col-1).inject(:+) - row
|
|
|
|
value = 20151125
|
|
(i-1).times do
|
|
value *= 252533
|
|
value %= 33554393
|
|
end
|
|
puts value
|
|
|
|
__END__
|
|
Enter the code at row 2981, column 3075.
|