結果

問題 No.677 10^Nの約数
ユーザー GrayCoder
提出日時 2018-04-27 23:14:19
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 274 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 17,824 KB
最終ジャッジ日時 2024-06-27 22:14:34
合計ジャッジ時間 7,358 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 12 TLE * 2 -- * 3
権限があれば一括ダウンロードができます

ソースコード

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