結果

問題 No.677 10^Nの約数
ユーザー GrayCoderGrayCoder
提出日時 2018-04-27 23:14:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 274 bytes
コンパイル時間 316 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 12,152 KB
最終ジャッジ日時 2023-09-10 06:46:02
合計ジャッジ時間 6,317 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
12,152 KB
testcase_01 AC 17 ms
7,832 KB
testcase_02 AC 16 ms
7,832 KB
testcase_03 AC 17 ms
7,912 KB
testcase_04 AC 16 ms
7,848 KB
testcase_05 AC 16 ms
7,768 KB
testcase_06 AC 16 ms
7,948 KB
testcase_07 AC 16 ms
7,816 KB
testcase_08 AC 17 ms
7,796 KB
testcase_09 AC 21 ms
7,760 KB
testcase_10 AC 30 ms
7,776 KB
testcase_11 AC 62 ms
7,868 KB
testcase_12 AC 161 ms
7,820 KB
testcase_13 AC 473 ms
7,768 KB
testcase_14 AC 1,463 ms
7,744 KB
testcase_15 TLE -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    N = int(input())

    n = 10 ** N
    x = int(n ** 0.5) + 1
    ans = set()
    for i in range(1, x):
        div_, mod_ = divmod(n, i)
        if not mod_:
            ans.add(i)
            ans.add(div_)

    for i in sorted(ans):
        print(i)

main()
0