結果

問題 No.542 1円玉と5円玉
ユーザー dangodango
提出日時 2023-06-06 20:18:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 233 bytes
コンパイル時間 257 ms
コンパイル使用メモリ 86,852 KB
実行使用メモリ 75,992 KB
最終ジャッジ日時 2023-08-28 10:47:48
合計ジャッジ時間 2,085 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,492 KB
testcase_01 AC 71 ms
71,408 KB
testcase_02 AC 72 ms
71,240 KB
testcase_03 AC 71 ms
71,304 KB
testcase_04 AC 75 ms
71,144 KB
testcase_05 AC 71 ms
71,360 KB
testcase_06 AC 73 ms
71,304 KB
testcase_07 AC 73 ms
71,352 KB
testcase_08 AC 76 ms
75,764 KB
testcase_09 AC 75 ms
75,860 KB
testcase_10 AC 71 ms
71,464 KB
testcase_11 AC 71 ms
71,360 KB
testcase_12 AC 78 ms
75,992 KB
権限があれば一括ダウンロードができます

ソースコード

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