結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー mahnamahna
提出日時 2022-05-26 12:38:37
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 435 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 32,572 KB
実行使用メモリ 32,572 KB
最終ジャッジ日時 2023-10-20 19:24:38
合計ジャッジ時間 715 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

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