close
a = {}
puts "query:24" #can change query
1.upto(9) do |x|
1.upto(9) do |y|
1.upto(9) do |z|
s = x.to_s+"*"+y.to_s+"*"+z.to_s
r = x*y*z
a.store(r,s)
g = a.delete(24) #for query 24
if g != nil then puts g
end
end
end
end
--------------------我是分隔線--------------------
$stdout.flush
$stdin.flush
全站熱搜
留言列表