#!/bin/ruby def minimumZooNumbers(m, n, t, s, d) return -1 # Return a list of length n consisting of the answers end cases = gets.strip.to_i for a0 in (0..cases-1) m, n = gets.strip.split(' ') m = m.to_i n = n.to_i t = gets.strip t = t.split(' ') s = gets.strip s = s.split(' ').map(&:to_i) d = gets.strip d = d.split(' ').map(&:to_i) result = minimumZooNumbers(m, n, t, s, d) print result.join(" ") end