var str1 =read_line().trim(); var str2 =read_line().trim(); 这种读取两行的验证过是正确的,(借用别人的代码)
var nn, one; var aa = [];
var line; while(line= read_line()){ line = line.split(' '); if(line.length == 1){ nn = parseInt(line[0]); }else{ aa = line; for(one in aa){ aa[one] = parseInt(aa[one]); } } } print(fn(nn, aa));