結果

問題 No.677 10^Nの約数
ユーザー osrgy01osrgy01
提出日時 2021-03-29 10:24:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 284 bytes
コンパイル時間 634 ms
コンパイル使用メモリ 10,936 KB
実行使用メモリ 7,948 KB
最終ジャッジ日時 2023-08-19 16:04:03
合計ジャッジ時間 5,833 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,884 KB
testcase_01 AC 15 ms
7,772 KB
testcase_02 AC 16 ms
7,792 KB
testcase_03 AC 15 ms
7,884 KB
testcase_04 AC 16 ms
7,856 KB
testcase_05 AC 16 ms
7,832 KB
testcase_06 AC 18 ms
7,868 KB
testcase_07 AC 25 ms
7,948 KB
testcase_08 AC 63 ms
7,828 KB
testcase_09 AC 251 ms
7,816 KB
testcase_10 AC 1,208 ms
7,884 KB
testcase_11 TLE -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a,b=2**n,5**n
ans1=set()
ans2=set()
ans3=set()
for i in range(1,a+1):
    if a%i==0:
        ans1.add(i)
for i in range(1,b+1):
    if b%i==0:
        ans2.add(i)
for i in ans1:
    for j in ans2:
        ans3.add(i*j)
print(*sorted(i for i in ans1|ans2|ans3),sep='\n')
0