→ above is the link of the question that I tried to solve and below is code
process.stdin.resume();
process.stdin.setEncoding('utf8');
let n,u;
n = 900;
u = 400;
n -= u;
console.log(n);
→ above is the link of the question that I tried to solve and below is code
process.stdin.resume();
process.stdin.setEncoding('utf8');
let n,u;
n = 900;
u = 400;
n -= u;
console.log(n);
Your logic is right, but the test data N and U should be read from the standard input stream.
Check the following update to your code.