結果

問題 No.677 10^Nの約数
ユーザー wagasa2wagasa2
提出日時 2018-04-28 00:12:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 578 bytes
コンパイル時間 128 ms
コンパイル使用メモリ 10,984 KB
実行使用メモリ 8,148 KB
最終ジャッジ日時 2023-09-10 07:26:23
合計ジャッジ時間 8,132 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
8,100 KB
testcase_01 AC 17 ms
7,980 KB
testcase_02 WA -
testcase_03 AC 17 ms
7,976 KB
testcase_04 WA -
testcase_05 AC 16 ms
7,940 KB
testcase_06 WA -
testcase_07 AC 16 ms
8,000 KB
testcase_08 WA -
testcase_09 AC 19 ms
7,940 KB
testcase_10 WA -
testcase_11 AC 42 ms
8,072 KB
testcase_12 WA -
testcase_13 AC 276 ms
7,952 KB
testcase_14 WA -
testcase_15 TLE -
testcase_16 TLE -
testcase_17 -- -
testcase_18 -- -
権限があれば一括ダウンロードができます

ソースコード

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)
        divisorList.append(n)
        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