結果
| 問題 | No.537 ユーザーID | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-07-01 00:31:01 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 235 ms / 2,000 ms | 
| コード長 | 530 bytes | 
| コンパイル時間 | 188 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 12,160 KB | 
| 最終ジャッジ日時 | 2024-10-04 22:19:39 | 
| 合計ジャッジ時間 | 4,641 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 32 | 
ソースコード
def main():
    N = int(input())
    if N == 1:
        print(1)
        return
    n = factor(N)
    x = set()
    for i in n:
        j = N // i
        x.add((min(i, j), max(i, j)))
    ans = set()
    for s in x:
        ans.add(str(s[0]) + str(s[1]))
        ans.add(str(s[1]) + str(s[0]))
    print(len(ans))
def factor(n):
    i = 2
    ret = []
    while i ** 2 <= n:
        if n % i:
            pass
        else:
            ret.append(i)
        i += 1
    if n > 1:
        ret.append(n)
    return ret
main()
            
            
            
        