結果

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

ソースコード

diff #

N = int(input())
tmp = [1, 2, 5, 10]
res = [1, 2, 5, 10]
for i in range(N-1):
    res = list(set([i*j for i in tmp for j in res]))
    

if N == 0:
    print(1)
else:
    for i in sorted(list(set(res))):
        print(i)
0