結果

問題 No.537 ユーザーID
ユーザー jamadjamad
提出日時 2017-08-10 06:31:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 518 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 17,824 KB
最終ジャッジ日時 2024-04-20 06:49:03
合計ジャッジ時間 4,466 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
16,128 KB
testcase_01 AC 28 ms
10,752 KB
testcase_02 AC 32 ms
10,752 KB
testcase_03 AC 32 ms
10,752 KB
testcase_04 AC 26 ms
10,752 KB
testcase_05 AC 32 ms
10,752 KB
testcase_06 AC 27 ms
10,880 KB
testcase_07 AC 26 ms
10,752 KB
testcase_08 AC 27 ms
10,752 KB
testcase_09 AC 26 ms
10,880 KB
testcase_10 AC 32 ms
10,880 KB
testcase_11 AC 29 ms
10,752 KB
testcase_12 AC 26 ms
10,880 KB
testcase_13 AC 24 ms
10,624 KB
testcase_14 AC 25 ms
10,752 KB
testcase_15 AC 25 ms
10,880 KB
testcase_16 AC 25 ms
10,752 KB
testcase_17 AC 24 ms
10,752 KB
testcase_18 AC 36 ms
10,752 KB
testcase_19 TLE -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
権限があれば一括ダウンロードができます

ソースコード

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