結果

問題 No.597 concat
ユーザー Program_PandaProgram_Panda
提出日時 2020-04-01 11:51:55
言語 JavaScript
(node v23.5.0)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 297 bytes
コンパイル時間 37 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 42,552 KB
最終ジャッジ日時 2024-10-13 01:38:51
合計ジャッジ時間 1,649 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

const reader = require("readline").createInterface({
  input: process.stdin,
  output: process.stdout
});
let lines = [];
reader.on("line", line => {
  lines.push(line);
});
reader.on("close", () => {
  const num = lines.shift()
  const ans = lines.reduce((a, c) => a + c)
  console.log(ans);
});
0