結果

問題 No.537 ユーザーID
ユーザー TksiTksi
提出日時 2019-03-13 16:47:51
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 341 bytes
コンパイル時間 70 ms
コンパイル使用メモリ 6,812 KB
実行使用メモリ 48,540 KB
最終ジャッジ日時 2024-04-21 02:31:26
合計ジャッジ時間 5,004 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
46,364 KB
testcase_01 AC 62 ms
39,168 KB
testcase_02 AC 63 ms
39,296 KB
testcase_03 AC 60 ms
39,424 KB
testcase_04 AC 61 ms
39,296 KB
testcase_05 AC 62 ms
39,424 KB
testcase_06 AC 62 ms
39,040 KB
testcase_07 AC 59 ms
39,168 KB
testcase_08 AC 65 ms
39,168 KB
testcase_09 WA -
testcase_10 AC 62 ms
39,680 KB
testcase_11 AC 61 ms
39,424 KB
testcase_12 AC 63 ms
39,424 KB
testcase_13 AC 65 ms
39,040 KB
testcase_14 AC 59 ms
39,040 KB
testcase_15 AC 58 ms
39,296 KB
testcase_16 AC 58 ms
39,168 KB
testcase_17 AC 61 ms
39,040 KB
testcase_18 AC 88 ms
43,496 KB
testcase_19 TLE -
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 -- -
testcase_33 -- -
testcase_34 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

const N = +require('fs').readFileSync('/dev/stdin', 'utf8');
const arr = [];
let last = 1;
for (let i = 1; i <= N; i++) {
  if (N % i == 0) {
    if (last * i === N) break;
    arr.push(String(i) + String(N / i));
    if (i ** 2 === N) break;
    arr.push(String(N / i) + String(i));
    last = i
  }
}
console.log([...new Set(arr)].length);
0