結果

問題 No.677 10^Nの約数
ユーザー wagasa2
提出日時 2018-04-28 00:10:20
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 548 bytes
コンパイル時間 194 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 16,256 KB
最終ジャッジ日時 2024-06-27 22:53:11
合計ジャッジ時間 5,926 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other AC * 1 WA * 12 TLE * 1 -- * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding:utf8
import math
def makeDivisorList(n):
    if n < 1:
        return []
    elif n == 1:
        return [1]
    else:
        divisorList = []
        divisorList.append(1)
        for i in range(2, math.ceil(math.sqrt(n))):
            if n % i == 0:
                divisorList.append(i)
                if i != n / i:
                    divisorList.append(n//i)
        return divisorList

N = int(input())
N = pow(10,N)
divisorList = makeDivisorList(N)
divisorList.sort()
for i in range(0, len(divisorList)):
    print(divisorList[i])
0