def solve(fin, fout): L = codejam_io.read_simple(fin, int) S = map(solve_case, L) write_slst_h(fout, S)
def solve(fin, fout): L = codejam_io.read_simple(fin, str) S = map(solve_case, L) codejam_io.write_simple(fout, S)
def solve(infname, outfname): L= codejam_io.read_simple(infname, str) results = [solveA(Li) for Li in L] codejam_io.write_simple(outfname,results)