結果
| 問題 |
No.537 ユーザーID
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-03-13 16:48:39 |
| 言語 | JavaScript (node v23.5.0) |
| 結果 |
AC
|
| 実行時間 | 98 ms / 2,000 ms |
| コード長 | 265 bytes |
| コンパイル時間 | 113 ms |
| コンパイル使用メモリ | 6,688 KB |
| 実行使用メモリ | 45,056 KB |
| 最終ジャッジ日時 | 2024-10-13 01:02:25 |
| 合計ジャッジ時間 | 3,717 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 32 |
ソースコード
const N = +require('fs').readFileSync('/dev/stdin', 'utf8');
const arr = [];
for (let i = 1; i <= Math.sqrt(N); i++) {
if (N % i == 0) {
arr.push(String(i) + String(N / i));
arr.push(String(N / i) + String(i));
}
}
console.log([...new Set(arr)].length);