結果
| 問題 | No.677 10^Nの約数 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-10-05 15:56:47 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 381 bytes |
| 記録 | |
| コンパイル時間 | 797 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 15,580 KB |
| 最終ジャッジ日時 | 2026-04-29 11:58:48 |
| 合計ジャッジ時間 | 9,327 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 TLE * 2 -- * 2 |
ソースコード
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)