結果
問題 |
No.677 10^Nの約数
|
ユーザー |
|
提出日時 | 2018-10-05 15:49:03 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 295 bytes |
コンパイル時間 | 79 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 18,084 KB |
最終ジャッジ日時 | 2024-10-12 12:34:03 |
合計ジャッジ時間 | 5,457 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 7 TLE * 1 -- * 9 |
ソースコード
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)