結果
| 問題 | No.537 ユーザーID |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-05-05 17:36:13 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 464 bytes |
| 記録 | |
| コンパイル時間 | 588 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 20,464 KB |
| 最終ジャッジ日時 | 2026-03-16 11:04:52 |
| 合計ジャッジ時間 | 5,427 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 WA * 13 RE * 1 |
ソースコード
from functools import reduce
def factorint(num):
fct = {}
b = 2
e = 0
while num >= b * b:
while num % b == 0:
num //= b
e += 1
if e > 0:
fct[b] = e
b += 1
e = 0
if num > 1:
fct[num] = 1
return fct
def main():
factor = factorint(int(input()))
print(reduce(lambda x, y: x * y, [v + 1 for v in factor.values()]))
if __name__ == "__main__":
main()