{{ message }}

Instantly share code, notes, and snippets.

# vznvzn

Created Jan 23, 2021
View shebang2.rb
 require 'statsample' def f2(n) return n.odd? ? (n * 3 + 1) / 2 : n / 2 end def seq(n) l = [n]
Created Jan 20, 2021
View shebangb.rb
 require 'statsample' def f2(n) return n.odd? ? (n * 3 + 1) / 2 : n / 2 end def seq(n) l = [n]
Created Jan 18, 2021
View shebang.rb
 require 'statsample' def f2(n) return n.odd? ? (n * 3 + 1) / 2 : n / 2 end def seq(n) l = [n]
Created Jan 14, 2021
View review181c.rb
 require 'statsample' def outin(fn) l = (f = File.open(fn)).readlines f.close raise if (l.shift.chop != '\$dat << eof') k = l.shift.split i = l.index("eof\n") raise if (i.nil?)
Created Jan 14, 2021
View construct189.rb
 def f2(n) return n.odd? ? (n * 3 + 1) / 2 : n / 2 end def seq(n) l = [n] while (n != 1)
Created Jan 11, 2021
View construct188.rb
 def f2(n) return n.odd? ? (n * 3 + 1) / 2 : n / 2 end def seq(n) l = [n] while (n != 1)
Created Jan 9, 2021
View construct186.rb
 def f2(n) return n.odd? ? (n * 3 + 1) / 2 : n / 2 end def seq(n) l = [n] while (n != 1)
Created Jan 9, 2021
View construct185.rb
 def f2(n) return n.odd? ? (n * 3 + 1) / 2 : n / 2 end def adj(x, m, n, s2, p2, p, x3) s2.replace(p[0...x] + (x3 % 2).to_s) m = (s2[x, 1] == p[x, 1]) n = p2.reverse.to_i(2)
Created Jan 9, 2021
View construct184c.rb
 def f2(n) return n.odd? ? (n * 3 + 1) / 2 : n / 2 end def adj(x, m, n, s2, p2, p, x3) s2.replace(p[0...x] + (x3 % 2).to_s) m = (s2[x, 1] == p[x, 1]) n = p2.reverse.to_i(2)
Created Jan 9, 2021
View construct183.rb
 def f2(n) return n.odd? ? (n * 3 + 1) / 2 : n / 2 end def seq(n) l = [n] while (n != 1)