結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー mahna
提出日時 2022-05-26 12:51:34
言語 JavaScript
(node v25.8.2)
コンパイル:
true
実行:
node _filename_ ONLINE_JUDGE
結果
AC  
実行時間 97 ms / 1,000 ms
コード長 435 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 217 ms
コンパイル使用メモリ 8,356 KB
実行使用メモリ 53,104 KB
最終ジャッジ日時 2026-04-09 01:20:37
合計ジャッジ時間 1,013 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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