diff options
Diffstat (limited to 'problems/rubyshousehunt/attachments/template.js')
-rw-r--r-- | problems/rubyshousehunt/attachments/template.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/problems/rubyshousehunt/attachments/template.js b/problems/rubyshousehunt/attachments/template.js new file mode 100644 index 0000000..cb27e76 --- /dev/null +++ b/problems/rubyshousehunt/attachments/template.js @@ -0,0 +1,15 @@ +var inputs = readline().split(' '); +const income = parseInt(inputs[0]); +const mr = parseFloat(inputs[1]); +const savings = parseInt(inputs[2]); +const N = parseInt(readline()); +for (let i = 0; i < N; i++) { + var inputs = readline().split(' '); + const price = parseInt(inputs[0]); + const expenses = parseInt(inputs[1]); +} + +// Write an answer using console.log() +// To debug: console.error('Debug messages...'); + +console.log('Yes, the house is affordable with 1 roommate(s) and $1 to spare.'); |