3AC 1.三角形 var inarr = readline().split(" "); for(var i in inarr){ inarr[i] = parseInt(inarr[i]); } inarr.sort(function(x,y){ return x-y; }) inarr[2] = inarr[2]>=(inarr[0]+inarr[1])?(inarr[0]+inarr[1]-1):(inarr[2]); print(inarr[0]+inarr[1]+inarr[2]); 2.方块变色 var instr = readline(...