結果

問題 No.542 1円玉と5円玉
ユーザー lllllll88938494
提出日時 2023-04-26 07:21:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 50 ms / 2,000 ms
コード長 228 bytes
コンパイル時間 456 ms
コンパイル使用メモリ 82,224 KB
実行使用メモリ 59,648 KB
最終ジャッジ日時 2024-11-15 15:52:44
合計ジャッジ時間 1,624 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b=map(int,input().split())
ans = []
aa = [i for i in range(a+1)]
bb = [i*5 for i in range(b+1)]

for i in aa:
    for j in bb:
        ans.append(i + j)

for i in sorted(set(ans)):
    if i == 0:
        continue
    print(i)
0