結果
| 問題 | No.537 ユーザーID | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-05-05 17:36:13 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 464 bytes | 
| コンパイル時間 | 83 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-06-28 01:58:44 | 
| 合計ジャッジ時間 | 2,504 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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()
            
            
            
        