結果
問題 | No.9001 標準入出力の練習問題(テスト用) |
ユーザー | yu0912 |
提出日時 | 2020-07-23 10:32:25 |
言語 | JavaScript (node v21.7.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 408 bytes |
コンパイル時間 | 107 ms |
コンパイル使用メモリ | 5,292 KB |
実行使用メモリ | 42,120 KB |
最終ジャッジ日時 | 2023-09-05 22:05:13 |
合計ジャッジ時間 | 787 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
ソースコード
function main(input = '') { if (!input) throw Error; let lines = input.split('\n'); let [a, b] = lines[0].split(' '); console.log(a, b); return `${parseInt(a) + parseInt(b)} ${lines[1]}`; } const { readFileSync, existsSync } = require('fs'); const stdin = '/dev/stdin'; if (existsSync(stdin)) { const input = readFileSync(stdin, 'utf8'); console.log(main(input)); } module.exports = main;