diff --git a/examples/solutions-bananass/bananass/1000.js b/examples/solutions-bananass/bananass/1000.js new file mode 100644 index 0000000..d5958f7 --- /dev/null +++ b/examples/solutions-bananass/bananass/1000.js @@ -0,0 +1,10 @@ +const { log } = require('node:console'); + +module.exports = inputFile => { + const [a, b] = inputFile + .trim() + .split(' ') + .map(val => Number(val)); + + log(a + b); +}; diff --git a/examples/solutions-bananass/bananass/1001.js b/examples/solutions-bananass/bananass/1001.js new file mode 100644 index 0000000..357eb7e --- /dev/null +++ b/examples/solutions-bananass/bananass/1001.js @@ -0,0 +1,10 @@ +const { log } = require('node:console'); + +module.exports = inputFile => { + const [a, b] = inputFile + .trim() + .split(' ') + .map(val => Number(val)); + + log(a - b); +}; diff --git a/examples/solutions-bananass/bananass/29751.js b/examples/solutions-bananass/bananass/29751.js new file mode 100644 index 0000000..23072c6 --- /dev/null +++ b/examples/solutions-bananass/bananass/29751.js @@ -0,0 +1,12 @@ +const { log } = require('node:console'); + +module.exports = inputFile => { + const [W, H] = inputFile + .trim() + .split(' ') + .map(val => Number(val)); + + const width = (W * H) / 2; + + log(width.toFixed(1)); +}; diff --git a/examples/solutions-bananass/package.json b/examples/solutions-bananass/package.json new file mode 100644 index 0000000..0364c2e --- /dev/null +++ b/examples/solutions-bananass/package.json @@ -0,0 +1,8 @@ +{ + "private": true, + "name": "examples-solutions-bananass", + "version": "0.0.0", + "dependencies": { + "bananass": "^0.0.0" + } +} diff --git a/package-lock.json b/package-lock.json index 71a0bd3..2d3c739 100644 --- a/package-lock.json +++ b/package-lock.json @@ -34,6 +34,13 @@ "name": "examples-readline", "version": "0.0.0" }, + "examples/solutions-bananass": { + "name": "examples-solutions-bananass", + "version": "0.0.0", + "dependencies": { + "bananass": "^0.0.0" + } + }, "examples/solutions-readline": { "name": "examples-solutions-readline", "version": "0.0.0" @@ -6592,6 +6599,10 @@ "resolved": "examples/readline", "link": true }, + "node_modules/examples-solutions-bananass": { + "resolved": "examples/solutions-bananass", + "link": true + }, "node_modules/examples-solutions-readline": { "resolved": "examples/solutions-readline", "link": true