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