結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー mahnamahna
提出日時 2022-05-26 12:51:34
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 77 ms / 1,000 ms
コード長 435 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 5,152 KB
実行使用メモリ 40,028 KB
最終ジャッジ日時 2023-10-20 19:24:40
合計ジャッジ時間 637 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
40,028 KB
testcase_01 AC 77 ms
40,028 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

process.stdin.resume();
process.stdin.setEncoding('utf8');

var lines = [];
var reader = require('readline').createInterface({
    input: process.stdin,
    output: process.stdout
});
reader.on('line', (line) => {
    lines.push(line);
});
reader.on('close', () => {
    
    let [a,b] = lines[0].split(" ").map( x => Number(x));
    const word = lines[1];
    
    const ab = String(a + b);
    console.log(`${ab} ${word}`);
    

});
0