結果

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

テストケース

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

ソースコード

diff #

from itertools import product as p
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)

s=set()
for i in p([0,1],repeat=len(l)):
  v=1
  for j in map(lambda x,y:x*y,i,l):
    if j:v*=j
  s.add(v)

for i in sorted(s):
  print(i)
0