結果

問題 No.888 約数の総和
ユーザー jp_stejp_ste
提出日時 2020-05-12 22:29:32
言語 JavaScript
(node v21.7.1)
結果
TLE  
実行時間 -
コード長 229 bytes
コンパイル時間 246 ms
コンパイル使用メモリ 5,504 KB
実行使用メモリ 47,232 KB
最終ジャッジ日時 2024-04-21 03:31:48
合計ジャッジ時間 5,568 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
45,056 KB
testcase_01 AC 65 ms
39,040 KB
testcase_02 AC 67 ms
42,752 KB
testcase_03 AC 66 ms
39,168 KB
testcase_04 AC 65 ms
39,424 KB
testcase_05 AC 69 ms
39,424 KB
testcase_06 AC 65 ms
39,296 KB
testcase_07 AC 64 ms
39,424 KB
testcase_08 AC 68 ms
42,880 KB
testcase_09 AC 68 ms
43,008 KB
testcase_10 AC 69 ms
42,752 KB
testcase_11 AC 72 ms
42,880 KB
testcase_12 AC 71 ms
43,008 KB
testcase_13 AC 71 ms
42,880 KB
testcase_14 AC 72 ms
43,008 KB
testcase_15 AC 74 ms
43,008 KB
testcase_16 AC 79 ms
42,880 KB
testcase_17 AC 80 ms
42,752 KB
testcase_18 TLE -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

function main(input) {
  let N = Number(input.shift());
  let sum = 0;
  for(let i=0; i<=N; i++) {
    if(N % i == 0) sum += i;
  }
  console.log(sum);
}

main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split("\n"));
0