두 정수 A와 B를 입력받은 다음, A+B를 출력하는 프로그램을 작성하시오.
첫째 줄에 A와 B가 주어진다. (0 < A,B < 1010000)
첫째 줄에 A+B를 출력한다.
9223372036854775807 9223372036854775808
18446744073709551615
const fs = require("fs");
const filePath = process.platform === "linux" ? "/dev/stdin" : "./예제.txt";
let input = fs.readFileSync(filePath).toString().split("\n");
let A=BigInt(input[0].split(' ')[0])
let B=BigInt(input[0].split(' ')[1])
console.log((A+B).toString())
이렇게 푸는 것이 아니라는 확신이 든다. 하지만 시간이 없다.