You are viewing a single comment's thread. Return to all comments →
function processData(input) { const [n, ...number] = input.split('\n').map(BigInt) let result = BigInt(0); for(let i = 0; i<n; i++) { result +=BigInt(number[i]) } console.log(result.toString().substring(0, 10)) { }
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #13: Large sum
You are viewing a single comment's thread. Return to all comments →