結果

問題 No.542 1円玉と5円玉
ユーザー tobusakana
提出日時 2022-12-03 20:02:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 219 bytes
コンパイル時間 193 ms
コンパイル使用メモリ 82,104 KB
実行使用メモリ 59,392 KB
最終ジャッジ日時 2024-10-10 23:28:56
合計ジャッジ時間 1,375 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B = map(int,input().split())

ans = set()
for i in range(A + 1):
    for j in range(B + 1):
        if i == 0 and j == 0:
            continue
        ans.add(i * 1 + j * 5)
        
for a in sorted(ans):
    print(a)
0