結果
問題 |
No.537 ユーザーID
|
ユーザー |
|
提出日時 | 2019-03-13 16:47:51 |
言語 | JavaScript (node v23.5.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 341 bytes |
コンパイル時間 | 91 ms |
コンパイル使用メモリ | 6,696 KB |
実行使用メモリ | 48,548 KB |
最終ジャッジ日時 | 2024-10-13 01:02:08 |
合計ジャッジ時間 | 4,890 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 WA * 1 TLE * 1 -- * 15 |
ソースコード
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);