Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

class TimeInfo
attr_accessor :time, :decision, :parent_idx
def initialize(time, decision, parent_idx)
@time = time
@decision = decision
@parent_idx = parent_idx
end
end
class Tokyu
"1111 : there are 0 answers"
[]
"1112 : there are 0 answers"
[]
"1113 : there are 0 answers"
[]
"1114 : there are 24 answers"
["11+14+*", "11+41+*", "11+14+*", "11+41+*", "14+11+*", "14+11+*", "11+14+*", "11+41+*", "11+14+*", "11+41+*", "14+11+*", "14+11+*", "11+14+*", "11+41+*", "11+14+*", "11+41+*", "14+11+*", "14+11+*", "41+11+*", "41+11+*", "41+11+*", "41+11+*", "41+11+*", "41+11+*"]
"1115 : there are 168 answers"
["11+1*5*", "11+1/5*", "11+15**", "11+15//", "11+5*1*", "11+5*1/", "11+51**", "11+51/*", "11*1+5*", "11/1+5*", "111+*5*", "111+5**", "111*+5*", "111/+5*", "11+1*5*", "11+1/5*", "11+15**", "11+15//", "11+5*1*", "11+5*1/", "11+51**", "11+51/*", "11*1+5*", "11/1+5*", "111+*5*", "111+5**", "111*+5*", "111/+5*", "15*11+*", "15*11+*", "1511+**", "1511+**", "11+1*5*", "11+1/5*", "11+15**", "11+15//", "11+5*1*", "11+5*1/", "11+51**", "11+51/*", "11*1+5*", "11/1+5*", "111+*5*", "111+5**", "111*+5*", "111/+5*", "11+1*5*", "11+1/5*", "11+15**", "11+15//", "11+5*1*", "11+5*1/", "11+51**", "11+51/*", "11*1+5