結果

問題 No.542 1円玉と5円玉
ユーザー s_shoheis_shohei
提出日時 2020-06-06 22:34:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 68 ms / 2,000 ms
コード長 187 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 86,924 KB
実行使用メモリ 75,904 KB
最終ジャッジ日時 2023-08-25 02:08:11
合計ジャッジ時間 1,860 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
71,272 KB
testcase_01 AC 62 ms
71,224 KB
testcase_02 AC 60 ms
71,272 KB
testcase_03 AC 63 ms
71,212 KB
testcase_04 AC 62 ms
71,516 KB
testcase_05 AC 65 ms
71,520 KB
testcase_06 AC 62 ms
71,512 KB
testcase_07 AC 61 ms
71,452 KB
testcase_08 AC 65 ms
75,900 KB
testcase_09 AC 67 ms
75,872 KB
testcase_10 AC 64 ms
71,100 KB
testcase_11 AC 62 ms
71,420 KB
testcase_12 AC 68 ms
75,904 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b = map(int, input().split())

ans=[]
for i in range(a+1):
    for j in range(b+1):
        ans.append(i+j*5)

ans=list(set(ans))
ans.sort()

for i in ans:
    if i!=0:
        print(i)
0