You are viewing a single comment's thread. Return to all comments →
Code in JavaScript:
function main() { var a_temp = readLine().split(' ').map(Number); var sum = a_temp.reduce((acc, value) => acc += value); var min = sum - Math.max.apply(null, a_temp); var max = sum - Math.min.apply(null, a_temp); console.log(min + " " + max); }
Seems like cookies are disabled on this browser, please enable them to open this website
Mini-Max Sum
You are viewing a single comment's thread. Return to all comments →
Code in JavaScript: