結果

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

ソースコード

diff #

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

    n = 10 ** N
    y = (2, 5)
    ans = {1, 2, 5, 10, n}
    for i in y:
        ans.add(n // i)
        for j in range(1, N + 1):
            ans.add(i ** j)

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

main()
0