結果

問題 No.1088 A+B Problem
ユーザー T AT A
提出日時 2020-07-25 16:27:50
言語 TypeScript
(5.4.3)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 400 bytes
コンパイル時間 9,335 ms
コンパイル使用メモリ 253,360 KB
実行使用メモリ 44,572 KB
最終ジャッジ日時 2023-09-09 15:22:16
合計ジャッジ時間 10,139 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
42,552 KB
testcase_01 AC 83 ms
44,524 KB
testcase_02 AC 82 ms
42,564 KB
testcase_03 AC 82 ms
42,484 KB
testcase_04 AC 84 ms
44,508 KB
testcase_05 AC 84 ms
42,416 KB
testcase_06 AC 84 ms
42,420 KB
testcase_07 AC 84 ms
42,492 KB
testcase_08 AC 82 ms
42,432 KB
testcase_09 AC 82 ms
42,472 KB
testcase_10 AC 83 ms
44,572 KB
testcase_11 AC 82 ms
42,540 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

const lines = [];
const reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});

reader.on('line', (line) => {
  lines.push(line);
});
reader.on('close', () => {
  const input: string = lines[0]
  const arr: number[] = input.split(' ').map(str => parseInt(str, 10))
  const sum: number = arr.reduce((a, b) => {
    return a + b
  })
  console.log(sum);
});
0