結果
問題 |
No.9001 標準入出力の練習問題(テスト用)
|
ユーザー |
|
提出日時 | 2022-05-26 12:38:37 |
言語 | PHP (843.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 435 bytes |
コンパイル時間 | 3,910 ms |
コンパイル使用メモリ | 32,148 KB |
実行使用メモリ | 32,528 KB |
最終ジャッジ日時 | 2024-09-20 14:58:27 |
合計ジャッジ時間 | 4,494 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 2 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
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}`); });