結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー akuto1125akuto1125
提出日時 2018-09-21 20:01:18
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 284 bytes
コンパイル時間 38 ms
コンパイル使用メモリ 5,248 KB
実行使用メモリ 51,688 KB
最終ジャッジ日時 2024-04-21 02:11:26
合計ジャッジ時間 2,529 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
39,040 KB
testcase_01 AC 60 ms
39,168 KB
testcase_02 AC 62 ms
39,040 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 113 ms
48,128 KB
testcase_10 AC 106 ms
50,492 KB
testcase_11 AC 107 ms
50,468 KB
testcase_12 AC 112 ms
50,492 KB
testcase_13 AC 118 ms
50,768 KB
testcase_14 AC 113 ms
50,784 KB
testcase_15 AC 113 ms
51,188 KB
testcase_16 AC 118 ms
51,688 KB
testcase_17 AC 62 ms
39,040 KB
testcase_18 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
  input = input.split('\n');
  let num = input[0];
  let ar_integer = input[1].split(' ');
  let sum = 0;

  while(num > 0) {
    sum += parseInt(ar_integer[num - 1]);
    num--;
  }

  console.log(sum);
}
Main(require('fs').readFileSync('/dev/stdin', 'utf8'));
0