Esempio n. 1
0
def solve(fin, fout):
    L = codejam_io.read_simple(fin, int)
    S = map(solve_case, L)
    write_slst_h(fout, S)
Esempio 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)
Esempio 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)