結果

問題 No.677 10^Nの約数
ユーザー Yuhel TanakaYuhel Tanaka
提出日時 2018-10-05 15:56:47
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 381 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 18,048 KB
最終ジャッジ日時 2024-04-20 16:45:43
合計ジャッジ時間 6,085 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
16,256 KB
testcase_01 AC 25 ms
10,880 KB
testcase_02 AC 25 ms
10,880 KB
testcase_03 AC 28 ms
10,752 KB
testcase_04 AC 27 ms
10,752 KB
testcase_05 AC 27 ms
10,752 KB
testcase_06 AC 25 ms
10,752 KB
testcase_07 AC 27 ms
10,880 KB
testcase_08 AC 27 ms
10,752 KB
testcase_09 AC 29 ms
10,752 KB
testcase_10 AC 38 ms
10,752 KB
testcase_11 AC 63 ms
10,752 KB
testcase_12 AC 145 ms
10,752 KB
testcase_13 AC 390 ms
10,880 KB
testcase_14 AC 1,297 ms
10,752 KB
testcase_15 TLE -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import product as p
from collections import Counter as c
from functools import reduce

n=10**(int(input()))
l=[1]
for i in range(2,1+int(n**0.5)):
  while n%i==0:
    l.append(i)
    n=n//i
if n:l.append(n)

d=c(l)
a,b=d.keys(),d.values()
f=lambda x,y:x**y
g=lambda x,y:x*y

for j in sorted(set(reduce(g,map(f,a,i)) for i in p(*[range(i+1) for i in b]))):
  print(j)
0