結果

問題 No.537 ユーザーID
ユーザー jamad
提出日時 2017-08-10 06:31:51
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 518 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 17,700 KB
最終ジャッジ日時 2024-10-12 01:56:37
合計ジャッジ時間 4,508 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 16 TLE * 1 -- * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

N=O=int(input())
A=[1]
d=2
while d<=N:
    while N%d==0:
        A.append(d)
#        print(d,N)
        N//=d
    d+=1
#print(A)
B=set(A)
#print(B)
C=[]
for b in B:
    C.append(A.count(b))
#print('C',C)

D=[1]
for b,c in zip(B,C):
    E=[]
    for d in D:
        for i in range(c+1):
            E.append((b**i)*d)
    D=D+E
#print(D)
F=sorted(set(D))
#print('F',F)

#main
Z=set()
for i in F:
    if O%i==0:
        x=str(i)
        y=str(O//i)
        Z.add(x+y)
        Z.add(y+x)
#            N//=i
print(len(Z))
0